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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edi, edx
mov edx, dword [ebp + 0xc]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x506bd0
mov dword [ebp - 0x38], edi
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor eax, eax
lea ecx, [edi + 0xc]
cmp dword [edi + 0xc], 0xffffffff
mov esi, dword [edx + 4]
cmove ecx, eax
mov eax, dword [edx + 8]
mov edx, dword [edx]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ecx
add edx, eax
sub esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x64], edx
mov edx, 0x7fffffff
cmp esi, edx
cmovae esi, edx
mov dword [ebp - 0x68], esi
lea esi, [ebp - 0x60]
mov edx, dword [edi + 8]
mov ecx, esi
push 0
push dword [ebp + 8]
call fcn.004f3471
pop eax
pop ecx
mov edx, dword [ebp - 0x60]
cmp edx, 2
je 0x4f395e
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
test edx, edx
jne 0x4f3966
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], eax
cmp edx, dword [ebp - 0x24]
jb 0x4f39b7
mov esi, dword [ebp - 0x40]
mov edx, 0x591e38
mov ecx, esi
call fcn.00452adc
push 0
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push dword [esi]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4f3862
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x274a
jne 0x4f38bb
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x34], 4
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp bl, 4
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
je 0x4f3970
lea ecx, [ebp - 0x48]
call fcn.004eb880
cmp al, 0xd
jne 0x4f399e
mov ecx, edi
lea edx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x10], 2
call fcn.004f341f
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x60]
push esi
call fcn.004e9f96
pop eax
mov edi, dword [ebp - 0x38]
jmp 0x4f37ef
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
call fcn.0043dba8
cmp al, 0xd
jne 0x4f3869
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4f394e
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], esi
mov edx, dword [ebx]
lea ecx, [ebp - 0x60]
lock inc dword [eax]
jle 0x4f39c7
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
add edx, 8
mov dword [ebp - 0x10], 1
push edi
push esi
push eax
call fcn.00468ed8
add esp, 0xc
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
push 4
pop ecx
call fcn.004cd11b
cmp byte [ebp - 0x60], 4
mov edi, dword [ebp - 0x38]
je 0x4f3869
mov ebx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x28]
cmp bl, 4
je 0x4f3869
mov esi, dword [ebp - 0x5c]
or dword [ebp - 0x10], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
call fcn.004cd11b
jmp 0x4f387e
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 4
jmp 0x4f3869
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f39a6
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f39a6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
add eax, esi
cmp eax, ecx
jbe 0x4f3987
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, eax
add dword [ebp - 0x24], esi
jb 0x4f39c9
cmp ecx, eax
jb 0x4f39df
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 4
jmp 0x4f39a6
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
push 0x591ac0
call fcn.00536a70
ud2
or dword [ebp - 0x10], 0xffffffff
push 0xf
pop edx
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
push 0x591e48
call fcn.00536ed0
lea ecx, [ebp - 0x60]
or dword [ebp - 0x10], 0xffffffff
mov edx, 0x591e48
mov dword [ecx], 0x591b10
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 0x5b9e50
and dword [ecx + 0xc], 0
call fcn.00536a40
push ebp
sub esp, 0x10
add ebp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.004cd11b
add esp, 0x10
pop ebp
ret