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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x432070]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x82c], ecx
xor eax, eax
mov word [ebp - 0x820], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x81e]
push ecx
call fcn.00418590
add esp, 0xc
lea edx, [ebp - 0x820]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x40506d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4050a3
jmp 0x4052b3
cmp dword [ebp + 0xc], 0
jne 0x4050b3
jmp 0x4052b3
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
push 0
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x405151
mov dword [ebp - 0x830], 0x42edf8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x834], ecx
mov edx, dword [ebp - 0x834]
mov dword [ebp - 0x838], edx
mov eax, dword [ebp - 0x830]
mov cx, word [eax]
mov word [ebp - 0x83a], cx
mov edx, dword [ebp - 0x834]
mov ax, word [ebp - 0x83a]
mov word [edx], ax
mov ecx, dword [ebp - 0x830]
add ecx, 2
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x834]
add edx, 2
mov dword [ebp - 0x834], edx
cmp word [ebp - 0x83a], 0
jne 0x4050ff
jmp 0x4052b3
cmp dword [ebp - 0xc], 0
jne 0x405168
mov dword [ebp - 0x1c], 1
jmp 0x4052b3
movzx eax, byte [ebp - 8]
shl eax, 0x18
movzx ecx, byte [ebp - 7]
shl ecx, 0x10
add eax, ecx
movzx edx, byte [ebp - 6]
shl edx, 8
add eax, edx
movzx ecx, byte [ebp - 5]
add eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.0041769e
add esp, 4
mov dword [ebp - 0x824], eax
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x10]
jle 0x40526e
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jae 0x40526e
push 0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4051f5
cmp dword [ebp - 0xc], 0
jne 0x405260
mov dword [ebp - 0x840], 0x42ee58
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x844], ecx
mov edx, dword [ebp - 0x844]
mov dword [ebp - 0x848], edx
mov eax, dword [ebp - 0x840]
mov cx, word [eax]
mov word [ebp - 0x84a], cx
mov edx, dword [ebp - 0x844]
mov ax, word [ebp - 0x84a]
mov word [edx], ax
mov ecx, dword [ebp - 0x840]
add ecx, 2
mov dword [ebp - 0x840], ecx
mov edx, dword [ebp - 0x844]
add edx, 2
mov dword [ebp - 0x844], edx
cmp word [ebp - 0x84a], 0
jne 0x405214
jmp 0x4052b3
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4051ae
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x10]
jl 0x405296
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00417f10
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x4052ac
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00417f10
add esp, 0xc
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], 0
je 0x4052d8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x828], eax
mov ecx, dword [ebp - 0x828]
push ecx
call fcn.00416f14
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004167a0
mov esp, ebp
pop ebp
ret 0x10