Function at 0x1400126a0
Capabilities:
Check http status code
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x510
lea rdi, [rsp + 0x40]
mov ecx, 0x134
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x520]
mov rax, qword [0x14014d8c0]
xor rax, rsp
mov qword [rsp + 0x508], rax
lea rcx, [0x1401603e6]
call fcn.1400f7320
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.FileDownloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14001273d
mov byte [rsp + 0x500], 0
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x500]
jmp 0x140012aa1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x520]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400127b5
lea rdx, str.Download_Failed:_unable_to_connect_to_the_internet
lea rcx, [0x14014df70]
call fcn.1400057e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov byte [rsp + 0x501], 0
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x501]
jmp 0x140012aa1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x528]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14001282d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov byte [rsp + 0x502], 0
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x502]
jmp 0x140012aa1
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x84], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x84]
lea r8, [rsp + 0x64]
mov edx, 0x20000013
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1400128ae
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov byte [rsp + 0x503], 0
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x503]
jmp 0x140012aa1
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0xd4], 0
lea r9, [rsp + 0xa4]
mov r8d, 0x400
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400129f5
cmp dword [rsp + 0xa4], 0
jbe 0x1400129f5
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc4]
mov r8d, dword [rsp + 0xa4]
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140012946
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0xa4], eax
je 0x14001298a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov byte [rsp + 0x504], 0
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x504]
jmp 0x140012aa1
mov eax, dword [rsp + 0xa4]
mov ecx, dword [rsp + 0xd4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xd4], eax
mov rcx, qword [rsp + 0x530]
call fcn.1400112a0
movzx eax, al
test eax, eax
je 0x1400129f0
mov eax, dword [rsp + 0xd4]
cvtsi2ss xmm0, rax
mov eax, dword [rsp + 0x64]
cvtsi2ss xmm1, rax
divss xmm0, xmm1
movss dword [rsp + 0x4f4], xmm0
movss xmm1, dword [rsp + 0x4f4]
mov rcx, qword [rsp + 0x530]
call fcn.140011a50
nop
jmp 0x1400128cf
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp dword [rsp + 0x64], 0xc8
jb 0x140012a60
cmp dword [rsp + 0x64], 0x12c
jae 0x140012a60
lea rdx, str.Download_Completed
lea rcx, [0x14014df70]
call fcn.1400057e0
nop
mov byte [rsp + 0x505], 1
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x505]
jmp 0x140012aa1
lea rdx, str.Download_Failed:_Unable_to_download
lea rcx, [0x14014df70]
call fcn.1400057e0
nop
mov byte [rsp + 0x506], 0
mov rcx, qword [rsp + 0x530]
call fcn.140010e10
movzx eax, byte [rsp + 0x506]
jmp 0x140012aa1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401033b0]
call fcn.1400f70f0
mov rax, rdi
mov rcx, qword [rsp + 0x508]
xor rcx, rsp
call fcn.1400f7560
add rsp, 0x510
pop rdi
ret