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

Disassembly:
push 0xffffffffffffffff
push 0x64ce58
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x3288], 0
je 0x59f97f
mov eax, dword [esp + 0x20]
mov byte [eax], 1
call fcn.0059e7f0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
mov ebx, dword [esp + 0x20]
mov byte [ebx], 0
movsx eax, word [esi + 0x3250]
push 0
mov ecx, 8
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x3248]
mov eax, dword [esi + 0x3240]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
movzx eax, word [esi + 0x3250]
movsx ecx, ax
mov edx, 8
sub edx, ecx
cmp edi, edx
je 0x59fa52
test edi, edi
jge 0x59fa2d
lea ecx, [esp + 0x20]
call fcn.004024f0
mov dword [esp + 0x18], 0
push edi
lea eax, [esp + 0x24]
push str.RecvStartOfDataPacket_failed__step1__res___ld_n
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00562270
xor edx, edx
mov word [esi + 0x3250], dx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402560
or eax, 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
jle 0x59fa38
add eax, edi
mov word [esi + 0x3250], ax
mov eax, 0x2733
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
xor eax, eax
mov word [esi + 0x3250], ax
mov ecx, dword [esi + 0x324c]
mov byte [esp + 0x20], 0xce
mov byte [esp + 0x21], 0xfa
mov byte [esp + 0x22], 0xb
mov byte [esp + 0x23], 0xb0
cmp ecx, dword [esp + 0x20]
jne 0x59fab3
cmp byte [esi + 0x3248], 1
jne 0x59fab3
cmp byte [esi + 0x3249], al
jne 0x59fab3
cmp byte [esi + 0x324a], al
jne 0x59fab3
mov ecx, esi
mov byte [ebx], 1
call fcn.0059e7f0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
lea edx, [esi + 0x3248]
push edx
call fcn.0059cc10
mov ecx, dword [esi + 0x3220]
mov edi, eax
lea eax, [ecx + 1]
add esp, 4
cmp eax, edi
je 0x59fb99
test ecx, ecx
jne 0x59fae1
test edi, edi
je 0x59fb99
cmp edi, ecx
jbe 0x59fa15
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x3244]
dec eax
add dword [esi + 0x98], eax
test ecx, ecx
je 0x59fb04
add dword [ecx + 0x86c], eax
mov ecx, dword [esi + 0x98]
add dword [esi + 0x3204], eax
push ecx
mov ecx, dword [esi + 0xa8]
call fcn.005619e0
mov edx, dword [esi + 0x94]
inc edx
cmp dword [esi + 0x3204], edx
jb 0x59fb99
push str.Last_packet_of_this_connection_is_skipped._Complete._n
mov ecx, esi
call fcn.00562270
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x3204]
lea edx, [ecx + 1]
cmp eax, edx
jbe 0x59fb7b
sub eax, ecx
mov ecx, dword [esi + 0x3244]
dec eax
sub dword [esi + 0x98], eax
test ecx, ecx
je 0x59fb63
sub dword [ecx + 0x86c], eax
sub dword [esi + 0x3204], eax
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0xa8]
push eax
call fcn.005619e0
mov ecx, esi
call fcn.0059f4b0
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
movzx ecx, byte [esi + 0x324f]
movzx edx, byte [esi + 0x324e]
shl ecx, 8
lea eax, [ecx + edx - 8]
xor ecx, ecx
cmp ecx, eax
mov dword [esi + 0x3224], eax
sbb eax, eax
neg eax
mov dword [esi + 0x3220], edi
dec eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4