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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00405810
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
jne 0x404d9b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00404d20
jmp 0x404f3c
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c], 0
jbe 0x404dc6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
push eax
call fcn.00410a90
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
jbe 0x404e1a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call fcn.00410750
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call fcn.00410a90
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x2c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x30]
sub ecx, dword [eax + 0x2c]
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x404e71
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x404e71
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.00404d20
jmp 0x404f3c
cmp dword [ebp - 0x14], 0
jle 0x404e86
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], ecx
cmp dword [ebp - 0x14], 0
jg 0x404e1a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 4
jb 0x404f0a
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 4
jae 0x404ecd
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00404d20
jmp 0x404f3c
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp dword [ebp - 8], eax
jge 0x404eda
jmp 0x404f0a
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00404f50
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
mov eax, dword [ebp - 8]
sub eax, edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
jmp 0x404ea5
cmp dword [ebp - 8], 0
jle 0x404f3c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call fcn.00410750
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x20], ecx
mov esp, ebp
pop ebp
ret 4