Function at 0x140031200
Capabilities:
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 + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r9
mov rbp, r8
mov rdi, rdx
mov qword [rsp + 0x40], rbx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.FileDownloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
je 0x14003146a
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
jne 0x1400312ad
mov r8d, 0x22
lea rdx, str.Close_the_launcher_then_open_again
lea rcx, [0x1400482c0]
call fcn.14002eba0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14003146a
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
mov rcx, rsi
cmp rax, 0xffffffffffffffff
jne 0x1400312f6
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14003146a
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x4c]
mov edx, 0x20000013
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140031341
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14003146a
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x50], r15d
mov edi, r15d
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400313f7
nop
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x1400313f7
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140031321
mov eax, dword [rsp + 0x48]
cmp eax, dword [rsp + 0x50]
jne 0x140031321
add edi, eax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400313d6
mov eax, edi
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
mov eax, dword [rsp + 0x4c]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm1, xmm0
movss dword [rsp + 0x58], xmm1
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x10]
lea r9, [rsp + 0x48]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140031370
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [rsp + 0x4c]
add eax, 0xffffff38
lea rcx, [0x1400482c0]
cmp eax, 0x63
ja 0x140031457
mov r8d, 0x12
lea rdx, str.Download_Completed
call fcn.14002eba0
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140031453
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r15
mov al, 1
jmp 0x140031485
mov r8d, 0x18
lea rdx, str.Pending:_not_working_now
call fcn.14002eba0
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140031483
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r15
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140036030
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret