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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x417044]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
xor eax, eax
mov word [ebp - 0x8e8], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x8e6]
push ecx
call fcn.0040cfd0
add esp, 0xc
lea edx, [ebp - 0x8e8]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x405cd9
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 - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x405d0f
jmp 0x40600e
cmp dword [ebp + 0xc], 0
jne 0x405d1f
jmp 0x40600e
mov byte [ebp - 0xe8], 0
push 0xc7
push 0
lea ecx, [ebp - 0xe7]
push ecx
call fcn.0040cfd0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x10], dx
push 0
push 2
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405d68
cmp dword [ebp - 8], 0
jne 0x405dd9
mov dword [ebp - 0x8fc], 0x414e48
mov eax, dword [ebp - 4]
mov dword [ebp - 0x900], eax
mov ecx, dword [ebp - 0x900]
mov dword [ebp - 0x904], ecx
mov edx, dword [ebp - 0x8fc]
mov ax, word [edx]
mov word [ebp - 0x906], ax
mov ecx, dword [ebp - 0x900]
mov dx, word [ebp - 0x906]
mov word [ecx], dx
mov eax, dword [ebp - 0x8fc]
add eax, 2
mov dword [ebp - 0x8fc], eax
mov ecx, dword [ebp - 0x900]
add ecx, 2
mov dword [ebp - 0x900], ecx
cmp word [ebp - 0x906], 0
jne 0x405d87
jmp 0x40600e
mov dx, word [ebp - 0xe8]
mov word [ebp - 0x10], dx
mov dword [ebp - 0xc], 0
movzx eax, word [ebp - 0x10]
add eax, 2
push eax
call fcn.0040691b
add esp, 4
mov dword [ebp - 0x8f4], eax
mov ecx, dword [ebp - 0x8f4]
mov dword [ebp - 0x14], ecx
movzx edx, word [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jle 0x405ee1
push 0
movzx eax, word [ebp - 0x10]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405e47
cmp dword [ebp - 8], 0
jne 0x405ed3
mov dword [ebp - 0x90c], 0x414ea8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x910], ecx
mov edx, dword [ebp - 0x910]
mov dword [ebp - 0x914], edx
mov eax, dword [ebp - 0x90c]
mov cx, word [eax]
mov word [ebp - 0x916], cx
mov edx, dword [ebp - 0x910]
mov ax, word [ebp - 0x916]
mov word [edx], ax
mov ecx, dword [ebp - 0x90c]
add ecx, 2
mov dword [ebp - 0x90c], ecx
mov edx, dword [ebp - 0x910]
add edx, 2
mov dword [ebp - 0x910], edx
cmp word [ebp - 0x916], 0
jne 0x405e66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8ec], eax
mov eax, dword [ebp - 0x8ec]
add eax, 0xa
mov dword [ebp - 0x8ec], eax
jmp 0x40600e
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x405e0a
cmp dword [ebp - 0xc], 5
jge 0x405ef3
jmp 0x40600e
mov edx, dword [ebp - 0xc]
sub edx, 5
mov dword [ebp - 0xc], edx
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, 0x418060
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405f80
mov dword [ebp - 0x91c], 0x414f08
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x920], ecx
mov edx, dword [ebp - 0x920]
mov dword [ebp - 0x924], edx
mov eax, dword [ebp - 0x91c]
mov cx, word [eax]
mov word [ebp - 0x926], cx
mov edx, dword [ebp - 0x920]
mov ax, word [ebp - 0x926]
mov word [edx], ax
mov ecx, dword [ebp - 0x91c]
add ecx, 2
mov dword [ebp - 0x91c], ecx
mov edx, dword [ebp - 0x920]
add edx, 2
mov dword [ebp - 0x920], edx
cmp word [ebp - 0x926], 0
jne 0x405f2e
jmp 0x40600e
mov dword [ebp - 0x8f0], 0
jmp 0x405f9b
mov eax, dword [ebp - 0x8f0]
add eax, 1
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
cmp ecx, dword [ebp - 0xc]
jge 0x405fc3
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x8f0]
movzx eax, byte [edx + 5]
not eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x8f0]
mov byte [ecx + 5], al
jmp 0x405f8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 0xc]
jl 0x405fee
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 5
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040da00
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x406007
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 5
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040da00
add esp, 0xc
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14], 0
je 0x40602c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8f8], ecx
mov edx, dword [ebp - 0x8f8]
push edx
call fcn.00406ce6
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret