Function at 0x140052960
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x520
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1400aa0c0]
xor rax, rsp
mov qword [rbp + 0x400], rax
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, 0x2e
lea rdx, str.https:__steamtools.net_res_SteamtoolsSetup.exe
lea rcx, [rbp - 0x20]
call fcn.140037960
nop
lea rcx, [rbp - 0x80]
call fcn.14003b930
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400398f0
nop
mov r8d, 0x14
lea rdx, str.SteamtoolsSetup.exe
mov rcx, rax
call fcn.1400378e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], r15b
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140052a5a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052a55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052a55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
movdqa xmm0, xmmword [0x140097ec0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140052ab0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052aab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052aab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
movdqa xmm0, xmmword [0x140097eb0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r15w
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Steamtools_Downloader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x140052c55
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x140052b2b
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140052c55
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x140052b7f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140052c55
mov esi, r15d
mov dword [rbp - 0x5c], r15d
mov dword [rbp - 0x50], 4
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x5c]
mov edx, 0x20000005
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
lea r9, [rbp - 0x60]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140052c31
movss xmm6, dword [0x140097d0c]
nop dword [rax + rax]
mov r8d, dword [rbp - 0x60]
test r8d, r8d
je 0x140052c31
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [rbp - 0x60]
mov eax, esi
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
mov eax, dword [rbp - 0x5c]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm1, xmm0
mulss xmm1, xmm6
movss dword [0x1400dd050], xmm1
lea r9, [rbp - 0x60]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140052bd0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rbp - 0x40]
call fcn.1400503a0
mov byte [0x1400dd2b8], 0
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rax, qword [rbp - 0x40]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x48], rax
call fcn.140085eb0
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140039450
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
call fcn.140086aec
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140052dbd
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140052d00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052cfa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052cfa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140052d3e
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052d39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052d39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140052d8c
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052d87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052d87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140084a20
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
shr rdx, 0x20
lea r8, [rsp + 0x40]
lea rcx, str.remove
call fcn.14003a7e0
int3