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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 0xc]
mov edi, 0x7fffffff
mov dword [ebp - 0x64], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504a80
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
add ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x6c], ecx
mov ecx, dword [esi + 4]
mov esi, dword [edx + 8]
mov dword [ebp - 0x38], ecx
sub ecx, eax
mov dword [ebp - 0x70], esi
lea esi, [ebp - 0x58]
cmp ecx, edi
cmovae ecx, edi
mov edi, dword [edx + 0xc]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x70]
mov ecx, esi
push 0
push dword [ebp + 8]
call fcn.004f10d2
pop eax
pop ecx
mov edx, dword [ebp - 0x58]
cmp edx, 2
je 0x4f1587
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
test edx, edx
jne 0x4f158f
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
cmp edx, dword [ebp - 0x24]
jb 0x4f15e0
cmp edi, 0xffffffff
je 0x4f15f0
push 0
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push edi
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4f1491
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x274a
jne 0x4f14e7
mov byte [ebp - 0x40], 4
mov esi, eax
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x40]
cmp bl, 4
mov dword [ebp - 0x34], ebx
je 0x4f15a3
lea ecx, [ebp - 0x34]
call fcn.004e9574
cmp al, 0xd
jne 0x4f1599
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x10], 2
call fcn.004f1080
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x58]
push esi
call fcn.004e8690
pop eax
mov edi, dword [ebp - 0x60]
jmp 0x4f1425
and dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call fcn.0043cb60
cmp al, 0xd
jne 0x4f1579
mov edi, dword [ebp - 0x5c]
test edi, edi
je 0x4f156e
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], esi
mov edx, dword [edi]
lea ecx, [ebp - 0x58]
lock inc dword [eax]
jle 0x4f15fa
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
add edx, 8
mov dword [ebp - 0x10], 1
push edi
push esi
push eax
call fcn.004682f0
add esp, 0xc
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
push 4
pop ecx
call fcn.004cb5e1
cmp byte [ebp - 0x58], 4
mov esi, dword [ebp - 0x28]
je 0x4f1579
mov ebx, dword [ebp - 0x58]
cmp bl, 4
je 0x4f1579
mov edx, esi
mov esi, dword [ebp - 0x54]
or dword [ebp - 0x10], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
call fcn.004cb5e1
jmp 0x4f14a9
and dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 4
and dword [ebp - 0x34], 0
xor ebx, ebx
mov dword [ebp - 0x30], esi
jmp 0x4f14a9
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f15cf
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f15cf
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], esi
jmp 0x4f15cf
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [edx + 0xc]
add ecx, eax
cmp ecx, edx
jbe 0x4f15ba
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov edx, ecx
add dword [ebp - 0x24], eax
jb 0x4f15fc
cmp edx, ecx
jb 0x4f160e
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x38]
push 0x580254
call fcn.00526910
mov ecx, 0x5805cc
call fcn.00526c90
ud2
push 0xf
pop edx
mov ecx, str.filled_overflowfilled_must_not_become_larger_than_initialized
push 0x5805dc
call fcn.00526cb0
lea ecx, [ebp - 0x58]
mov edx, 0x5805dc
mov dword [ecx], 0x5802a4
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 4
and dword [ecx + 0xc], 0
call fcn.005268e0
push ebp
sub esp, 0x10
add ebp, 0xc
lea eax, [ebp - 0x58]
push eax
call fcn.004e8690
pop eax
add esp, 0x10
pop ebp
ret