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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4c8]
sub rsp, 0x588
movaps xmmword [rax - 0x58], xmm6
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov esi, reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x18], rsi
mov byte [rcx], r13b
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.CPlusPlusExample_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x140018171
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.keyauth.win
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140018168
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140156478]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x14001815f
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140018156
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140018156
mov dword [rbp + 0x4e0], 8
mov qword [rbp + 0x4e8], r13
lea r9, [rbp + 0x4e0]
lea r8, [rbp + 0x4e8]
lea edx, [rsi + 0x3f]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x140018156
mov rcx, qword [rbp + 0x4e8]
test rcx, rcx
je 0x140018156
mov dword [rbp + 0x4d8], 0x400
lea r9, [rbp + 0x4d8]
lea r8, [rbp + 0x70]
lea edx, [rsi + 0x5c]
call qword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
test eax, eax
je 0x140018149
lea rax, [0x14015c768]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 9
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r13
mov dword [rbp - 8], 4
lea rdx, [0x1400032a0]
lea rcx, [rbp - 0x80]
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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rax + 0x58], Ordinal_50
mov edi, r13d
cmp dword [rbp + 0x4d8], r13d
jbe 0x140017fd4
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x80]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
mov eax, edi
movzx edx, byte [rbp + rax + 0x70]
lea rcx, [rbp - 0x80]
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___int____ptr64]
inc edi
cmp edi, dword [rbp + 0x4d8]
jb 0x140017f90
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm6, xmmword [0x14015e2f0]
movdqu xmmword [rsp + 0x58], xmm6
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], reloc.WS2_32.dll_listen
movups xmmword [rsp + 0x68], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140018028
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140018028
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140018059
test cl, 4
jne 0x14001804f
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001804f
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140018059
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14001806e
lea rcx, [rsp + 0x48]
call fcn.14001e360
movdqu xmm6, xmmword [rsp + 0x58]
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x1400180c4
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400180ae
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400180a9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400180f9
mov rcx, r8
call fcn.140126f20
mov byte [rbx], 0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm6
mov byte [rsp + 0x48], 0
jmp 0x1400180c9
mov rsi, qword [rsp + 0x60]
cmp rsi, 0xf
jbe 0x140018106
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018100
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018100
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140126f20
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14001d120
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x4e8]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x570]
add rsp, 0x588
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret