Function at 0x40bd50
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f09c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0x88]
call fcn.004086c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004086f0
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xc0]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0040a9f0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00408830
cmp dword [ebp + 0x18], 0
jne 0x40bdf3
mov dword [ebp - 0xc4], 0
jmp 0x40be70
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004086f0
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb4]
or eax, 1
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0040a9f0
add esp, 8
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0xb4]
or ecx, 2
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0xd4]
call fcn.00409b80
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00409b80
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.0040cb10
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0xad], dl
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb4]
and eax, 2
je 0x40bec7
and dword [ebp - 0xb4], 0xfffffffd
lea ecx, [ebp - 0x64]
call fcn.00409b30
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0xb4]
and ecx, 1
je 0x40bee8
and dword [ebp - 0xb4], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.00408830
movzx edx, byte [ebp - 0xad]
test edx, edx
je 0x40bf3a
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408770
mov ecx, dword [ebp - 0xb4]
or ecx, 4
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00408830
mov eax, dword [ebp + 8]
jmp 0x40c058
push 0x100000
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x65], 0
mov edx, 1
test edx, edx
je 0x40bff4
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40bf78
jmp 0x40bff4
cmp dword [ebp - 0x6c], 0
ja 0x40bf84
mov byte [ebp - 0x65], 1
jmp 0x40bff4
cmp dword [ebp - 0x6c], 0x100000
jbe 0x40bfae
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0042ec89
add esp, 4
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40bfd6
jmp 0x40bff4
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x88]
call fcn.004091f0
jmp 0x40bf51
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0042ec89
add esp, 4
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x40c016
lea ecx, [ebp - 0x88]
call fcn.00409a10
lea edx, [ebp - 0x88]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408770
mov eax, dword [ebp - 0xb4]
or eax, 4
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00408830
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0x14