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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478988
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x48d744]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
push 0x482d4c
call fcn.0044b4a1
add esp, 4
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40c41b
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x40c3f9
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0044ad2a
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x400
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004494ce
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov dword [ebp - 0x14], 0x400
mov edx, dword [ebp - 0x14]
push edx
call fcn.004494ce
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00453010
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.00453010
add esp, 0xc
mov byte [ebp - 0x19], 1
mov byte [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x41], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
movzx edx, byte [ebp - 0x41]
test edx, edx
jne 0x40c501
mov ecx, dword [ebp - 0x68]
call fcn.0040e020
movzx eax, al
test eax, eax
jne 0x40c494
jmp 0x40c501
push 0
push 1
lea ecx, [ebp - 0x42]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40c4b8
mov byte [ebp - 0x19], 1
jmp 0x40c501
cmp dword [ebp - 0x4c], 0
jge 0x40c4c4
mov byte [ebp - 0x19], 0
jmp 0x40c501
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x48]
mov dl, byte [ebp - 0x42]
mov byte [ecx], dl
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x48]
movsx edx, byte [ecx - 2]
cmp edx, 0xd
jne 0x40c4fc
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x48]
movsx ecx, byte [eax - 1]
cmp ecx, 0xa
jne 0x40c4fc
mov byte [ebp - 0x41], 1
jmp 0x40c501
jmp 0x40c47b
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x48]
mov byte [edx], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00406c40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
add eax, 1
push eax
call fcn.004494ce
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov edx, dword [ebp - 0x48]
add edx, 1
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00453010
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0044fb00
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0044ad35
add esp, 4
mov dl, byte [ebp - 0x19]
mov byte [ebp - 0x61], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406d50
mov al, byte [ebp - 0x61]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0044ab62
mov esp, ebp
pop ebp
ret 8