Function at 0x4019a0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ee17
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x441310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
push str.User_Agent
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [0x44216c], eax
cmp dword [0x44216c], 0
jne 0x4019f7
push 0xffffffffffffffff
call fcn.0041bc42
push 0
movzx eax, word [ebp + 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.00410750
push eax
mov ecx, dword [0x44216c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [0x442170], eax
cmp dword [0x442170], 0
jne 0x401a29
push 0xffffffffffffffff
call fcn.0041bc42
push 0
push 0
push 0
push str.HTTP_1.1
lea ecx, [ebp + 0x24]
call fcn.00410750
push eax
push 0x4302d0
mov edx, dword [0x442170]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [0x442174], eax
cmp dword [0x442174], 0
jne 0x401a64
push 0xffffffffffffffff
call fcn.0041bc42
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x442174]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x24], eax
push 0
mov ecx, dword [0x442174]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 4
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20000013
mov ecx, dword [0x442174]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebp - 0x14], 0xc8
je 0x401acd
push 0xffffffffffffffff
call fcn.0041bc42
mov dword [ebp - 0x20], 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0x16
mov eax, dword [0x442174]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401b41
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004147c3
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.Content_Length
push 0xffff
mov eax, dword [0x442174]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x24], eax
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [0x442174]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x48]
call fcn.00407b80
mov byte [ebp - 4], 2
push 0xa
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00411970
add esp, 0xc
mov dword [0x442188], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00408930
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004147cc
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x401ba6
mov dword [ebp - 0x30], 0
jmp 0x401bb3
mov dword [ebp - 0x20], 0x8123
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x442188]
push ecx
call fcn.0041b29d
add esp, 4
mov dword [0x442184], eax
lea edx, [ebp - 0x18]
push edx
mov eax, dword [0x442188]
push eax
mov ecx, dword [0x442184]
push ecx
mov edx, dword [0x442174]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401bf0
push 0xffffffffffffffff
call fcn.0041bc42
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00408930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004147d1
mov esp, ebp
pop ebp
ret