Function at 0x140012bf0
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 + 0x20], r9
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 [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0x508], rax
lea rcx, [0x1401613e6]
call fcn.1400f7760
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 0x140012c92
mov byte [rsp + 0x500], 0
mov rcx, qword [rsp + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x500]
jmp 0x140012ff6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x528]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140012d0a
lea rdx, str.Close_the_launcher_then_open_again
lea rcx, [0x14014ef70]
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 + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x501]
jmp 0x140012ff6
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 + 0x530]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140012d82
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 + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x502]
jmp 0x140012ff6
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 0x140012e03
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 + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x503]
jmp 0x140012ff6
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 0x140012f4a
cmp dword [rsp + 0xa4], 0
jbe 0x140012f4a
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 0x140012e9b
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0xa4], eax
je 0x140012edf
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 + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x504]
jmp 0x140012ff6
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 + 0x538]
call fcn.140011690
movzx eax, al
test eax, eax
je 0x140012f45
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 + 0x538]
call fcn.140011e10
nop
jmp 0x140012e24
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 0x140012fb5
cmp dword [rsp + 0x64], 0x12c
jae 0x140012fb5
lea rdx, str.Download_Completed
lea rcx, [0x14014ef70]
call fcn.1400057e0
nop
mov byte [rsp + 0x505], 1
mov rcx, qword [rsp + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x505]
jmp 0x140012ff6
lea rdx, str.Pending:_not_working_now
lea rcx, [0x14014ef70]
call fcn.1400057e0
nop
mov byte [rsp + 0x506], 0
mov rcx, qword [rsp + 0x538]
call fcn.140011200
movzx eax, byte [rsp + 0x506]
jmp 0x140012ff6
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401036c0]
call fcn.1400f7530
mov rax, rdi
mov rcx, qword [rsp + 0x508]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0x510
pop rdi
ret