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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478958
mov eax, dword fs:[0]
push eax
sub esp, 0x54
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 - 0x60], ecx
push str._________AHttpSocket::readHttpHead_____________
call fcn.0044b4a1
add esp, 4
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x38], 0
je 0x40c7d4
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0044ad2a
add esp, 4
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x38], 0
push 0x19000
call fcn.004494ce
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 0x40c8ad
cmp dword [ebp - 0x44], 0x2800
jge 0x40c8ad
mov ecx, dword [ebp - 0x60]
call fcn.0040e020
movzx ecx, al
test ecx, ecx
jne 0x40c82a
jmp 0x40c8ad
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 0x40c84e
mov byte [ebp - 0x19], 0
jmp 0x40c8ad
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 0x40c8a8
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x44]
movsx eax, byte [edx - 4]
cmp eax, 0xd
jne 0x40c8a8
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x44]
movsx edx, byte [ecx - 3]
cmp edx, 0xa
jne 0x40c8a8
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x44]
movsx ecx, byte [eax - 2]
cmp ecx, 0xd
jne 0x40c8a8
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x44]
movsx eax, byte [edx - 1]
cmp eax, 0xa
jne 0x40c8a8
mov byte [ebp - 0x3d], 1
jmp 0x40c7fd
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.00406c40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
add ecx, 1
push ecx
call fcn.004494ce
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.00453010
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.0044fb00
add esp, 0xc
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.0040d6f0
push eax
push str._________m_szResultHead________len___d
call fcn.0044b4a1
add esp, 8
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x38]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.0040d6f0
push eax
mov ecx, dword [ebp - 0x60]
call fcn.0040da40
cmp dword [ebp - 0x18], 0
je 0x40c971
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0044ad2a
add esp, 4
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x19]
mov byte [ebp - 0x59], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406d50
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.0044ab62
mov esp, ebp
pop ebp
ret