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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c1158
push eax
mov dword fs:[0], esp
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x3150]
test al, al
je 0x539b24
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
call fcn.005399c0
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 + 0x3118]
sub ecx, eax
lea edx, [eax + esi + 0x3110]
mov eax, dword [esi + 0x3108]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
mov cx, word [esi + 0x3118]
mov ebp, 8
movsx edx, cx
sub ebp, edx
cmp eax, ebp
je 0x539bf3
test eax, eax
jge 0x539bcf
mov ecx, dword [0x6754d4]
mov dword [esp + 0x1c], ecx
push eax
lea edx, [esp + 0x20]
push 0x66bec0
push edx
mov dword [esp + 0x20], 0
call fcn.00593b08
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00508d80
lea ecx, [esp + 0x1c]
mov word [esi + 0x3118], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.0059ad3d
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 0x539bda
add ecx, eax
mov word [esi + 0x3118], 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 + 0x3114]
lea ecx, [esp + 0x1c]
mov word [esi + 0x3118], 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 0x539c5b
cmp byte [esi + 0x3110], 1
jne 0x539c5b
mov al, byte [esi + 0x3111]
test al, al
jne 0x539c5b
mov al, byte [esi + 0x3112]
test al, al
jne 0x539c5b
mov ecx, esi
mov byte [edi], 1
call fcn.005399c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
lea ecx, [esi + 0x3110]
push ecx
call fcn.00538f90
mov ecx, dword [esi + 0x30e8]
mov edi, eax
add esp, 4
lea edx, [ecx + 1]
cmp edx, edi
je 0x539d57
test ecx, ecx
jne 0x539c89
test edi, edi
je 0x539d57
cmp edi, ecx
ja 0x539ca4
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 + 0x50]
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x310c]
dec eax
add ebp, eax
test ecx, ecx
mov dword [esi + 0x50], ebp
je 0x539cc1
add dword [ecx + 0x7ec], eax
mov ecx, dword [esi + 0x30cc]
add ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x30cc], ecx
mov ecx, dword [esi + 0x60]
push eax
call fcn.00508660
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x30cc]
inc ecx
cmp eax, ecx
jb 0x539d57
push 0x66be88
mov ecx, esi
call fcn.00508d80
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x30cc]
lea edx, [ecx + 1]
cmp eax, edx
jbe 0x539d3a
mov edi, dword [esi + 0x50]
sub eax, ecx
mov ecx, dword [esi + 0x310c]
dec eax
sub edi, eax
test ecx, ecx
mov dword [esi + 0x50], edi
je 0x539d20
sub dword [ecx + 0x7ec], eax
mov edx, dword [esi + 0x30cc]
mov ecx, dword [esi + 0x60]
sub edx, eax
mov eax, dword [esi + 0x50]
push eax
mov dword [esi + 0x30cc], edx
call fcn.00508660
mov ecx, esi
call fcn.0053b640
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 + 0x3117]
mov dl, byte [esi + 0x3116]
shl ecx, 8
mov dword [esi + 0x30e8], edi
pop edi
lea eax, [ecx + edx - 8]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 8]
mov dword [esi + 0x30ec], eax
pop esi
sbb eax, eax
mov dword fs:[0], ecx
neg eax
dec eax
pop ebp
add esp, 0xc
ret 4