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

Disassembly:
push 0xffffffffffffffff
push 0x6635f0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x327c], 0
mov ebp, dword [sym.imp.WS2_32.dll_recv]
jne 0x59dc04
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x59dac3
mov ecx, dword [eax]
mov dword [ebx + 0x3252], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x3256], edx
movsx ecx, word [ebx + 0x3282]
neg eax
sbb eax, eax
and eax, 8
mov esi, eax
mov eax, 0x28
sub eax, esi
sub eax, ecx
push 0
push eax
mov eax, dword [ebx + 0x3240]
add ecx, esi
lea edx, [ecx + ebx + 0x3252]
push edx
push eax
call ebp
movsx ecx, word [ebx + 0x3282]
mov edx, 0x28
sub edx, ecx
mov edi, eax
sub edx, esi
cmp edi, edx
je 0x59dbca
test edi, edi
jle 0x59db2d
push str.WSAEWOULDBLOCK__lb1_n
mov ecx, ebx
call fcn.00561d20
mov word [ebx + 0x3282], di
mov eax, 0x2733
jmp 0x59dd0a
jne 0x59db56
push str.Recv_cmd_failed__connection_closed_by_server._n
mov ecx, ebx
call fcn.00561d20
mov eax, dword [0x75ea64]
mov ecx, dword [ebx + 0xb4]
push eax
call fcn.0056ae20
mov eax, 0xfffffffc
jmp 0x59dd0a
cmp edi, 0xffffffff
jne 0x59dbc2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x59dba8
lea ecx, [esp + 0x2c]
call fcn.00402500
mov dword [esp + 0x20], 0
push esi
lea ecx, [esp + 0x30]
push str.Recv_cmd_failed__error___ld_n
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
mov ecx, ebx
call fcn.00561d20
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x2c]
call fcn.00402570
mov eax, esi
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffd8ca
add eax, 0x2733
jmp 0x59dd0a
or eax, 0xffffffff
jmp 0x59dd0a
lea eax, [ebx + 0x325a]
push eax
call fcn.0059c710
add esp, 4
mov dword [ebx + 0x3284], eax
cmp eax, 0x18
jb 0x59dbc2
add eax, 0x10
push eax
call fcn.005f4427
add esp, 4
mov dword [ebx + 0x327c], eax
test eax, eax
jne 0x59dc04
mov eax, 0x753b
jmp 0x59dd0a
mov edi, dword [ebx + 0x327c]
lea esi, [ebx + 0x3252]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
movsx eax, word [ebx + 0x3280]
mov ecx, dword [ebx + 0x3284]
mov edx, dword [ebx + 0x327c]
sub ecx, eax
push 0
sub ecx, 0x18
push ecx
mov ecx, dword [ebx + 0x3240]
lea eax, [eax + edx + 0x28]
push eax
push ecx
call ebp
movsx edx, word [ebx + 0x3280]
mov esi, eax
mov eax, dword [ebx + 0x3284]
sub eax, edx
sub eax, 0x18
cmp esi, eax
je 0x59dc7d
test esi, esi
jle 0x59dbc2
push str.WSAEWOULDBLOCK__lb2_n
mov ecx, ebx
call fcn.00561d20
mov word [ebx + 0x3280], si
mov eax, 0x2733
jmp 0x59dd0a
mov ecx, dword [ebx + 0x327c]
movzx edx, byte [ecx + 0x24]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
mov dword [esi], edx
call fcn.00402500
mov dword [esp + 0x20], 1
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x18]
push str.recv__x_command_n
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
mov ecx, ebx
call fcn.00561d20
mov eax, dword [ebx + 0x3284]
mov ecx, dword [ebx + 0x327c]
add eax, 0x10
push eax
push ecx
mov ecx, ebx
call fcn.00561e00
push 2
push 0x6b2fc0
mov ecx, ebx
call fcn.00561e00
xor edx, edx
xor eax, eax
mov word [ebx + 0x3282], dx
mov word [ebx + 0x3280], ax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8