Function at 0x1005b390
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021ec7e
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], 0
lea ebx, [edi + 0x18]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 8]
mov eax, dword [ebx]
push 0
sub eax, edx
push eax
lea eax, [edx + esi]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
cdq
mov esi, eax
mov eax, edx
mov dword [ebp - 0x68], eax
test eax, eax
jg 0x1005b5b3
jl 0x1005b3fe
test esi, esi
jne 0x1005b5b3
mov dword [ebp - 0x118], 0x1023347c
mov dword [ebp - 0x108], 0x10233484
push 0
lea eax, [ebp - 0x100]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x60], 1
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xb4], 0x50
movlpd qword [ebp - 0x110], xmm0
call fcn.1001b997
lea eax, [ebp - 0x108]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x10c], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x11c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x11c], eax
lea eax, [ebp - 0x100]
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
push dword [ebp - 0x68]
lea eax, [edi + 0x2c]
mov dword [ebp - 4], 7
push esi
push str._::proceedRead_error._Recv_result:
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.1005b0e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x118]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 8
call fcn.1005a6b0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 0x10
jb 0x1005b56a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10016ec0
lea ecx, [ebp - 0xb0]
call fcn.10019f10
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 9
push eax
mov dword [ebp - 0xb0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
add dword [edi + 0x20], esi
mov edx, dword [ebx + 4]
adc dword [edi + 0x24], eax
mov ecx, dword [ebx]
cmp eax, edx
jg 0x1005b595
jl 0x1005b5c8
cmp esi, ecx
ja 0x1005b595
mov esi, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
cmp esi, edx
jg 0x1005b595
jl 0x1005b5d8
cmp eax, ecx
ja 0x1005b595
cmp ecx, eax
jne 0x1005b802
cmp edx, esi
jne 0x1005b802
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x1005b97a
lea esi, [edi + 0x4c]
push esi
lea eax, [edi + 0x50]
push eax
push ebx
push dword [edi + 8]
call fcn.1005bfa0
add esp, 0x10
mov dword [ebp - 0x1c8], 0x1023347c
mov dword [ebp - 0x1b8], 0x10233484
push 0
lea eax, [ebp - 0x1b0]
mov dword [ebp - 4], 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0x10
push eax
lea ecx, [ebp - 0x160]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x164], 0x50
movlpd qword [ebp - 0x1c0], xmm0
call fcn.1001b997
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1b8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1bc], eax
mov eax, dword [ebp - 0x1c8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1cc], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 4], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1cc], eax
lea eax, [ebp - 0x1b0]
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
push dword [edi + 0x50]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x11
push eax
mov ecx, 0x102d822b
call fcn.10056d00
push dword [esi]
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 0x12
push str._Command_counter
push eax
push str._Command_is_got:
push ecx
lea eax, [ebp - 0x1b8]
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.10016e80
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x13
call fcn.1005a6b0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10016e80
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a3ca
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
test edx, edx
jg 0x1005b7c6
jl 0x1005b595
test eax, eax
jb 0x1005b595
mov ecx, dword [edi + 0x50]
cmp ecx, 0x3e8
jle 0x1005b80c
cmp ecx, 0x270f
jge 0x1005b80c
or eax, edx
je 0x1005bc87
mov eax, dword [ebx]
lea ecx, [edi + 8]
inc eax
push eax
call fcn.1001bed7
mov dword [edi + 0x48], 1
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, 1
jmp 0x1005b597
mov dword [ebp - 0x278], 0x1023347c
mov dword [ebp - 0x268], 0x10233484
push 0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0x14
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0x110
push eax
lea ecx, [ebp - 0x210]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x214], 0x50
movlpd qword [ebp - 0x270], xmm0
call fcn.1001b997
lea eax, [ebp - 0x268]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x268]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x26c], eax
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x27c], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 4], 0x19
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x27c], eax
lea eax, [ebp - 0x260]
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
push dword [edi + 0x50]
lea eax, [edi + 0x2c]
mov dword [ebp - 4], 0x1b
push str._Wrong_command_received:
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x278]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x1c
call fcn.1005a6b0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10016e80
lea ecx, [ebp - 0x278]
call fcn.1001a3ca
jmp 0x1005b595
cmp eax, 1
jne 0x1005b802
lea eax, [ebp - 0x61]
push eax
push dword [edi + 0xc]
lea ecx, [ebp - 0x40]
push dword [edi + 8]
call fcn.1005adf0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x1d
push eax
call fcn.1005a8a0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10016e80
cmp dword [ebp - 0x18], 0
sete al
test al, al
je 0x1005bb19
mov dword [ebp - 0x328], 0x1023347c
mov dword [ebp - 0x318], 0x10233484
push 0
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 0x20
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0x1000
push eax
lea ecx, [ebp - 0x2c0]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x2c4], 0x50
movlpd qword [ebp - 0x320], xmm0
call fcn.1001b997
lea eax, [ebp - 0x318]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x318]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x31c], eax
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x32c], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 4], 0x25
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x32c], eax
lea eax, [ebp - 0x310]
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
push str._Command_Body:_empty
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x328]
push eax
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x28
call fcn.1005a6b0
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.10016e80
lea ecx, [ebp - 0x328]
jmp 0x1005bc7a
mov dword [ebp - 0x3d8], 0x1023347c
mov dword [ebp - 0x3c8], 0x10233484
push 0
lea eax, [ebp - 0x3c0]
mov byte [ebp - 4], 0x29
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0x10000
push eax
lea ecx, [ebp - 0x370]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x374], 0x50
movlpd qword [ebp - 0x3d0], xmm0
call fcn.1001b997
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x3c8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x3cc], eax
mov eax, dword [ebp - 0x3d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x3dc], eax
mov eax, dword [ebp - 0x3d8]
mov dword [ebp - 4], 0x2e
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x3d8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x3dc], eax
lea eax, [ebp - 0x3c0]
mov ecx, eax
mov dword [ebp - 0x5c], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x30
push eax
push str._Command_Body:
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
push eax
call fcn.100467a4
add esp, 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x3d8]
push eax
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x31
call fcn.1005a6b0
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10016e80
lea ecx, [ebp - 0x3d8]
call fcn.1001a3ca
lea ecx, [ebp - 0x28]
call fcn.10016e80
mov eax, 2
jmp 0x1005b597