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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f8
mov eax, dword [0x42fc20]
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.00411d40
add esp, 0xc
lea edx, [ebp - 0x8e8]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x4050d9
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 0x40510f
jmp 0x4052ce
cmp dword [ebp + 0xc], 0
jne 0x40511f
jmp 0x4052ce
mov byte [ebp - 0xe8], 0
push 0xc7
push 0
lea ecx, [ebp - 0xe7]
push ecx
call fcn.00411d40
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 0x405168
cmp dword [ebp - 8], 0
jne 0x405172
jmp 0x4052ce
mov ax, word [ebp - 0xe8]
mov word [ebp - 0x10], ax
mov dword [ebp - 0xc], 0
movzx ecx, word [ebp - 0x10]
add ecx, 2
push ecx
call fcn.00405860
add esp, 4
mov dword [ebp - 0x8f4], eax
mov edx, dword [ebp - 0x8f4]
mov dword [ebp - 0x14], edx
movzx eax, word [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jle 0x405208
push 0
movzx ecx, word [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4051d8
cmp dword [ebp - 8], 0
jne 0x4051fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8ec], eax
mov edx, dword [ebp - 0x8ec]
add edx, 0xa
mov dword [ebp - 0x8ec], edx
jmp 0x4052ce
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x4051a3
cmp dword [ebp - 0xc], 5
jge 0x40521a
jmp 0x4052ce
mov ecx, dword [ebp - 0xc]
sub ecx, 5
mov dword [ebp - 0xc], ecx
mov ecx, 5
mov edi, dword [ebp - 0x14]
mov esi, str.AS101
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405240
jmp 0x4052ce
mov dword [ebp - 0x8f0], 0
jmp 0x40525b
mov eax, dword [ebp - 0x8f0]
add eax, 1
mov dword [ebp - 0x8f0], eax
mov ecx, dword [ebp - 0x8f0]
cmp ecx, dword [ebp - 0xc]
jge 0x405283
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 0x40524c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 0xc]
jl 0x4052ae
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.00417810
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x4052c7
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.00417810
add esp, 0xc
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14], 0
je 0x4052ec
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8f8], ecx
mov edx, dword [ebp - 0x8f8]
push edx
call fcn.0040588f
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.0040fcc0
mov esp, ebp
pop ebp
ret