Function at 0x140003330
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push r15
mov eax, 0x18d8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e790
sub rsp, rax
mov qword [rsp + 0x1938], r9
mov r12, rcx
mov rbx, r8
mov rsi, rdx
lea r9, [rsp + 0xd0]
mov r8d, 0x1800
xor edx, edx
lea rdi, [rsp + 0x60]
mov rcx, r9
call sub.msvcrt.dll_memset
mov ecx, 0xd
mov r8d, 0x80000000
xor edx, edx
mov r9, rax
xor eax, eax
rep stosq qword [rdi], rax
lea rax, [rsp + 0x14d0]
mov rcx, r12
mov qword [rsp + 0x68], r9
mov qword [rsp + 0xb8], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x4d0]
mov dword [rsp + 0x60], 0x68
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xcd0]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x10d0]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x8d0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0x200
mov dword [rsp + 0xb0], 0x200
mov dword [rsp + 0x70], 0x200
mov dword [rsp + 0xa0], 0x200
mov dword [rsp + 0x80], 0x200
mov dword [rsp + 0xc0], 0x200
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x54], 4
movzx r8d, word [rsp + 0x84]
mov rcx, rax
mov r15, rax
mov dword [rsp + 0x5c], 0
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea r9, str.HTTP_1.1
mov dword [rsp + 0x30], 0x100
mov r8, qword [rsp + 0xa8]
lea rdx, str.HEAD
mov r13, rax
mov rcx, rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], r10
call r10
mov rbp, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor r9d, r9d
xor r8d, r8d
mov r12, rax
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
call rbp
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, r12
xor edx, edx
call rdi
lea rax, [rsp + 0x5c]
xor r8d, r8d
mov edx, 0x20000005
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov rcx, r12
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, r12
mov r14, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call r14
mov r10, qword [rsp + 0x48]
mov rcx, r13
mov dword [rsp + 0x30], 0x100
mov r8, qword [rsp + 0xa8]
lea r9, str.HTTP_1.1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x1400b81a6]
call r10
xor r8d, r8d
xor r9d, r9d
xor edx, edx
mov r12, rax
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call rbp
lea rbp, [rsp + 0x50]
xor edx, edx
mov rcx, r12
call rdi
mov ecx, dword [rsp + 0x58]
mov edx, 1
mov dword [rsp + 0x48], ecx
call sub.msvcrt.dll_calloc
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov qword [rbx], rax
jmp 0x1400035d8
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rbx]
mov r9, rbp
mov rcx, r12
call rdi
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
call rsi
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400035d0
mov eax, dword [rsp + 0x58]
cmp eax, 1
jbe 0x140003630
mov rsi, qword [rsp + 0x1938]
mov rcx, r12
mov dword [rsi], eax
call r14
mov rcx, r13
call r14
mov rcx, r15
call r14
mov eax, 1
add rsp, 0x18d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx]
call sub.msvcrt.dll_free
mov rcx, r12
mov qword [rbx], 0
call r14
mov rcx, r13
call r14
mov rcx, r15
call r14
xor eax, eax
jmp 0x14000361c