Function at 0x452cb7
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd470
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1d1c
call fcn.00497500
mov eax, dword [0x5002b0]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x1cdc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x1ce8], ecx
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x1094]
push 0x400
push eax
mov dword [ebp - 0x1cd8], ecx
call fcn.0049a7ad
add esp, 0xc
and dword [ebp - 0x1ce0], 0
push 0x3c
lea eax, [ebp - 0x1d2c]
push 0
push eax
call fcn.00495b20
lea eax, [ebp - 0x129c]
mov dword [ebp - 0x1d28], eax
lea eax, [ebp - 0x14a4]
mov dword [ebp - 0x1d1c], eax
lea eax, [ebp - 0x18b4]
mov dword [ebp - 0x1d10], eax
lea eax, [ebp - 0x1cc4]
mov dword [ebp - 0x1d08], eax
lea eax, [ebp - 0x1abc]
mov dword [ebp - 0x1d00], eax
lea eax, [ebp - 0x16ac]
mov dword [ebp - 0x1cf8], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x1d0c], eax
mov dword [ebp - 0x1cfc], eax
mov dword [ebp - 0x1d24], eax
mov dword [ebp - 0x1d04], eax
mov dword [ebp - 0x1d18], eax
mov dword [ebp - 0x1cf4], eax
lea eax, [ebp - 0x1d2c]
push eax
push 0
push 0
lea eax, [ebp - 0x1094]
push eax
mov dword [ebp - 0x1d2c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x453173
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x453173
and dword [ebp - 4], eax
mov eax, dword [ebx + 0x6a8]
test eax, eax
je 0x452e1a
add eax, 4
push eax
call fcn.00495461
pop ecx
test eax, eax
je 0x452e1a
mov eax, dword [ebx + 0x6a8]
push 0
push 0
add eax, 4
push eax
push 3
jmp 0x452e21
xor eax, eax
push eax
push eax
push eax
push 1
push dword [ebp - 0x1cdc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x453173
push 0
push 4
lea ecx, [ebp - 0x1cc8]
push ecx
push 2
push eax
mov dword [ebp - 0x1cc8], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionExW]
push 0
push 4
lea eax, [ebp - 0x1cc8]
push eax
push 5
push dword [esi]
call dword [sym.imp.WININET.dll_InternetSetOptionExW]
push 0
push 4
lea eax, [ebp - 0x1cc8]
push eax
push 6
push dword [esi]
call dword [sym.imp.WININET.dll_InternetSetOptionExW]
push ebx
push 0
push 3
push dword [ebp - 0x1d08]
push dword [ebp - 0x1d10]
push 0x1bb
push dword [ebp - 0x1d1c]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x1cd8]
mov dword [ecx], eax
test eax, eax
je 0x453173
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x894], ax
lea eax, [ebp - 0x892]
push eax
call fcn.00495b20
push dword [ebp - 0x1d00]
lea eax, [ebp - 0x894]
push 0x400
push eax
call fcn.0049a7ad
push dword [ebp - 0x1cf8]
lea eax, [ebp - 0x894]
push 0x400
push eax
call fcn.0049c28c
add esp, 0x24
push ebx
push 0x84a80000
xor eax, eax
lea ecx, [ebp - 0x1cf0]
push ecx
push eax
push eax
mov dword [ebp - 0x1cec], eax
lea eax, [ebp - 0x894]
push eax
push dword [ebp - 0x1ce8]
mov eax, dword [ebp - 0x1cd8]
push dword [eax]
mov dword [ebp - 0x1cf0], 0x4d7650
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi], eax
test eax, eax
je 0x453173
mov eax, dword [ebx + 0x6a8]
test eax, eax
je 0x453062
add eax, 0x20c
push eax
call fcn.00495461
pop ecx
test eax, eax
je 0x453062
mov eax, dword [ebx + 0x6a8]
add eax, 0x20c
push eax
call fcn.00495461
inc eax
mov dword [ebp - 0x1cc8], eax
mov eax, dword [ebx + 0x6a8]
add eax, 0x414
push eax
call fcn.00495461
inc eax
mov dword [ebp - 0x1cd4], eax
mov eax, dword [ebp - 0x1cc8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938c3
add esp, 0xc
mov dword [ebp - 0x1cd0], eax
mov eax, dword [ebp - 0x1cd4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938c3
mov dword [ebp - 0x1ccc], eax
mov eax, dword [ebp - 0x1cc8]
pop ecx
add eax, eax
push eax
mov eax, dword [ebx + 0x6a8]
add eax, 0x20c
push eax
push dword [ebp - 0x1cd0]
call fcn.00495100
mov eax, dword [ebp - 0x1cd4]
add eax, eax
push eax
mov eax, dword [ebx + 0x6a8]
add eax, 0x414
push eax
push dword [ebp - 0x1ccc]
call fcn.00495100
add esp, 0x18
push dword [ebp - 0x1cc8]
push dword [ebp - 0x1cd0]
push 0x2b
push dword [edi]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp - 0x1cd4]
push dword [ebp - 0x1ccc]
push 0x2c
push dword [edi]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp - 0x1cd0]
call fcn.00495548
push dword [ebp - 0x1ccc]
call fcn.00495548
pop ecx
pop ecx
push SysReAllocString
push 0x4d7634
call fcn.00495461
pop ecx
push eax
push 0x4d7634
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x453173
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp ecx, eax
ja 0x45309a
cmp dword [ebp + 0x18], ecx
jbe 0x45313b
push 0x7e
push eax
lea eax, [ebp - 0x92]
xor ecx, ecx
push eax
mov word [ebp - 0x94], cx
call fcn.00495b20
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp dword [ebp + 0x18], eax
jbe 0x4530fe
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x94]
push str.Range:_bytes_d__d
push eax
call fcn.004526b1
add esp, 0x10
jmp 0x453113
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.004959f8
leave
ret 0x20
push eax
lea eax, [ebp - 0x94]
push str.Range:_bytes_d_
push eax
call fcn.004526b1
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x10000000
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x94]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x453173
xor eax, eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x453173
push dword [edi]
mov ecx, ebx
call fcn.00452498
cmp eax, 0x12d
je 0x45317e
cmp eax, 0x12e
je 0x45317e
cmp eax, 0x12c
jae 0x453173
mov dword [ebp - 0x1ce0], 1
mov eax, dword [ebp - 0x1ce0]
jmp 0x4530e2
and dword [ebp - 0x1ccc], 0
lea eax, [ebp - 0x1ccc]
push eax
lea eax, [ebp - 0x1ce4]
push eax
lea eax, [ebp - 0x1094]
push eax
push 0x21
push dword [edi]
mov dword [ebp - 0x1ce4], 0x800
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
push dword [ebp - 0x1cd8]
mov ecx, ebx
push esi
call fcn.004524f8
or dword [ebp - 4], 0xffffffff
jmp 0x452d28