Function at 0x10019df2
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10084ea8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1114
call fcn.10076990
mov eax, dword [0x100a52b4]
xor eax, esp
mov dword [esp + 0x1110], eax
push ebx
push esi
push edi
mov eax, dword [0x100a52b4]
xor eax, esp
push eax
lea eax, [esp + 0x1128]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [esp + 0x20], eax
lea eax, [edi + 0x20]
push str.unknown
push eax
call fcn.1000164e
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 0x32
xor ebx, ebx
push ebx
mov dword [esp + 0x2c], 8
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
cmp eax, ebx
je 0x10019e7f
mov eax, dword [esp + 0x24]
and eax, 1
jne 0x10019e86
push 4
jmp 0x1001a3d7
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, ebx
je 0x10019ea1
test byte [esp + 0x14], 0x20
je 0x10019ea8
push 5
jmp 0x1001a3d7
push 0x100941a4
lea esi, [esp + 0xc4]
call fcn.10001236
lea eax, [edi + 4]
push 0x1008ad00
mov dword [esp + 0x1134], ebx
call fcn.1001024b
test eax, eax
je 0x10019f3f
push str.POST
mov eax, esi
push eax
call fcn.1000164e
push str.Content_type
lea esi, [esp + 0xa8]
call fcn.10001236
push str.text_xml
lea esi, [esp + 0x8c]
mov byte [esp + 0x1134], 1
call fcn.10001236
mov eax, esi
push eax
lea eax, [esp + 0xa8]
push eax
push edi
mov byte [esp + 0x113c], 2
call fcn.1001aa34
push ebx
push 1
call fcn.10001673
push ebx
push 1
lea esi, [esp + 0xac]
mov byte [esp + 0x1138], bl
call fcn.10001673
push str.gzip_deflate
lea esi, [esp + 0x8c]
call fcn.10001236
push str.Accept_Encoding
lea esi, [esp + 0xa8]
mov byte [esp + 0x1134], 3
call fcn.10001236
lea eax, [esp + 0x88]
push eax
mov eax, esi
push eax
push edi
mov byte [esp + 0x113c], 4
call fcn.1001aa34
push ebx
push 1
call fcn.10001673
push ebx
push 1
lea esi, [esp + 0x90]
mov byte [esp + 0x1138], bl
call fcn.10001673
lea ebx, [edi + 0x60]
lea ecx, [esp + 0x6c]
call fcn.1001a87b
mov byte [esp + 0x1130], 5
mov eax, dword [edi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x10019fc4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [edi + 0x98]
cmp dword [eax + 0x18], 8
jb 0x10019fd5
mov eax, dword [eax + 4]
jmp 0x10019fd8
add eax, 4
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 0x3c], eax
cmp eax, ebx
jne 0x1001a00f
push 6
pop edi
push ebx
push 1
lea esi, [esp + 0x74]
call fcn.10001673
push ebx
push 1
lea esi, [esp + 0xc8]
call fcn.10001673
mov eax, edi
jmp 0x1001a3d8
push 4
lea ecx, [esp + 0x30]
push ecx
push 0x41
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x30]
call fcn.1001a4f2
test eax, eax
jne 0x1001a03c
push 8
jmp 0x10019fec
push ebx
push ebx
push 3
mov eax, 0x1008ad00
push eax
push eax
push dword [esp + 0x5c]
push dword [esp + 0x58]
push dword [edi + 0x3c]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x1001a060
push 7
jmp 0x10019fec
xor edx, edx
mov ecx, 0x1bb
cmp word [esp + 0x48], cx
mov ecx, dword [esp + 0xc4]
setne dl
dec edx
and edx, 0x800000
or edx, 0x84483300
cmp dword [esp + 0xd8], 8
jae 0x1001a094
lea ecx, [esp + 0xc4]
push ebx
push edx
mov edx, dword [edi + 0xb8]
push ebx
neg edx
push ebx
sbb edx, edx
and edx, str.HTTP_1.1
push edx
push dword [esp + 0x70]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x1001a0d2
push dword [edi + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x3c], ebx
push 9
jmp 0x10019fec
push 0x100941a4
lea eax, [esp + 0xc4]
call fcn.1001024b
test eax, eax
jne 0x1001a10e
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x1001a0f9
lea eax, [esp + 0x70]
push ebx
push ebx
push dword [esp + 0x88]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
jmp 0x1001a17a
cmp dword [edi + 0x1c], 8
jb 0x1001a119
mov edx, dword [edi + 8]
jmp 0x1001a11c
lea edx, [edi + 8]
lea ecx, [esp + 0x88]
call fcn.10018b0d
cmp dword [esp + 0xa0], 0x10
mov ecx, dword [esp + 0x8c]
jae 0x1001a140
lea ecx, [esp + 0x8c]
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x1001a152
lea eax, [esp + 0x70]
push dword [esp + 0x9c]
push ecx
push dword [esp + 0x88]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push ebx
push 1
lea ecx, [esp + 0x90]
mov esi, eax
call fcn.100118ae
cmp esi, ebx
jne 0x1001a199
push dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0x3c]
call esi
mov dword [edi + 0x3c], ebx
push 0xa
jmp 0x10019fec
lea eax, [esp + 0xf8]
push eax
lea ebx, [esp + 0x14]
call fcn.1001a65d
mov ecx, ebx
lea edx, [esp + 0xa4]
mov byte [esp + 0x1130], 6
call fcn.1001a56b
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [edi + 0x20]
mov byte [esp + 0x1138], 7
call fcn.10001810
push ebx
push 1
lea esi, [esp + 0xac]
mov byte [esp + 0x1138], 6
call fcn.10001673
push edi
lea ecx, [esp + 0x14]
call fcn.1001a5e4
test eax, eax
jne 0x1001a226
push dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0x3c]
call esi
push ebx
push 1
lea esi, [esp + 0x100]
mov dword [edi + 0x3c], ebx
call fcn.10001673
push 0xb
xor ebx, ebx
jmp 0x10019fec
lea eax, [esp + 0xf8]
lea ecx, [edi + 0x40]
push eax
call fcn.1001a6f5
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0x10], ebx
je 0x1001a2a9
cmp dword [esi + 0x18], 8
jb 0x1001a24e
mov eax, dword [esi + 4]
jmp 0x1001a251
lea eax, [esi + 4]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1001a2a9
push 0x1008b5dc
lea eax, [edi + 0x20]
push eax
call fcn.1000164e
push dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0x3c]
call esi
push ebx
push 1
lea esi, [esp + 0x100]
mov dword [edi + 0x3c], ebx
call fcn.10001673
push 0xd
jmp 0x1001a21f
push 0x1009045c
lea ecx, [esp + 0xe0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.100100ef
push 0x1008ad00
push esi
mov byte [esp + 0x1138], 8
call fcn.1000164e
mov esi, 0x1000
cmp dword [esp + 0x18], ebx
jne 0x1001a2eb
cmp dword [esp + 0x1c], 1
je 0x1001a3fe
push 0x1001
lea eax, [esp + 0x118]
push ebx
push eax
call fcn.1006c610
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x1001a4a9
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x1001a2da
cmp eax, esi
jbe 0x1001a337
xor eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + eax + 0x114], bl
cmp dword [ebp + 0x10], ebx
jne 0x1001a35a
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.10014373
jmp 0x1001a2da
push ebx
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x120]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001a2da
push dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0x3c]
call esi
push dword [esp + 0x14]
mov dword [edi + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [esp + 0xe4]
call fcn.100118ae
push ebx
push edi
lea esi, [esp + 0x100]
call fcn.10001673
push ebx
push edi
lea esi, [esp + 0x74]
call fcn.10001673
push ebx
push edi
lea esi, [esp + 0xc8]
call fcn.10001673
push 0xe
pop eax
mov ecx, dword [esp + 0x1128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1110]
xor ecx, esp
call fcn.10069957
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0xf4], 0x10
mov ecx, dword [esp + 0xe0]
jae 0x1001a416
lea ecx, [esp + 0xe0]
lea eax, [esp + 0xa4]
push eax
call fcn.10018c13
pop ecx
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x1138], 9
call fcn.10001810
push ebx
push 1
lea esi, [esp + 0xac]
call fcn.10001673
cmp dword [ebp + 0x10], ebx
je 0x1001a456
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0x3c]
call esi
mov dword [edi + 0x3c], ebx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [esp + 0xe4]
call fcn.100118ae
push ebx
push edi
lea esi, [esp + 0x100]
call fcn.10001673
push ebx
push edi
lea esi, [esp + 0x74]
call fcn.10001673
push ebx
push edi
lea esi, [esp + 0xc8]
call fcn.10001673
xor eax, eax
jmp 0x1001a3d8
push dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0x3c]
call esi
mov dword [edi + 0x3c], ebx
cmp dword [esp + 0x14], ebx
je 0x1001a4cd
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.100118ae
push ebx
push 1
lea esi, [esp + 0x100]
call fcn.10001673
push 0xc
jmp 0x1001a21f