Function at 0x409db1
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 0x41f1f9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x150c
call fcn.0041d000
mov eax, dword [0x4271f0]
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 dword [ebp - 0x14d0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14cc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14c8], eax
mov eax, dword [ebp + 0x18]
push 0x3c
mov dword [ebp - 0x14d8], eax
mov eax, dword [ebp + 0x1c]
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x14d4], eax
lea eax, [ebp - 0x151c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14e0], ebx
call fcn.00411bc0
lea eax, [ebp - 0xeac]
mov dword [ebp - 0x1518], eax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x150c], eax
lea eax, [ebp - 0xca4]
mov dword [ebp - 0x1500], eax
lea eax, [ebp - 0x12bc]
mov dword [ebp - 0x14f8], eax
lea eax, [ebp - 0x14c4]
mov dword [ebp - 0x14f0], eax
lea eax, [ebp - 0x10b4]
mov dword [ebp - 0x14e8], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x14fc], eax
mov dword [ebp - 0x14ec], eax
mov dword [ebp - 0x1514], eax
mov dword [ebp - 0x14f4], eax
mov dword [ebp - 0x1508], eax
mov dword [ebp - 0x14e4], eax
lea eax, [ebp - 0x151c]
push eax
push ebx
push ebx
push dword [ebp - 0x14c8]
mov dword [ebp - 0x151c], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40a22f
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x40a22f
mov eax, dword [ebp - 0x14d0]
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x6a4]
cmp eax, ebx
je 0x409f08
lea ecx, [eax + 4]
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x409ef0
sub eax, edi
sar eax, 1
je 0x409f08
push ebx
push ebx
push ecx
push 3
jmp 0x409f0d
push ebx
push ebx
push ebx
push 1
push dword [ebp - 0x14cc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
je 0x40a22f
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push ebx
push 4
lea ecx, [ebp - 0x14c8]
push ecx
push 2
push eax
mov dword [ebp - 0x14c8], 0x7530
call edi
push ebx
push 4
lea eax, [ebp - 0x14c8]
push eax
push 5
push dword [esi]
call edi
push ebx
push 4
lea eax, [ebp - 0x14c8]
push eax
push 6
push dword [esi]
call edi
mov edi, dword [ebp - 0x14d0]
push edi
push ebx
push 3
push dword [ebp - 0x14f8]
push dword [ebp - 0x1500]
push dword [ebp - 0x1504]
push dword [ebp - 0x150c]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [ebp - 0x14d8]
mov dword [esi], eax
cmp eax, ebx
je 0x40a22f
xor eax, eax
push 0x7fe
mov word [ebp - 0xa9c], ax
lea eax, [ebp - 0xa9a]
push ebx
push eax
call fcn.00411bc0
mov ecx, dword [ebp - 0x14f0]
add esp, 0xc
lea edx, [ebp - 0xa9c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x409fc6
push edi
push 0x84280000
lea eax, [ebp - 0x14dc]
push eax
push ebx
push ebx
lea eax, [ebp - 0xa9c]
push eax
mov eax, 0x4242a4
push eax
push dword [esi]
mov dword [ebp - 0x14dc], 0x4242ac
mov dword [ebp - 0x14d8], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [ebp - 0x14d4]
mov dword [esi], eax
cmp eax, ebx
je 0x40a22f
mov edx, dword [edi + 0x6a4]
cmp edx, ebx
je 0x40a14c
lea eax, [edx + 0x20c]
mov ecx, eax
lea edi, [ecx + 2]
mov dword [ebp - 0x14d8], edi
mov di, word [ecx]
add ecx, 2
cmp di, bx
jne 0x40a03a
sub ecx, dword [ebp - 0x14d8]
sar ecx, 1
je 0x40a14c
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a056
sub eax, esi
sar eax, 1
lea esi, [eax + 1]
lea eax, [edx + 0x414]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40a071
sub eax, ecx
sar eax, 1
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b0f0
pop ecx
mov dword [ebp - 0x14c8], eax
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b0f0
mov dword [ebp - 0x14cc], eax
pop ecx
lea eax, [esi + esi]
push eax
mov eax, dword [ebp - 0x14d0]
mov eax, dword [eax + 0x6a4]
add eax, 0x20c
push eax
push dword [ebp - 0x14c8]
call fcn.0040dc50
lea eax, [edi + edi]
push eax
mov eax, dword [ebp - 0x14d0]
mov eax, dword [eax + 0x6a4]
add eax, 0x414
push eax
push dword [ebp - 0x14cc]
call fcn.0040dc50
mov eax, dword [ebp - 0x14d4]
add esp, 0x18
push esi
push dword [ebp - 0x14c8]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x2b
push dword [eax]
call esi
mov eax, dword [ebp - 0x14d4]
push edi
push dword [ebp - 0x14cc]
push 0x2c
push dword [eax]
call esi
push dword [ebp - 0x14c8]
call fcn.0040b811
push dword [ebp - 0x14cc]
call fcn.0040b811
mov esi, dword [ebp - 0x14d4]
pop ecx
pop ecx
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x80000000
push 0xd
push str.Accept:___r_n
push dword [esi]
call edi
test eax, eax
je 0x40a22f
cmp dword [ebp + 0x14], ebx
ja 0x40a17a
xor eax, eax
cmp eax, dword [ebp + 0x14]
jbe 0x40a207
xor eax, eax
push 0x7e
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push ebx
push eax
call fcn.00411bc0
xor eax, eax
add esp, 0xc
cmp eax, dword [ebp + 0x14]
jbe 0x40a1c3
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x94]
push str.Range:_bytes_d__d
push eax
call fcn.004097d3
add esp, 0x10
jmp 0x40a1da
push dword [ebp + 0x14]
lea eax, [ebp - 0x94]
push str.Range:_bytes_d_
push eax
call fcn.004097d3
add esp, 0xc
lea eax, [ebp - 0x94]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a1e3
sub eax, edx
push 0x10000000
sar eax, 1
push eax
lea eax, [ebp - 0x94]
push eax
push dword [esi]
call edi
test eax, eax
je 0x40a22f
push ebx
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40a22f
push dword [esi]
call fcn.00409d51
cmp eax, 0x12c
jae 0x40a22f
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
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.0040b365
leave
ret 0x18