Function at 0x40ba80
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f0d8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x64
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.0040cb10
mov byte [ebp - 0x71], al
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
jne 0x40bb19
mov dword [ebp - 0x58], 1
push 0x496fe4
lea edx, [ebp - 0x58]
push edx
call fcn.00435ff8
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.0040c2a0
movzx ecx, al
test ecx, ecx
jne 0x40bb41
mov dword [ebp - 0x5c], 4
push 0x496fe4
lea edx, [ebp - 0x5c]
push edx
call fcn.00435ff8
lea ecx, [ebp - 0x4c]
call fcn.00409a70
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.0040c210
mov byte [ebp - 0x72], al
mov cl, byte [ebp - 0x72]
mov byte [ebp - 0x4d], cl
movzx edx, byte [ebp - 0x4d]
test edx, edx
je 0x40bb96
push 0
push 0x48e3f4
lea ecx, [ebp - 0x4c]
call fcn.0040cef0
cmp eax, dword [0x490c18]
je 0x40bb96
mov dword [ebp - 0x60], 5
push 0x496fe4
lea eax, [ebp - 0x60]
push eax
call fcn.00435ff8
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40bbc0
mov dword [ebp - 0x64], 4
push 0x496fe4
lea ecx, [ebp - 0x64]
push ecx
call fcn.00435ff8
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x18], eax
push 0x100000
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, 1
test eax, eax
je 0x40bc9d
cmp dword [ebp - 0x14], 0x100000
jbe 0x40bc10
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042ec89
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40bc42
mov dword [ebp - 0x68], 8
push 0x496fe4
lea edx, [ebp - 0x68]
push edx
call fcn.00435ff8
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x24]
push edx
call fcn.0043a470
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40bc8c
mov dword [ebp - 0x6c], 8
push 0x496fe4
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00435ff8
cmp dword [ebp - 0x14], 0
ja 0x40bc98
mov byte [ebp - 0x25], 1
jmp 0x40bc9d
jmp 0x40bbdf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00409b30
jmp 0x40bcc1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x40bcda
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042ec89
add esp, 4
movzx edx, byte [ebp - 0x25]
test edx, edx
je 0x40bcf4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
jmp 0x40bd00
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0042ec89
add esp, 4
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0xc