Function at 0x401c40
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x2238
call fcn.004113b0
mov eax, dword [0x41b004]
xor eax, esp
mov dword [esp + 0x2234], eax
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 1
push 0x41c3b8
mov edi, edx
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x401e8f
push 0
push 0x80000000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x401cdb
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x30
push str.Internet_connection_is_missing_
push str.Unable_to_start_the_application_installation_because_the_Internet_connection_is_missing._n_nPlease_connect_to_the_Internet_and_continue_the_application_installation.
push dword [0x41c5d0]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
push 0x12c
push dword [0x41c5d0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 4
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x401ea8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401e83
xor eax, eax
push 0x206
push eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x42]
push eax
call fcn.00403230
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x30]
add esp, 0xc
xor edi, edi
push eax
push 0x2000
lea eax, [esp + 0x248]
push eax
push esi
call ebp
test eax, eax
je 0x401e79
mov ebx, dword [esp + 0x10]
nop
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401e75
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
lea eax, [esp + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 0x24]
mov eax, edi
shr eax, 0x1f
movd xmm1, edi
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x418fc0]
mov eax, dword [esp + 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cmp dword [esp + 0x224c], 0
addsd xmm0, qword [eax*8 + 0x418fc0]
divsd xmm1, xmm0
mulsd xmm1, qword [0x418fa0]
movsd qword [esp + 0x18], xmm1
je 0x401e58
cvttsd2si eax, xmm1
push 0
push eax
push 0x402
push 0x12f
push dword [0x41c5d0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movsd xmm0, qword [esp + 0x18]
lea eax, [esp + 0x38]
sub esp, 8
movsd qword [esp], xmm0
push edi
push str.Download_status:__d_bytes___.2f___
push 0x104
push eax
call fcn.004023a0
add esp, 0x18
lea eax, [esp + 0x38]
push eax
push 0x132
push dword [0x41c5d0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x24]
push eax
push 0x2000
lea eax, [esp + 0x248]
push eax
push esi
call ebp
test eax, eax
jne 0x401d80
mov ebx, dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov ecx, dword [esp + 0x2244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004023d4
add esp, 0x2238
ret
push 0x30
push str.File_download_error_
push str.Unable_to_continue_the_application_installation_because_the_file_is_missing_on_the_server._n_nPlease_contact_support_at_support_wintools.net
jmp 0x401cad