Function at 0x140001aa0
Capabilities:
Create http request
Create thread
Download and write a file
Get common file path
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
movaps xmmword [rsp + 0x4d0], xmm6
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, r8
mov qword [rsp + 0x40], r8
mov rbx, rdx
mov qword [rsp + 0x48], rdx
mov r13, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.Download
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001fc0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r14, rax
test rax, rax
je 0x140001fb6
mov dword [rsp + 0x78], r12d
mov dword [rbp - 0x78], 4
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x78]
mov edx, 0x20000005
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov r15d, r12d
test eax, eax
je 0x140001f94
cmp dword [rsp + 0x78], r12d
jbe 0x140001f94
mov qword [rsp + 0x58], r12
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005a60]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140002005
mov rdx, qword [rsp + 0x58]
lea rcx, [r13 + 0x320]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [r12 + 0x18]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140001c14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, [0x140005e38]
call fcn.140003df0
mov qword [rbx], rax
jmp 0x140001c17
mov rbx, r12
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x140002023
lea r8, [rbp - 0x80]
mov rdx, qword [r13 + 0x320]
lea rcx, [rsp + 0x38]
call fcn.1400028e0
nop
mov rdi, qword [rax]
test rdi, rdi
je 0x140001c47
mov rdi, qword [rdi]
jmp 0x140001c4a
mov rdi, r12
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov dword [rsp + 0x30], 1
mov r9, qword [rsi]
mov eax, dword [r9 - 0x10]
mov rsi, 0xffffffffffffffff
test rdi, rdi
jne 0x140001c80
mov r8d, r12d
jmp 0x140001c8e
mov r8, rsi
inc r8
cmp word [rdi + r8*2], 0
jne 0x140001c83
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
nop
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140001cf1
mov eax, esi
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140001cec
test rdi, rdi
je 0x140001cec
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001ccc
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140001cdf
call qword [sym.imp.mfc140u.dll_operator]
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400034cc
mov qword [rsp + 0x38], r12
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x140001d2c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001d0c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001d1f
call qword [sym.imp.mfc140u.dll_operator]
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.1400034cc
lea r8, [0x140005e3c]
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x140001f4e
cmp qword [rsp + 0x60], 0
je 0x140001f4e
mov dword [rsp + 0x7c], r12d
lea r9, [rsp + 0x7c]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001f22
movsd xmm6, qword [0x140006cc8]
mov esi, dword [rsp + 0x30]
nop word [rax + rax]
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x140001f22
add r12d, eax
mov r8d, eax
mov r9, qword [rsp + 0x60]
mov edx, 1
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, r12d
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
mov eax, dword [rsp + 0x78]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm1, xmm0
mulsd xmm1, xmm6
cvttsd2si ebx, xmm1
movsxd r8, ebx
xor r9d, r9d
mov edx, 0x7e8
mov rcx, qword [r13 + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
cmp ebx, 0x64
jne 0x140001e0a
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7e9
mov rcx, qword [r13 + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140001e13
cmp ebx, 1
jle 0x140001f02
test r15d, r15d
jne 0x140001f02
xor ecx, ecx
lea r15d, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140005e48]
mov edx, 0x88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140001e86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r8d, ebx
lea rdx, str.Error__d
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
xor r8d, r8d
lea edx, [rdi + 0x10]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_AfxInitNetworkAddressControl]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
test rax, rax
je 0x140001ea4
mov qword [rax], rdi
lea rcx, [0x140001850]
mov qword [rax + 8], rcx
or esi, 2
mov dword [rsp + 0x30], esi
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400025b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140001f3b
cmp dword [rbp - 0x58], 0
je 0x140001f2f
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140001f2f
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
lea r9, [rsp + 0x7c]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001d90
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140001f7b
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, dword [rax]
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror_s]
xor r8d, r8d
lea edx, [r8 + 0x10]
lea rcx, str.Failed_to_open_file._Error:__d__Message:__s_n
call qword [sym.imp.mfc140u.dll_AfxInitNetworkAddressControl]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp dword [rsp + 0x78], 0
jne 0x140001fad
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005ed0]
call qword [sym.imp.mfc140u.dll_AfxInitNetworkAddressControl]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140003230
mov rbx, qword [rsp + 0x538]
movaps xmm6, xmmword [rsp + 0x4d0]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005e20]
call qword [sym.imp.mfc140u.dll_AfxInitNetworkAddressControl]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x8007000e
call fcn.140003de0
int3