Function at 0x1400015b0
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
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r9
mov rbx, rdx
mov qword [rbp - 0x30], rcx
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov esi, eax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x24], eax
mov r15d, eax
mov r12d, eax
mov edi, eax
mov dword [rsp + 0x20], eax
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 0x140001765
mov r8d, 0x50
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x140001779
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r14
lea rdx, [0x1400034f0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x14000178d
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]
mov r15d, eax
test eax, eax
je 0x1400017a1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov r15d, eax
test eax, eax
je 0x1400017b5
nop dword [rax]
nop dword [rax + rax]
mov dword [rbp - 0x28], ebx
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400016e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable___u__n
call fcn.140001160
mov ecx, dword [rbp - 0x28]
inc ecx
call fcn.140001ce4
mov rbx, rax
mov r8d, dword [rbp - 0x28]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x24]
mov r8d, dword [rbp - 0x28]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140001734
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001160
jmp 0x140001748
mov r9d, dword [rbp - 0x24]
mov r8, rbx
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.140001a10
mov rcx, rbx
call fcn.140001ca0
cmp dword [rbp - 0x28], 0
mov ebx, 0
ja 0x1400016c0
mov rsi, qword [rbp - 0x10]
jmp 0x1400017b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpConnect___u__n
call fcn.140001160
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpOpenRequest___u__n
call fcn.140001160
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpSendRequest___u__n
call fcn.140001160
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpReceiveResponse___u__n
call fcn.140001160
mov rbx, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
cmp rbx, r14
jne 0x1400017ce
lea rcx, str.Failed_in_retrieving_the_Data
call fcn.140001160
test r15d, r15d
jne 0x1400017e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001160
test rdi, rdi
je 0x1400017f5
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x140001803
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140001811
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub r14, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14000183d
mov r8, r14
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], r14
jmp 0x140001845
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
movups xmm0, xmmword [rbp - 0x20]
mov rdi, qword [rbp - 0x30]
movups xmmword [rdi], xmm0
test rbx, rbx
je 0x14000188b
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x140001880
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001880
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, rbx
call fcn.140001ca0
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001c80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret