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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r9
mov r12d, r8d
mov r15, rdx
mov qword [rsp + 0x40], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor ebx, ebx
mov ebp, ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], ebx
mov r14d, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
test rax, rax
je 0x1400013be
xor r9d, r9d
movzx r8d, r12w
mov rdx, r15
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x1400013d2
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rdi
lea rdx, [0x140004498]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x1400013e6
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400013fa
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000140e
nop dword [rax]
mov dword [rsp + 0x48], ebx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14000133a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u___u__n
call fcn.140001010
mov ecx, dword [rsp + 0x48]
inc ecx
call fcn.140002398
mov rdi, rax
mov r8d, dword [rsp + 0x48]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000138a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001010
jmp 0x1400013a4
mov r9d, dword [rsp + 0x4c]
add r9, rdi
mov r8, rdi
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400020d0
mov rcx, rdi
call fcn.140002354
cmp dword [rsp + 0x48], 0
ja 0x140001310
mov rbp, qword [rsp + 0x60]
jmp 0x140001427
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.t___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400044d0]
call fcn.140001010
test rsi, rsi
je 0x140001430
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x14000143e
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x14000144c
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
sub rsi, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
test rsi, rsi
je 0x140001495
mov rdx, rax
mov r8, rdi
sub r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rdx], cl
inc ebx
lea rdx, [rdx + 1]
movsxd rax, ebx
cmp rax, rsi
jb 0x140001480
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], rsi
movups xmm0, xmmword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
movups xmmword [rbx], xmm0
test rdi, rdi
je 0x1400014e7
sub rbp, rdi
mov rax, rdi
cmp rbp, 0x1000
jb 0x1400014dc
add rbp, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbp
mov rcx, rdi
call fcn.140002354
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002330
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret