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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4419a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x44f6c0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x38], 0
je 0x40a087
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00428d4f
add esp, 4
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x38], 0
push 0x19000
call fcn.00427a82
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x19], 1
mov byte [ebp - 0x3e], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x3d], 0
movzx eax, byte [ebp - 0x3d]
test eax, eax
jne 0x40a160
cmp dword [ebp - 0x44], 0x2800
jge 0x40a160
mov ecx, dword [ebp - 0x60]
call fcn.0040b680
movzx ecx, al
test ecx, ecx
jne 0x40a0dd
jmp 0x40a160
push 0
push 1
lea edx, [ebp - 0x3e]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jg 0x40a101
mov byte [ebp - 0x19], 0
jmp 0x40a160
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x44]
mov al, byte [ebp - 0x3e]
mov byte [edx], al
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 4
jl 0x40a15b
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x44]
movsx eax, byte [edx - 4]
cmp eax, 0xd
jne 0x40a15b
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x44]
movsx edx, byte [ecx - 3]
cmp edx, 0xa
jne 0x40a15b
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x44]
movsx ecx, byte [eax - 2]
cmp ecx, 0xd
jne 0x40a15b
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x44]
movsx eax, byte [edx - 1]
cmp eax, 0xa
jne 0x40a15b
mov byte [ebp - 0x3d], 1
jmp 0x40a0b0
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x44]
mov byte [ecx], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408410
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
add ecx, 1
push ecx
call fcn.00427a82
add esp, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x54]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x38]
push eax
call fcn.004306a0
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x38]
push ecx
call fcn.0042b380
add esp, 0xc
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.0040af00
push eax
mov ecx, dword [ebp - 0x60]
call fcn.0040b240
cmp dword [ebp - 0x18], 0
je 0x40a207
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00428d4f
add esp, 4
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x59], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004022f0
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004286dd
mov esp, ebp
pop ebp
ret