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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x624fb8
push eax
mov dword fs:[0], esp
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x3268]
test al, al
je 0x58a714
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
call fcn.0058a5b0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
mov edi, dword [esp + 0x1c]
mov ecx, 8
push 0
mov byte [edi], 0
movsx eax, word [esi + 0x3230]
sub ecx, eax
lea edx, [eax + esi + 0x3228]
mov eax, dword [esi + 0x3220]
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov cx, word [esi + 0x3230]
mov ebp, 8
movsx edx, cx
sub ebp, edx
cmp eax, ebp
je 0x58a7e3
test eax, eax
jge 0x58a7bf
mov ecx, dword [0x6e7b6c]
mov dword [esp + 0x1c], ecx
push eax
lea edx, [esp + 0x20]
push 0x6ddc88
push edx
mov dword [esp + 0x20], 0
call fcn.005f368b
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push eax
call fcn.005474d0
lea ecx, [esp + 0x1c]
mov word [esi + 0x3230], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.005fa859
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
jle 0x58a7ca
add ecx, eax
mov word [esi + 0x3230], cx
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
lea edx, [esi + 0x322c]
lea ecx, [esp + 0x1c]
mov word [esi + 0x3230], 0
mov byte [esp + 0x1c], 0xce
mov eax, dword [edx]
mov byte [esp + 0x1d], 0xfa
mov byte [esp + 0x1e], 0xb
mov byte [esp + 0x1f], 0xb0
cmp eax, dword [ecx]
jne 0x58a84b
cmp byte [esi + 0x3228], 1
jne 0x58a84b
mov al, byte [esi + 0x3229]
test al, al
jne 0x58a84b
mov al, byte [esi + 0x322a]
test al, al
jne 0x58a84b
mov ecx, esi
mov byte [edi], 1
call fcn.0058a5b0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
lea ecx, [esi + 0x3228]
push ecx
call fcn.00589b70
mov ecx, dword [esi + 0x3200]
mov edi, eax
add esp, 4
lea edx, [ecx + 1]
cmp edx, edi
je 0x58a95f
test ecx, ecx
jne 0x58a879
test edi, edi
je 0x58a95f
cmp edi, ecx
ja 0x58a894
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
mov ebp, dword [esi + 0x80]
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x3224]
dec eax
add ebp, eax
test ecx, ecx
mov dword [esi + 0x80], ebp
je 0x58a8b7
add dword [ecx + 0x854], eax
mov ecx, dword [esi + 0x31e4]
add ecx, eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x31e4], ecx
mov ecx, dword [esi + 0x90]
push eax
call fcn.00546da0
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x31e4]
inc ecx
cmp eax, ecx
jb 0x58a95f
push 0x6ddc50
mov ecx, esi
call fcn.005474d0
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x31e4]
lea edx, [ecx + 1]
cmp eax, edx
jbe 0x58a942
mov edi, dword [esi + 0x80]
sub eax, ecx
mov ecx, dword [esi + 0x3224]
dec eax
sub edi, eax
test ecx, ecx
mov dword [esi + 0x80], edi
je 0x58a922
sub dword [ecx + 0x854], eax
mov edx, dword [esi + 0x31e4]
mov ecx, dword [esi + 0x90]
sub edx, eax
mov eax, dword [esi + 0x80]
push eax
mov dword [esi + 0x31e4], edx
call fcn.00546da0
mov ecx, esi
call fcn.0058c280
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x322f]
mov dl, byte [esi + 0x322e]
shl ecx, 8
mov dword [esi + 0x3200], edi
pop edi
lea eax, [ecx + edx - 8]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 8]
mov dword [esi + 0x3204], eax
pop esi
sbb eax, eax
mov dword fs:[0], ecx
neg eax
dec eax
pop ebp
add esp, 0xc
ret 4