Function at 0x405930
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.0040ef00
add esp, 0xc
test esi, esi
lea edi, [esp + 0xec]
mov dword [esp + 0x14], edi
je 0x405998
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 0x405b0b
test ebx, ebx
je 0x405b0b
push 0xc7
push eax
lea edx, [esp + 0x2d]
push edx
mov byte [esp + 0x30], al
call fcn.0040ef00
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 0x405ba5
test eax, eax
je 0x405ba5
movzx edi, word [esp + 0x24]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040b9d2
add esp, 4
test edi, edi
mov dword [esp + 0x18], eax
jle 0x405af6
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 0x405ad9
test eax, eax
je 0x405ad9
add esi, eax
cmp edi, esi
jg 0x405a10
cmp esi, 5
jl 0x405af6
mov ebp, dword [esp + 0x18]
sub esi, 5
mov eax, 5
mov ecx, ebp
mov edx, 0x423140
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x405a74
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405a58
test eax, eax
je 0x405b24
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405acb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405b24
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405acb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405b24
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405acb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405b24
movzx edi, byte [edx]
movzx ecx, byte [ecx]
sub edi, ecx
je 0x405b24
test edi, edi
mov eax, 1
jg 0x405b26
or eax, 0xffffffff
jmp 0x405b26
mov eax, dword [esp + 0x14]
push 0x41deb0
push 0x3ff
push eax
call fcn.0040ac07
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405b07
push eax
call fcn.0040b7d7
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.0040ab4e
add esp, 0x8e0
ret
xor eax, eax
test eax, eax
je 0x405b43
mov edx, dword [esp + 0x14]
push 0x41deb0
push 0x3ff
push edx
call fcn.0040ac07
add esp, 0xc
jmp 0x405af6
test esi, esi
jle 0x405b5e
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 0x405b50
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
add ebp, 5
cmp eax, esi
jl 0x405b89
mov eax, dword [esp + 0x1c]
push esi
push ebp
push eax
call fcn.004100b0
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x405af6
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.004100b0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x405af6
push 0x41deb0
push 0x3ff
push edi
call fcn.0040ac07
add esp, 0xc
jmp 0x405b07