Function at 0x405a30
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.0040f550
add esp, 0xc
test esi, esi
lea edi, [esp + 0xec]
mov dword [esp + 0x14], edi
je 0x405a98
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 0x405c0b
test ebx, ebx
je 0x405c0b
push 0xc7
push eax
lea edx, [esp + 0x2d]
push edx
mov byte [esp + 0x30], al
call fcn.0040f550
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 0x405ca5
test eax, eax
je 0x405ca5
movzx edi, word [esp + 0x24]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040baf9
add esp, 4
test edi, edi
mov dword [esp + 0x18], eax
jle 0x405bf6
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 0x405bd9
test eax, eax
je 0x405bd9
add esi, eax
cmp edi, esi
jg 0x405b10
cmp esi, 5
jl 0x405bf6
mov ebp, dword [esp + 0x18]
sub esi, 5
mov eax, 5
mov ecx, ebp
mov edx, str.AS101
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x405b74
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405b58
test eax, eax
je 0x405c24
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405bcb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405c24
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405bcb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405c24
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x405bcb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x405c24
movzx edi, byte [edx]
movzx ecx, byte [ecx]
sub edi, ecx
je 0x405c24
test edi, edi
mov eax, 1
jg 0x405c26
or eax, 0xffffffff
jmp 0x405c26
mov eax, dword [esp + 0x14]
push 0x41ded8
push 0x3ff
push eax
call fcn.0040ad4a
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405c07
push eax
call fcn.0040b8fe
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.0040ac62
add esp, 0x8e0
ret
xor eax, eax
test eax, eax
je 0x405c43
mov edx, dword [esp + 0x14]
push 0x41ded8
push 0x3ff
push edx
call fcn.0040ad4a
add esp, 0xc
jmp 0x405bf6
test esi, esi
jle 0x405c5e
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 0x405c50
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
add ebp, 5
cmp eax, esi
jl 0x405c89
mov eax, dword [esp + 0x1c]
push esi
push ebp
push eax
call fcn.00410700
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x405bf6
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ecx
call fcn.00410700
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x405bf6
push 0x41ded8
push 0x3ff
push edi
call fcn.0040ad4a
add esp, 0xc
jmp 0x405c07