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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
xor ebx, ebx
mov r14d, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
mov r15d, ebx
mov r12d, ebx
mov ebp, 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 0x140001d79
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x140001d79
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rsi
lea rdx, [0x140004558]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
je 0x140001d79
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 0x140001d79
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov r15d, eax
test eax, eax
je 0x140001d79
nop word [rax + rax]
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140001cfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140001020
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.140002ec4
mov rdi, rax
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140001d4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001020
jmp 0x140001d61
mov r9d, dword [rsp + 0x44]
mov r8, rdi
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.140002bf0
mov rcx, rdi
call fcn.140002e80
cmp dword [rsp + 0x40], 0
ja 0x140001cd0
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
cmp rdi, rsi
jne 0x140001d94
lea rcx, str.Failed_in_retrieving_the_PE
call fcn.140001020
test r15d, r15d
jne 0x140001dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001020
test rbp, rbp
je 0x140001dbb
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x140001dc9
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140001dd7
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub rsi, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rsi, rsi
je 0x140001e15
mov rdx, rax
mov r8, rdi
sub r8, rax
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rdx + r8]
mov byte [rdx], cl
inc ebx
lea rdx, [rdx + 1]
movsxd rax, ebx
cmp rax, rsi
jb 0x140001e00
test rdi, rdi
je 0x140001e50
sub r14, rdi
mov rax, rdi
cmp r14, 0x1000
jb 0x140001e45
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
mov rcx, rdi
call fcn.140002e80
mov rax, rbp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140002e60
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret