Function at 0x14005e7e0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17e0]
mov eax, 0x18e0
call fcn.14005fdc0
sub rsp, rax
mov rax, qword [0x140088620]
xor rax, rsp
mov qword [rbp + 0x17d0], rax
mov r12, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x1800
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea r9, [rsp + 0x50]
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
lea rax, [rbp + 0x13d0]
xor edx, edx
mov qword [rbp - 0x58], rax
mov r8d, 0x80000000
movups xmmword [rsp + 0x60], xmm0
lea rax, [rbp + 0x3d0]
mov rcx, rbx
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0xbd0]
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x30]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xfd0]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x7d0]
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], WSAGetLastError
mov dword [rbp - 0x80], 0x200
mov dword [rbp - 0x60], 0x200
mov dword [rsp + 0x60], 0x200
mov dword [rbp - 0x70], 0x200
mov dword [rsp + 0x70], 0x200
mov dword [rbp - 0x50], 0x200
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
xor r13d, r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
xor ecx, ecx
lea edx, [r13 + 1]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
movzx r8d, word [rsp + 0x74]
xor r9d, r9d
mov rdx, qword [rsp + 0x68]
mov rcx, rax
mov r15, rax
mov dword [rbp - 0x3c], 4
mov dword [rbp - 0x40], r13d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r8, qword [rbp - 0x68]
lea r9, str.HTTP_1.1
mov dword [rsp + 0x30], 0x100
lea rdx, str.HEAD
mov rcx, rax
mov qword [rsp + 0x28], r13
mov r14, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
xor edx, edx
mov rbx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x20], rax
mov edx, 0x20000005
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r8, qword [rbp - 0x68]
lea r9, str.HTTP_1.1
mov dword [rsp + 0x30], 0x100
lea rdx, [0x140073440]
mov qword [rsp + 0x28], r13
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
xor edx, edx
mov rsi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ecx, dword [rsp + 0x40]
call fcn.14005f83c
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x40]
lea r9, [rbp - 0x38]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [rsp + 0x40]
lea r9, [rbp - 0x38]
mov rcx, rax
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
lea edx, [r13 + 1]
mov rcx, rdi
mov dword [0x14008fa00], eax
call fcn.14005f834
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x17d0]
xor rcx, rsp
call fcn.140060150
mov rbx, qword [rsp + 0x1930]
add rsp, 0x18e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret