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

Disassembly:
sub esp, 0x8e0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x8dc], eax
mov eax, dword [esp + 0x8e8]
push ebx
push ebp
mov ebp, dword [esp + 0x8ec]
push esi
push edi
mov ebx, ecx
push 0x7fe
lea ecx, [esp + 0xf2]
push 0
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov esi, edx
mov word [esp + 0xf8], 0
call fcn.0040f6e0
add esp, 0xc
test esi, esi
lea edi, [esp + 0xec]
mov dword [esp + 0x14], edi
je 0x405c28
mov dword [esp + 0x14], esi
mov edi, esi
mov word [edi], 0
mov esi, dword [ebp]
xor eax, eax
test esi, esi
mov dword [esp + 0x10], eax
je 0x405d9b
test ebx, ebx
je 0x405d9b
push 0xc7
push eax
lea edx, [esp + 0x2d]
push edx
mov byte [esp + 0x30], al
call fcn.0040f6e0
mov ebx, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 2
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x405e35
test eax, eax
je 0x405e35
movzx edi, word [esp + 0x24]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040bc89
add esp, 4
test edi, edi
mov dword [esp + 0x18], eax
jle 0x405d86
nop
mov eax, dword [esp + 0x18]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp]
lea ecx, [esi + eax]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x405d69
test eax, eax
je 0x405d69
add esi, eax
cmp edi, esi
jg 0x405ca0
cmp esi, 5
jl 0x405d86
mov ebp, dword [esp + 0x18]
sub esi, 5
mov eax, 5
mov ecx, ebp
mov edx, 0x423130
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x405d04
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405ce8
test eax, eax
je 0x405db4
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405d5b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405db4
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405d5b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405db4
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405d5b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405db4
movzx edi, byte [edx]
movzx ecx, byte [ecx]
sub edi, ecx
je 0x405db4
test edi, edi
mov eax, 1
jg 0x405db6
or eax, 0xffffffff
jmp 0x405db6
mov eax, dword [esp + 0x14]
push 0x41df00
push 0x3ff
push eax
call fcn.0040aeda
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405d97
push eax
call fcn.0040ba8e
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040adf2
add esp, 0x8e0
ret
xor eax, eax
test eax, eax
je 0x405dd3
mov edx, dword [esp + 0x14]
push 0x41df00
push 0x3ff
push edx
call fcn.0040aeda
add esp, 0xc
jmp 0x405d86
test esi, esi
jle 0x405dee
lea eax, [ebp + 5]
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
not dl
mov byte [eax], dl
add eax, 1
sub ecx, 1
jne 0x405de0
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
add ebp, 5
cmp eax, esi
jl 0x405e19
mov eax, dword [esp + 0x1c]
push esi
push ebp
push eax
call fcn.00410890
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x405d86
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.00410890
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x405d86
push 0x41df00
push 0x3ff
push edi
call fcn.0040aeda
add esp, 0xc
jmp 0x405d97