Function at 0x140094810
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 [0x14029a130]
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 [0x140101970]
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.140092bc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.1400c78d0
xor edx, edx
mov r8d, 0xa28
lea rcx, [rbp + 0x220]
call fcn.1400c78d0
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 0x140094922
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 0x140094a09
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140094946
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.14008aa20
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 0x140094a09
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 0x140094a09
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, [0x140101950]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x140094a09
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 0x140094a09
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], 0x80
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 0x140094aff
nop
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140094a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140094570
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.1400c4e34
mov rbx, rax
test rax, rax
je 0x140094c64
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400c78d0
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 0x140094ac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140094570
jmp 0x140094aec
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.1400c4ba0
cmp dword [rsp + 0x40], 0
ja 0x140094a40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13b, r13b
jne 0x140094b21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140094570
xor ebx, ebx
test rdi, rdi
je 0x140094b31
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x140094b3f
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x140094b4e
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140094b8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140094b89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140094c90
call fcn.1400c4ba0
movdqa xmm0, xmmword [0x140101970]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], bx
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140094bdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140094bda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140094c84
call fcn.1400c4ba0
movdqa xmm0, xmmword [0x140101970]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140094c2b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140094c26
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140094c8a
mov rcx, r8
call fcn.1400c4ba0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.1400c4b80
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.140094570
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140094b23
call fcn.1400cbc18
nop
call fcn.1400cbc18
nop
call fcn.1400cbc18
int3