Function at 0x140001338
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13d, r8d
mov r12, rdx
mov rsi, rcx
mov qword [rbp - 0x28], rcx
xor ecx, ecx
mov dword [rbp - 0x30], ecx
mov r14b, cl
mov dword [rbp - 0x20], ecx
mov dword [rbp - 0x1c], ecx
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi], rcx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
mov dword [rbp - 0x30], 1
mov ebx, ecx
mov edi, ecx
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.req1
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
mov dword [rbp - 0x18], 0x3300
test rax, rax
je 0x140001436
mov ecx, 0x2000
call fcn.140001894
mov rbx, rax
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r9d, r9d
movzx r8d, r13w
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
xor r12d, r12d
test rax, rax
je 0x140001439
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, str._test.woff
lea rdx, [0x140003440]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
jmp 0x140001439
xor r12d, r12d
mov r9d, 4
lea r8, [rbp - 0x18]
lea edx, [r9 + 0x1b]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test rdi, rdi
je 0x140001551
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne r14b
test eax, eax
je 0x140001551
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne r14b
test eax, eax
je 0x140001551
mov dword [rbp - 0x20], r12d
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000153b
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x140001583
lea ecx, [rax + 1]
call fcn.140001894
mov r14, rax
mov r8d, dword [rbp - 0x20]
inc r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea r9, [rbp - 0x1c]
mov r8d, dword [rbp - 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000150f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001008
jmp 0x140001522
mov r9d, dword [rbp - 0x20]
mov r8, r14
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.1400015d0
mov rcx, r14
call fcn.140001850
cmp dword [rbp - 0x1c], r12d
je 0x140001583
cmp dword [rbp - 0x20], r12d
jbe 0x140001583
jmp 0x1400014a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140001008
jmp 0x140001583
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001008
test r14b, r14b
jne 0x14000157e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001008
test rdi, rdi
je 0x14000158c
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rbx, rbx
je 0x14000159a
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x1400015a8
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001830
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret