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

Disassembly:
push 0xffffffffffffffff
push 0x644198
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x3278], 0
je 0x59779f
mov eax, dword [esp + 0x20]
mov byte [eax], 1
call fcn.00596630
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 + 0x3240]
push 0
mov ecx, 8
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x3238]
mov eax, dword [esi + 0x3230]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
movzx eax, word [esi + 0x3240]
movsx ecx, ax
mov edx, 8
sub edx, ecx
cmp edi, edx
je 0x597872
test edi, edi
jge 0x59784d
lea ecx, [esp + 0x20]
call fcn.00402500
mov dword [esp + 0x18], 0
push edi
lea eax, [esp + 0x24]
push str.RecvStartOfDataPacket_failed__step1__res___ld_n
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0055b6c0
xor edx, edx
mov word [esi + 0x3240], dx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402570
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 0x597858
add eax, edi
mov word [esi + 0x3240], 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 + 0x3240], ax
mov ecx, dword [esi + 0x323c]
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 0x5978d3
cmp byte [esi + 0x3238], 1
jne 0x5978d3
cmp byte [esi + 0x3239], al
jne 0x5978d3
cmp byte [esi + 0x323a], al
jne 0x5978d3
mov ecx, esi
mov byte [ebx], 1
call fcn.00596630
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 + 0x3238]
push edx
call fcn.00594a70
mov ecx, dword [esi + 0x3210]
mov edi, eax
lea eax, [ecx + 1]
add esp, 4
cmp eax, edi
je 0x5979b9
test ecx, ecx
jne 0x597901
test edi, edi
je 0x5979b9
cmp edi, ecx
jbe 0x597835
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x3234]
dec eax
add dword [esi + 0x90], eax
test ecx, ecx
je 0x597924
add dword [ecx + 0x864], eax
mov ecx, dword [esi + 0x90]
add dword [esi + 0x31f4], eax
push ecx
mov ecx, dword [esi + 0xa0]
call fcn.0055ae40
mov edx, dword [esi + 0x8c]
inc edx
cmp dword [esi + 0x31f4], edx
jb 0x5979b9
push str.Last_packet_of_this_connection_is_skipped._Complete._n
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [esi + 0x8c]
mov eax, dword [esi + 0x31f4]
lea edx, [ecx + 1]
cmp eax, edx
jbe 0x59799b
sub eax, ecx
mov ecx, dword [esi + 0x3234]
dec eax
sub dword [esi + 0x90], eax
test ecx, ecx
je 0x597983
sub dword [ecx + 0x864], eax
sub dword [esi + 0x31f4], eax
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0xa0]
push eax
call fcn.0055ae40
mov ecx, esi
call fcn.005972f0
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 + 0x323f]
movzx edx, byte [esi + 0x323e]
shl ecx, 8
lea eax, [ecx + edx - 8]
xor ecx, ecx
cmp ecx, eax
mov dword [esi + 0x3214], eax
sbb eax, eax
neg eax
mov dword [esi + 0x3210], 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