Function at 0x48c7d0
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 0x52edc0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1d20
call fcn.004bab30
mov eax, dword [0x590cc0]
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 + 0xc]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x1cd8], edx
mov dword [ebp - 0x1ce8], ecx
mov ecx, dword [ebp + 0x24]
lea edx, [ebp - 0x14a4]
push 0x400
push edx
mov dword [ebp - 0x1cd0], ebx
mov dword [ebp - 0x1ce0], esi
mov dword [ebp - 0x1cec], edi
mov dword [ebp - 0x1ccc], ecx
call fcn.004bd49e
add esp, 0xc
push 0x3c
lea eax, [ebp - 0x1d30]
push 0
push eax
mov dword [ebp - 0x1cdc], 0
call fcn.004ba010
lea ecx, [ebp - 0xa9c]
mov dword [ebp - 0x1d2c], ecx
add esp, 0xc
lea ecx, [ebp - 0x1cc4]
mov dword [ebp - 0x1d0c], ecx
lea edx, [ebp - 0xca4]
lea ecx, [ebp - 0x1d30]
push ecx
mov dword [ebp - 0x1d20], edx
lea eax, [ebp - 0x16ac]
mov dword [ebp - 0x1d14], eax
lea edx, [ebp - 0x1abc]
push 0
lea eax, [ebp - 0x18b4]
mov dword [ebp - 0x1d04], edx
mov dword [ebp - 0x1cfc], eax
mov eax, 0x104
push 0
lea edx, [ebp - 0x14a4]
push edx
mov dword [ebp - 0x1d30], 0x3c
mov dword [ebp - 0x1d10], eax
mov dword [ebp - 0x1d00], eax
mov dword [ebp - 0x1d28], eax
mov dword [ebp - 0x1d08], eax
mov dword [ebp - 0x1d1c], eax
mov dword [ebp - 0x1cf8], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x48cd14
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x48cd14
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x6a8]
test eax, eax
je 0x48c954
lea edx, [eax + 4]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x1cc8], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48c936
sub eax, dword [ebp - 0x1cc8]
sar eax, 1
je 0x48c954
push 0
push 0
push edx
push 3
jmp 0x48c95c
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
test eax, eax
je 0x48cd14
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push 0
push 4
lea edx, [ebp - 0x1cc8]
push edx
push 2
push eax
mov dword [ebp - 0x1cc8], 0x7530
call esi
mov ecx, dword [edi]
push 0
push 4
lea eax, [ebp - 0x1cc8]
push eax
push 5
push ecx
call esi
mov eax, dword [edi]
push 0
push 4
lea edx, [ebp - 0x1cc8]
push edx
push 6
push eax
call esi
mov ecx, dword [ebp - 0x1d0c]
mov edx, dword [ebp - 0x1d14]
mov eax, dword [ebp - 0x1d20]
push ebx
push 0
push 3
push ecx
mov ecx, dword [edi]
push edx
push 0x1bb
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [ebp - 0x1cd8]
mov dword [esi], eax
test eax, eax
je 0x48cd14
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x892]
push eax
mov word [ebp - 0x894], dx
call fcn.004ba010
mov ecx, dword [ebp - 0x1d04]
push ecx
lea edx, [ebp - 0x894]
push 0x400
push edx
call fcn.004bd49e
mov eax, dword [ebp - 0x1cfc]
push eax
lea ecx, [ebp - 0x894]
push 0x400
push ecx
call fcn.004bdeb6
mov ecx, dword [ebp - 0x1ce8]
add esp, 0x24
push ebx
push 0x84a80000
lea edx, [ebp - 0x1cf4]
push edx
mov edx, dword [esi]
push 0
push 0
lea eax, [ebp - 0x894]
push eax
push ecx
push edx
mov dword [ebp - 0x1cf4], 0x549768
mov dword [ebp - 0x1cf0], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x1ccc]
mov dword [ecx], eax
test eax, eax
je 0x48cd14
mov ebx, dword [ebx + 0x6a8]
test ebx, ebx
je 0x48cbaf
lea eax, [ebx + 0x20c]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x48caa0
sub ecx, esi
sar ecx, 1
je 0x48cbaf
lea edx, [eax + 2]
jmp 0x48cac0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48cac0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [ebx + 0x414]
mov dword [ebp - 0x1cc8], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48cae1
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7ad5
mov esi, eax
xor ecx, ecx
add esp, 4
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7ad5
mov edx, dword [ebp - 0x1cd0]
mov edi, eax
mov eax, dword [ebp - 0x1cc8]
lea ecx, [eax + eax]
mov eax, dword [edx + 0x6a8]
add esp, 4
push ecx
add eax, 0x20c
push eax
push esi
call fcn.004b9350
mov edx, dword [ebp - 0x1cd0]
mov eax, dword [edx + 0x6a8]
lea ecx, [ebx + ebx]
push ecx
add eax, 0x414
push eax
push edi
call fcn.004b9350
mov ecx, dword [ebp - 0x1cc8]
mov edx, dword [ebp - 0x1ccc]
mov eax, dword [edx]
add esp, 0x18
push ecx
push esi
push 0x2b
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x1ccc]
mov edx, dword [ecx]
push ebx
push edi
push 0x2c
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push esi
call fcn.004b9ded
push edi
call fcn.004b9ded
mov edi, dword [ebp - 0x1cec]
add esp, 8
mov eax, dword [ebp - 0x1ccc]
mov ecx, dword [eax]
push 0x80000000
push 0xd
push 0x54974c
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x48cd14
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
test esi, esi
jne 0x48cbe4
cmp ebx, esi
jbe 0x48cc97
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x92]
push eax
mov word [ebp - 0x94], dx
call fcn.004ba010
add esp, 0xc
cmp ebx, esi
jbe 0x48cc44
push ebx
push esi
lea ecx, [ebp - 0x94]
push str.Range:_bytes_d__d
push ecx
call fcn.0048c0c0
add esp, 0x10
jmp 0x48cc59
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.004b9ff3
mov esp, ebp
pop ebp
ret 0x20
push esi
lea edx, [ebp - 0x94]
push str.Range:_bytes_d_
push edx
call fcn.0048c0c0
add esp, 0xc
lea eax, [ebp - 0x94]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48cc62
mov ebx, dword [ebp - 0x1ccc]
mov ecx, dword [ebx]
sub eax, edx
push 0x10000000
sar eax, 1
push eax
lea eax, [ebp - 0x94]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x48cd14
jmp 0x48cc9d
mov ebx, dword [ebp - 0x1ccc]
mov edx, dword [ebx]
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x48cd14
mov eax, dword [ebx]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x1cc8]
push ecx
lea edx, [ebp - 0x1cd4]
push edx
lea ecx, [ebp - 0x94]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x1cd4], 0x80
mov dword [ebp - 0x1cc8], 0
call esi
test eax, eax
je 0x48cd0a
mov eax, dword [ebp - 0x94]
cmp eax, 0x12d
je 0x48cd1f
cmp eax, 0x12e
je 0x48cd1f
cmp eax, 0x12c
jae 0x48cd14
mov dword [ebp - 0x1cdc], 1
mov eax, dword [ebp - 0x1cdc]
jmp 0x48cc26
lea edx, [ebp - 0x1cd4]
push edx
mov edx, dword [ebx]
lea eax, [ebp - 0x1ce4]
push eax
lea ecx, [ebp - 0x14a4]
push ecx
push 0x21
push edx
mov dword [ebp - 0x1ce4], 0x800
mov dword [ebp - 0x1cd4], 0
call esi
mov eax, dword [ebp - 0x1cd8]
mov ecx, dword [ebp - 0x1cd0]
push ebx
push eax
push edi
call fcn.00447890
mov ebx, dword [ebp - 0x1cd0]
mov esi, dword [ebp - 0x1ce0]
mov dword [ebp - 4], 0xffffffff
jmp 0x48c853