Function at 0x4f2ca7
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], 0x5060f0
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.004f2991
pop eax
pop ecx
mov edx, dword [ebp - 0x60]
cmp edx, 2
je 0x4f2e7e
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
test edx, edx
jne 0x4f2e86
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], eax
cmp edx, dword [ebp - 0x24]
jb 0x4f2ed7
mov esi, dword [ebp - 0x40]
mov edx, 0x590db8
mov ecx, esi
call fcn.00452010
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 0x4f2d82
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x274a
jne 0x4f2ddb
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 0x4f2e90
lea ecx, [ebp - 0x48]
call fcn.004eada0
cmp al, 0xd
jne 0x4f2ebe
mov ecx, edi
lea edx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x10], 2
call fcn.004f293f
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x60]
push esi
call fcn.004e94b6
pop eax
mov edi, dword [ebp - 0x38]
jmp 0x4f2d0f
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
call fcn.0043d0d4
cmp al, 0xd
jne 0x4f2d89
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4f2e6e
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], esi
mov edx, dword [ebx]
lea ecx, [ebp - 0x60]
lock inc dword [eax]
jle 0x4f2ee7
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.00468408
add esp, 0xc
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
push 4
pop ecx
call fcn.004cc65b
cmp byte [ebp - 0x60], 4
mov edi, dword [ebp - 0x38]
je 0x4f2d89
mov ebx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x28]
cmp bl, 4
je 0x4f2d89
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.004cc65b
jmp 0x4f2d9e
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 4
jmp 0x4f2d89
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f2ec6
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f2ec6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
add eax, esi
cmp eax, ecx
jbe 0x4f2ea7
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, eax
add dword [ebp - 0x24], esi
jb 0x4f2ee9
cmp ecx, eax
jb 0x4f2eff
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 4
jmp 0x4f2ec6
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 0x590a40
call fcn.00535f90
ud2
or dword [ebp - 0x10], 0xffffffff
push 0xf
pop edx
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
push 0x590dc8
call fcn.005363f0
lea ecx, [ebp - 0x60]
or dword [ebp - 0x10], 0xffffffff
mov edx, 0x590dc8
mov dword [ecx], 0x590a90
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 0x5b8dd0
and dword [ecx + 0xc], 0
call fcn.00535f60
push ebp
sub esp, 0x10
add ebp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.004cc65b
add esp, 0x10
pop ebp
ret