Function at 0x40a850
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c618d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
mov dword [ebp - 0x4c], ecx
mov ecx, ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
call fcn.0040c590
test al, al
je 0x40aaa6
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.0040c4f0
test al, al
je 0x40aabb
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0040c460
test al, al
je 0x40a93c
push 0
push 0x4e8e68
lea ecx, [ebp - 0x2c]
call fcn.00405030
cmp eax, 0xffffffff
jne 0x40aad0
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40aae5
mov eax, dword [ebp - 0x44]
cmp eax, 0x800000
ja 0x40aafa
push eax
call fcn.00470500
push 0x1000
mov dword [ebp - 0x3c], eax
call fcn.00470500
mov ecx, dword [ebp - 0x34]
mov edi, eax
add esp, 8
mov dword [ebp - 0x40], edi
nop dword [eax]
cmp ecx, 0x1000
jbe 0x40a9a1
push edi
call fcn.004704e5
push dword [ebp - 0x34]
call fcn.00470500
mov ecx, dword [ebp - 0x34]
mov edi, eax
add esp, 8
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x48]
push eax
push ecx
push edi
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40ab0f
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x3c]
push esi
push edi
push eax
call fcn.004640d0
add dword [ebp - 0x38], esi
lea eax, [ebp - 0x34]
add esp, 0xc
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40ab24
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x40a980
mov edx, dword [ebp - 0x18]
mov bl, 1
cmp edx, 8
jb 0x40aa27
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab39
push edx
push ecx
call fcn.0043c464
add esp, 8
mov esi, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x40aa5b
test edi, edi
je 0x40aa68
push edi
call fcn.004704e5
add esp, 4
test bl, bl
je 0x40aa7b
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
jmp 0x40aa86
push dword [ebp - 0x3c]
call fcn.004704e5
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c480
mov esp, ebp
pop ebp
ret 0xc
push 0x4f7ecc
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 1
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 4
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 5
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0xc
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 8
push eax
call fcn.00464e01
push 0x4f7ecc
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 8
push eax
call fcn.00464e01
call fcn.00470977
int3