Skip to content

Instantly share code, notes, and snippets.

@Roguelazer
Created November 9, 2017 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Roguelazer/06d671c123657b242f5d1bc85644c647 to your computer and use it in GitHub Desktop.
Save Roguelazer/06d671c123657b242f5d1bc85644c647 to your computer and use it in GitHub Desktop.
0000000000540180 <MySQL_Data_Stream::write_to_net()>:
540180: 55 push %rbp
540181: 31 c0 xor %eax,%eax
540183: 53 push %rbx
540184: 48 89 fb mov %rdi,%rbx
540187: 48 83 ec 18 sub $0x18,%rsp
54018b: 8b 77 48 mov 0x48(%rdi),%esi
54018e: 8b 57 44 mov 0x44(%rdi),%edx
540191: 29 f2 sub %esi,%edx
540193: 74 73 je 540208 <MySQL_Data_Stream::write_to_net()+0x88>
540195: 80 bf be 01 00 00 00 cmpb $0x0,0x1be(%rdi)
54019c: 75 72 jne 540210 <MySQL_Data_Stream::write_to_net()+0x90>
54019e: 48 03 77 38 add 0x38(%rdi),%rsi
5401a2: 8b bf a8 01 00 00 mov 0x1a8(%rdi),%edi
5401a8: 48 63 d2 movslq %edx,%rdx
5401ab: b9 00 40 00 00 mov $0x4000,%ecx
5401b0: e8 3b a2 ef ff callq 43a3f0 <send@plt>
5401b5: 89 c5 mov %eax,%ebp
5401b7: 85 ed test %ebp,%ebp
5401b9: 78 6b js 540226 <MySQL_Data_Stream::write_to_net()+0xa6>
5401bb: 8b 43 48 mov 0x48(%rbx),%eax
5401be: 01 e8 add %ebp,%eax
5401c0: 3b 43 44 cmp 0x44(%rbx),%eax
5401c3: 89 43 48 mov %eax,0x48(%rbx)
5401c6: 0f 84 94 00 00 00 je 540260 <MySQL_Data_Stream::write_to_net()+0xe0>
5401cc: 48 8b 83 40 01 00 00 mov 0x140(%rbx),%rax
5401d3: 48 85 c0 test %rax,%rax
5401d6: 74 24 je 5401fc <MySQL_Data_Stream::write_to_net()+0x7c>
5401d8: 48 8b 93 50 01 00 00 mov 0x150(%rbx),%rdx
5401df: 48 8b 40 38 mov 0x38(%rax),%rax
5401e3: 48 8b 92 70 01 00 00 mov 0x170(%rdx),%rdx
5401ea: 48 8b 8a c8 08 00 00 mov 0x8c8(%rdx),%rcx
5401f1: 48 63 93 ac 01 00 00 movslq 0x1ac(%rbx),%rdx
5401f8: 48 89 0c d0 mov %rcx,(%rax,%rdx,8)
5401fc: 48 63 c5 movslq %ebp,%rax
5401ff: 48 01 83 f0 00 00 00 add %rax,0xf0(%rbx)
540206: 89 e8 mov %ebp,%eax
540208: 48 83 c4 18 add $0x18,%rsp
54020c: 5b pop %rbx
54020d: 5d pop %rbp
54020e: c3 retq
54020f: 90 nop
540210: 48 03 77 38 add 0x38(%rdi),%rsi
540214: 48 8b bf 60 01 00 00 mov 0x160(%rdi),%rdi
54021b: e8 e0 a1 ef ff callq 43a400 <SSL_write@plt>
540220: 89 c5 mov %eax,%ebp
540222: 85 ed test %ebp,%ebp
540224: 79 95 jns 5401bb <MySQL_Data_Stream::write_to_net()+0x3b>
540226: 80 bb be 01 00 00 00 cmpb $0x0,0x1be(%rbx)
54022d: 75 49 jne 540278 <MySQL_Data_Stream::write_to_net()+0xf8>
54022f: 48 8b 83 40 01 00 00 mov 0x140(%rbx),%rax
540236: 48 63 8b ac 01 00 00 movslq 0x1ac(%rbx),%rcx
54023d: 48 8b 50 20 mov 0x20(%rax),%rdx
540241: 89 e8 mov %ebp,%eax
540243: f6 44 ca 06 04 testb $0x4,0x6(%rdx,%rcx,8)
540248: 74 be je 540208 <MySQL_Data_Stream::write_to_net()+0x88>
54024a: 48 89 df mov %rbx,%rdi
54024d: 89 44 24 0c mov %eax,0xc(%rsp)
540251: e8 5a fc ff ff callq 53feb0 <MySQL_Data_Stream::shut_soft()>
540256: 8b 44 24 0c mov 0xc(%rsp),%eax
54025a: eb ac jmp 540208 <MySQL_Data_Stream::write_to_net()+0x88>
54025c: 0f 1f 40 00 nopl 0x0(%rax)
540260: c7 43 44 00 00 00 00 movl $0x0,0x44(%rbx)
540267: c7 43 48 00 00 00 00 movl $0x0,0x48(%rbx)
54026e: e9 59 ff ff ff jmpq 5401cc <MySQL_Data_Stream::write_to_net()+0x4c>
540273: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
540278: 48 8b bb 60 01 00 00 mov 0x160(%rbx),%rdi
54027f: 89 ee mov %ebp,%esi
540281: e8 9a b3 ef ff callq 43b620 <SSL_get_error@plt>
540286: 8d 50 fe lea -0x2(%rax),%edx
540289: 89 e8 mov %ebp,%eax
54028b: 83 fa 01 cmp $0x1,%edx
54028e: 77 ba ja 54024a <MySQL_Data_Stream::write_to_net()+0xca>
540290: e9 73 ff ff ff jmpq 540208 <MySQL_Data_Stream::write_to_net()+0x88>
540295: 90 nop
540296: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
54029d: 00 00 00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment