Function at 0x140003620
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:
jmp 0x140137a10
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 [0x1401dc6c0]
xor rax, rsp
mov qword [rsp + 0x508], rax
lea rcx, [0x1401f6788]
call fcn.140003d2d
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 0x140137ab2
mov byte [rsp + 0x500], 0
mov rcx, qword [rsp + 0x538]
call fcn.140003710
movzx eax, byte [rsp + 0x500]
jmp 0x140137e16
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 0x140137b2a
lea rdx, str.Close_the_launcher_then_open_again
lea rcx, [0x1401e54b0]
call fcn.1400011b3
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.140003710
movzx eax, byte [rsp + 0x501]
jmp 0x140137e16
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 0x140137ba2
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.140003710
movzx eax, byte [rsp + 0x502]
jmp 0x140137e16
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 0x140137c23
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.140003710
movzx eax, byte [rsp + 0x503]
jmp 0x140137e16
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 0x140137d6a
cmp dword [rsp + 0xa4], 0
jbe 0x140137d6a
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 0x140137cbb
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0xa4], eax
je 0x140137cff
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.140003710
movzx eax, byte [rsp + 0x504]
jmp 0x140137e16
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.14000245a
movzx eax, al
test eax, eax
je 0x140137d65
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.14000304e
nop
jmp 0x140137c44
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 0x140137dd5
cmp dword [rsp + 0x64], 0x12c
jae 0x140137dd5
lea rdx, str.Download_Completed
lea rcx, [0x1401e54b0]
call fcn.1400011b3
nop
mov byte [rsp + 0x505], 1
mov rcx, qword [rsp + 0x538]
call fcn.140003710
movzx eax, byte [rsp + 0x505]
jmp 0x140137e16
lea rdx, str.Pending:_not_working_now
lea rcx, [0x1401e54b0]
call fcn.1400011b3
nop
mov byte [rsp + 0x506], 0
mov rcx, qword [rsp + 0x538]
call fcn.140003710
movzx eax, byte [rsp + 0x506]
jmp 0x140137e16
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401c32a0]
call fcn.140003535
mov rax, rdi
mov rcx, qword [rsp + 0x508]
xor rcx, rsp
call fcn.140002595
add rsp, 0x510
pop rdi
ret