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

Disassembly:
push 0xffffffffffffffff
push 0x664608
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 0x59f57f
mov eax, dword [esp + 0x20]
mov byte [eax], 1
call fcn.0059e3f0
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 0x59f652
test edi, edi
jge 0x59f62d
lea ecx, [esp + 0x20]
call fcn.00402510
mov dword [esp + 0x18], 0
push edi
lea eax, [esp + 0x24]
push str.RecvStartOfDataPacket_failed__step1__res___ld_n
push eax
call fcn.00402f80
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00561d40
xor edx, edx
mov word [esi + 0x3250], dx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402580
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 0x59f638
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 0x59f6b3
cmp byte [esi + 0x3248], 1
jne 0x59f6b3
cmp byte [esi + 0x3249], al
jne 0x59f6b3
cmp byte [esi + 0x324a], al
jne 0x59f6b3
mov ecx, esi
mov byte [ebx], 1
call fcn.0059e3f0
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.0059c810
mov ecx, dword [esi + 0x3220]
mov edi, eax
lea eax, [ecx + 1]
add esp, 4
cmp eax, edi
je 0x59f799
test ecx, ecx
jne 0x59f6e1
test edi, edi
je 0x59f799
cmp edi, ecx
jbe 0x59f615
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x3244]
dec eax
add dword [esi + 0x98], eax
test ecx, ecx
je 0x59f704
add dword [ecx + 0x86c], eax
mov ecx, dword [esi + 0x98]
add dword [esi + 0x3204], eax
push ecx
mov ecx, dword [esi + 0xa8]
call fcn.00561480
mov edx, dword [esi + 0x94]
inc edx
cmp dword [esi + 0x3204], edx
jb 0x59f799
push str.Last_packet_of_this_connection_is_skipped._Complete._n
mov ecx, esi
call fcn.00561d40
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x3204]
lea edx, [ecx + 1]
cmp eax, edx
jbe 0x59f77b
sub eax, ecx
mov ecx, dword [esi + 0x3244]
dec eax
sub dword [esi + 0x98], eax
test ecx, ecx
je 0x59f763
sub dword [ecx + 0x86c], eax
sub dword [esi + 0x3204], eax
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0xa8]
push eax
call fcn.00561480
mov ecx, esi
call fcn.0059f0b0
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