Function at 0x482896
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 0x4b9cf9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1d1c
call fcn.00494df0
mov eax, dword [0x4f9b3c]
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.004978f4
add esp, 0xc
and dword [ebp - 0x1ce0], 0
push 0x3c
lea eax, [ebp - 0x1d2c]
push 0
push eax
call fcn.00492b40
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 0x482d53
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x482d53
and dword [ebp - 4], eax
mov eax, dword [ebx + 0x6a4]
test eax, eax
je 0x4829f9
add eax, 4
push eax
call fcn.00493091
pop ecx
test eax, eax
je 0x4829f9
mov eax, dword [ebx + 0x6a4]
push 0
push 0
add eax, 4
push eax
push 3
jmp 0x482a00
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 0x482d53
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 dword [ebp - 0x1d14]
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 0x482d53
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x894], ax
lea eax, [ebp - 0x892]
push eax
call fcn.00492b40
push dword [ebp - 0x1d00]
lea eax, [ebp - 0x894]
push 0x400
push eax
call fcn.004978f4
push dword [ebp - 0x1cf8]
lea eax, [ebp - 0x894]
push 0x400
push eax
call fcn.004996ff
add esp, 0x24
push ebx
push 0x84280000
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], 0x4d2520
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi], eax
test eax, eax
je 0x482d53
mov eax, dword [ebx + 0x6a4]
test eax, eax
je 0x482c42
add eax, 0x20c
push eax
call fcn.00493091
pop ecx
test eax, eax
je 0x482c42
mov eax, dword [ebx + 0x6a4]
add eax, 0x20c
push eax
call fcn.00493091
inc eax
mov dword [ebp - 0x1cc8], eax
mov eax, dword [ebx + 0x6a4]
add eax, 0x414
push eax
call fcn.00493091
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.004912f9
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.004912f9
mov dword [ebp - 0x1ccc], eax
mov eax, dword [ebp - 0x1cc8]
pop ecx
add eax, eax
push eax
mov eax, dword [ebx + 0x6a4]
add eax, 0x20c
push eax
push dword [ebp - 0x1cd0]
call fcn.004927d0
mov eax, dword [ebp - 0x1cd4]
add eax, eax
push eax
mov eax, dword [ebx + 0x6a4]
add eax, 0x414
push eax
push dword [ebp - 0x1ccc]
call fcn.004927d0
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.004926f3
push dword [ebp - 0x1ccc]
call fcn.004926f3
pop ecx
pop ecx
push SysReAllocString
push 0x4d2504
call fcn.00493091
pop ecx
push eax
push 0x4d2504
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x482d53
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp ecx, eax
ja 0x482c7a
cmp dword [ebp + 0x18], ecx
jbe 0x482d1b
push 0x7e
push eax
lea eax, [ebp - 0x92]
xor ecx, ecx
push eax
mov word [ebp - 0x94], cx
call fcn.00492b40
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp dword [ebp + 0x18], eax
jbe 0x482cde
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x94]
push str.Range:_bytes_d__d
push eax
call fcn.004827a0
add esp, 0x10
jmp 0x482cf3
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.004927bf
leave
ret 0x20
push eax
lea eax, [ebp - 0x94]
push str.Range:_bytes_d_
push eax
call fcn.004827a0
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x10000000
push eax
call fcn.00493091
pop ecx
push eax
lea eax, [ebp - 0x94]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x482d53
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 0x482d53
push dword [edi]
mov ecx, ebx
call fcn.00483e99
cmp eax, 0x12d
je 0x482d5e
cmp eax, 0x12e
je 0x482d5e
cmp eax, 0x12c
jae 0x482d53
mov dword [ebp - 0x1ce0], 1
mov eax, dword [ebp - 0x1ce0]
jmp 0x482cc2
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.00483e58
or dword [ebp - 4], 0xffffffff
jmp 0x482907