Function at 0x140091190
Capabilities:
Initialize winhttp library
Prepare http request
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 - 0xc60]
sub rsp, 0xd60
mov rax, qword [0x14014d130]
xor rax, rsp
mov qword [rbp + 0xc50], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x40], rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x48], r14d
xor r13b, r13b
mov qword [rbp - 0x18], r14
movdqa xmm0, xmmword [0x1400fd950]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
mov qword [rbp - 0x38], r14
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r14w
mov r12d, r14d
mov r15d, r14d
mov edi, r14d
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x18]
call fcn.14008f540
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.1400c4250
xor edx, edx
mov r8d, 0xa28
lea rcx, [rbp + 0x220]
call fcn.1400c4250
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x50], 0x68
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x104
lea rax, [rbp + 0x220]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x514
mov dword [rsp + 0x60], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400912a2
mov rcx, qword [rsi]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, dword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x140091389
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400912c6
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.1400873a0
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.EndGame
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x140091389
mov r8d, 0x50
xor r9d, r9d
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140091389
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [0x1400fd930]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x140091389
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne r13b
test eax, eax
je 0x140091389
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne r13b
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
test r13b, r13b
je 0x14009147f
nop
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400913ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140090ef0
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.1400c17b4
mov rbx, rax
test rax, rax
je 0x1400915e4
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400c4250
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140091447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140090ef0
jmp 0x14009146c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.1400c1520
cmp dword [rsp + 0x40], 0
ja 0x1400913c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13b, r13b
jne 0x1400914a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140090ef0
xor ebx, ebx
test rdi, rdi
je 0x1400914b1
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x1400914bf
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x1400914ce
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14009150e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140091509
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140091610
call fcn.1400c1520
movdqa xmm0, xmmword [0x1400fd950]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], bx
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14009155f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009155a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140091604
call fcn.1400c1520
movdqa xmm0, xmmword [0x1400fd950]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1400915ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400915a6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14009160a
mov rcx, r8
call fcn.1400c1520
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.1400c1500
mov rbx, qword [rsp + 0xdb0]
add rsp, 0xd60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Out_of_memory_n
call fcn.140090ef0
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400914a3
call fcn.1400c8598
nop
call fcn.1400c8598
nop
call fcn.1400c8598
int3