Function at 0x10690a6
Capabilities:
Check http status code
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov eax, 0x1081157
call fcn.01032938
sub esp, 0xd8
push ebx
push esi
push edi
lea ecx, [ebp - 0xe4]
call fcn.010695d7
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
je 0x1069108
cmp word [ebx], di
jne 0x106910d
mov esi, 0x80070057
cmp esi, edi
jl 0x1069463
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1069434
test byte [ebp + 8], 0x20
jne 0x1069434
push ebx
lea ecx, [ebp - 0xe4]
call fcn.010696f4
mov esi, eax
cmp esi, edi
jl 0x1069439
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe4]
call fcn.010695a6
mov esi, eax
cmp esi, edi
jl 0x1069439
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0106971e
mov esi, eax
cmp esi, edi
jl 0x1069439
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01069739
mov esi, eax
cmp esi, edi
jl 0x1069439
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe4]
call fcn.010695be
mov esi, eax
cmp esi, edi
jl 0x1069439
cmp dword [ebp - 0x1c], edi
jne 0x10691b8
mov dword [ebp - 0x1c], 0x50
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01069754
mov esi, eax
cmp esi, edi
jl 0x1069439
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0106976f
mov esi, eax
cmp esi, edi
jl 0x1069439
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38]
call fcn.0102e317
cmp dword [ebp - 0x60], edi
je 0x106920f
cmp dword [ebp - 0x40], edi
je 0x106920f
cmp dword [ebp - 0x18], 3
je 0x1069219
cmp dword [ebp - 0x18], 4
je 0x1069219
mov esi, 0x80070057
jmp 0x1069439
cmp dword [ebp - 0x18], 4
mov dword [ebp + 8], 0x400f100
jne 0x106922d
mov dword [ebp + 8], 0x480f100
push edi
push edi
push edi
push edi
push 0x1018b4c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x20], ebx
je 0x1069409
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x1069260
push ebx
call fcn.01068f48
mov esi, eax
cmp esi, edi
jl 0x1069439
mov eax, dword [ebp - 0x44]
cmp eax, edi
jne 0x106926c
mov eax, 0x1003ac8
push edi
push 0x200
push 3
push edi
push edi
push dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x1069409
xor ebx, ebx
cmp ebx, edi
mov ecx, 0x1018b40
je 0x106929c
mov ecx, 0x1018b38
mov eax, dword [ebp - 0x34]
cmp eax, edi
jne 0x10692a8
mov eax, 0x1003ac8
push edi
push dword [ebp + 8]
push 0x1095994
push edi
push 0x1018b24
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1069409
lea ecx, [ebp - 0x98]
call fcn.0102afc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.01068da4
cmp dword [ebp + 0xc], 0xffffffff
mov byte [ebp - 4], 6
je 0x106930a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
call fcn.01068cba
mov esi, eax
cmp esi, edi
jl 0x10693e5
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10693c3
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.01068d29
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.0102afd6
cmp dword [ebp - 0x10], edi
je 0x1069402
push 4
pop esi
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000013
push dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1069409
mov eax, dword [ebp - 0x24]
cmp eax, 0x190
jb 0x10693bf
cmp ebx, 1
jne 0x10693a9
sub eax, 0x194
je 0x106942d
sub eax, esi
je 0x1069434
dec eax
dec eax
je 0x106942d
sub eax, 0x5c
je 0x106942d
dec eax
je 0x106942d
dec eax
je 0x1069434
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
inc ebx
cmp ebx, 2
mov dword [ebp - 0x10], edi
jl 0x106928e
xor esi, esi
jmp 0x1069439
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10693d5
call esi
mov esi, eax
jmp 0x10693e5
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.01068d29
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.0102afd6
jmp 0x1069439
mov esi, 0x80072f83
jmp 0x1069447
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x106941b
call esi
mov esi, eax
jmp 0x1069439
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1069439
mov esi, 0x80070002
jmp 0x1069439
mov esi, 0x80072f83
cmp dword [ebp - 0x10], edi
je 0x1069447
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x1069455
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x14], edi
je 0x1069463
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 1
lea ecx, [ebp - 0x58]
call fcn.01025782
push 1
lea ecx, [ebp - 0x38]
call fcn.01025782
push 1
lea ecx, [ebp - 0x48]
call fcn.01025782
push 1
lea ecx, [ebp - 0x68]
call fcn.01025782
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.01069602
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc