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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8fc
mov eax, dword [0x41b038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x8cc], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x8ca]
push ecx
call fcn.0040a840
add esp, 0xc
lea edx, [ebp - 0x8cc]
mov dword [ebp - 0x8f0], edx
cmp dword [ebp + 0x14], 0
je 0x4062dd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8f0], eax
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x8f0]
mov word [eax + ecx], dx
mov dword [ebp - 0x8d4], 0
mov dword [ebp - 0x8d0], 0
mov dword [ebp - 0x8dc], 0
mov dword [ebp - 0x8e8], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x40632b
jmp 0x406569
cmp dword [ebp + 0xc], 0
jne 0x40633b
jmp 0x406569
mov byte [ebp - 0xcc], 0
push 0xc7
push 0
lea edx, [ebp - 0xcb]
push edx
call fcn.0040a840
add esp, 0xc
xor eax, eax
mov word [ebp - 0x8d8], ax
push 0
push 2
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0xffffffff
je 0x406390
cmp dword [ebp - 0x8dc], 0
jne 0x40639a
jmp 0x406569
mov cx, word [ebp - 0xcc]
mov word [ebp - 0x8d8], cx
mov dword [ebp - 0x8d0], 0
movzx edx, word [ebp - 0x8d8]
add edx, 2
push edx
call fcn.00408387
add esp, 4
mov dword [ebp - 0x8f8], eax
mov eax, dword [ebp - 0x8f8]
mov dword [ebp - 0x8d4], eax
movzx ecx, word [ebp - 0x8d8]
cmp ecx, dword [ebp - 0x8d0]
jle 0x406463
push 0
movzx edx, word [ebp - 0x8d8]
sub edx, dword [ebp - 0x8d0]
push edx
mov eax, dword [ebp - 0x8d4]
add eax, dword [ebp - 0x8d0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x8dc], eax
cmp dword [ebp - 0x8dc], 0xffffffff
je 0x406427
cmp dword [ebp - 0x8dc], 0
jne 0x40644c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x8e4], eax
mov eax, dword [ebp - 0x8e4]
add eax, 0xa
mov dword [ebp - 0x8e4], eax
jmp 0x406569
mov ecx, dword [ebp - 0x8d0]
add ecx, dword [ebp - 0x8dc]
mov dword [ebp - 0x8d0], ecx
jmp 0x4063d7
cmp dword [ebp - 0x8d0], 5
jge 0x406478
jmp 0x406569
mov edx, dword [ebp - 0x8d0]
sub edx, 5
mov dword [ebp - 0x8d0], edx
push 5
mov eax, dword [ebp - 0x8d4]
push eax
push 0x41bf10
call fcn.00412645
add esp, 0xc
mov dword [ebp - 0x8f4], eax
cmp dword [ebp - 0x8f4], 0
je 0x4064b6
jmp 0x406569
mov dword [ebp - 0x8e0], 0
jmp 0x4064d1
mov ecx, dword [ebp - 0x8e0]
add ecx, 1
mov dword [ebp - 0x8e0], ecx
mov edx, dword [ebp - 0x8e0]
cmp edx, dword [ebp - 0x8d0]
jge 0x406502
mov eax, dword [ebp - 0x8d4]
add eax, dword [ebp - 0x8e0]
movzx ecx, byte [eax + 5]
not ecx
mov edx, dword [ebp - 0x8d4]
add edx, dword [ebp - 0x8e0]
mov byte [edx + 5], cl
jmp 0x4064c2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x8d0]
jl 0x40653e
mov edx, dword [ebp - 0x8d0]
push edx
mov eax, 1
imul eax, eax, 5
add eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040b4a0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x8d0]
mov dword [edx], eax
jmp 0x40655f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, 1
imul eax, eax, 5
add eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040b4a0
add esp, 0xc
mov dword [ebp - 0x8e8], 1
cmp dword [ebp - 0x8d4], 0
je 0x4065b8
mov edx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8ec], edx
mov eax, dword [ebp - 0x8ec]
push eax
call fcn.0040877b
add esp, 4
cmp dword [ebp - 0x8ec], 0
jne 0x4065a2
mov dword [ebp - 0x8fc], 0
jmp 0x4065b8
mov dword [ebp - 0x8d4], 0x8123
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8fc], ecx
mov dword [ebp - 0x8d4], 0
mov eax, dword [ebp - 0x8e8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b74
mov esp, ebp
pop ebp
ret