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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rbp - 0x15], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], recv
mov byte [rcx], r12b
mov dword [rbp - 0x15], 1
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x14007e006
cmp qword [rbx + 0x18], 0xf
jbe 0x14007dd68
mov r9, qword [rbx]
add r9, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x14007dd6f
mov r9, qword [rbx + 0x10]
add r9, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r12
mov qword [rbp + 7], r12
cmp rbx, r9
jne 0x14007dd93
mov eax, 7
mov qword [rbp + 7], rax
mov word [rbp - 0x11], r12w
jmp 0x14007dda6
sub r9, rbx
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400a3ab0
mov rax, qword [rbp + 7]
lea rdx, [rbp - 0x11]
cmp rax, 7
cmova rdx, qword [rbp - 0x11]
mov r8d, 0x50
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x14007de0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007de06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007de06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
mov qword [rbp - 1], r12
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r12w
test r14, r14
je 0x14007dffd
cmp qword [rdi + 0x18], 0xf
jbe 0x14007de38
mov r9, qword [rdi]
add r9, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x14007de3f
mov r9, qword [rdi + 0x10]
add r9, rdi
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], r12
cmp rdi, r9
jne 0x14007de63
mov eax, 7
mov qword [rbp + 0x27], rax
mov word [rbp + 0xf], r12w
jmp 0x14007de76
sub r9, rdi
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.1400a3ab0
mov rax, qword [rbp + 0x27]
lea r8, [rbp + 0xf]
cmp rax, 7
cmova r8, qword [rbp + 0xf]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, [0x14015cf08]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x14007deeb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007dee6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007dee6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011cbf8
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], r12w
test rdi, rdi
je 0x14007dff4
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
je 0x14007dfeb
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14007dfeb
mov dword [rbp - 0x19], r12d
mov dword [rbp + 0x7f], r12d
lea rdx, [rbp + 0x7f]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14007df8f
lea rdx, str.Error
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14005e700
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._in_WinHttpQueryDataAvailable._n
call fcn.14005e700
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x14007dfeb
lea ecx, [rax + 1]
call fcn.14011cca4
mov rbx, rax
mov r8d, dword [rbp + 0x7f]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x19]
mov r8d, dword [rbp + 0x7f]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14007dfd9
mov r8d, dword [rbp - 0x19]
mov rdx, rbx
mov rcx, rsi
call fcn.1400584c0
mov rcx, rbx
call fcn.14011cbf8
cmp dword [rbp + 0x7f], 0
ja 0x14007df44
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rsi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret