Function at 0x140067f50
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
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov r14, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.A_WinHTTP_Example
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
jne 0x140067fba
lea rdx, [0x140084520]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
jmp 0x14006852d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rax
mov dword [rbp + 0x60], 0x68
mov word [rbp + 0xe0], r13w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0xe2]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x2e0], r13w
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x2e2]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], 0x100
lea rax, [rbp + 0x2e0]
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xb0], 0x100
lea rcx, [rbx + 0x20]
cmp qword [rcx + 0x18], 7
jbe 0x140068064
mov rcx, qword [rcx]
lea r9, [rbp + 0x60]
xor r8d, r8d
mov edx, dword [rbx + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x140068099
lea rdx, [0x140084568]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14006852d
xor r9d, r9d
movzx r8d, word [rbp + 0x84]
mov rdx, qword [rbp + 0x78]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x1400680c2
lea rdx, [0x1400845a0]
jmp 0x14006807f
mov edx, 0x1bb
mov eax, r13d
mov ecx, 0x800000
cmp word [rbp + 0x84], dx
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp + 0xa8]
lea rdx, [0x1400845e8]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x140068133
lea rdx, [0x1400845f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14006852d
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, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400684f8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400684f8
mov rbx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14006817b
mov rbx, qword [r14]
lea rax, [0x140083940]
mov qword [rsp + 0x50], 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], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
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 [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
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_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x58], rax
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r13
mov rax, qword [0x1400f1800]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r13
mov r8d, 0x22
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14006c5b0
test rax, rax
jne 0x14006824e
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
cmp qword [rbp - 0x28], 0
jne 0x1400682ea
lea rdx, [0x140084640]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.14006bfa0
lea rcx, [rsp + 0x60]
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]
jmp 0x14006852d
mov dword [rbp + 0x530], r13d
mov dword [rbp + 0x538], r13d
nop dword [rax + rax]
lea rdx, [rbp + 0x530]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400683aa
mov eax, dword [rbp + 0x530]
test eax, eax
je 0x1400683aa
lea ecx, [rax + 1]
call fcn.14006efb8
mov rbx, rax
mov r8d, dword [rbp + 0x530]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x538]
mov r8d, dword [rbp + 0x530]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14006838f
mov r8d, dword [rbp + 0x538]
mov rdx, rbx
lea rcx, [rsp + 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, rbx
call fcn.14006eb78
cmp dword [rbp + 0x530], 0
ja 0x140068300
jmp 0x1400683aa
lea rdx, [0x1400845f0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
mov rcx, rbx
call fcn.14006eb78
cmp qword [rbp - 0x28], 0
je 0x14006842e
lea rcx, [rbp - 0x38]
mov rax, qword [rsp + 0x70]
cmp qword [rax], rcx
jne 0x1400683d9
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
mov qword [rax], rcx
mov rax, qword [rbp - 0x70]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x58]
mov dword [rax], edx
lea rcx, [rsp + 0x58]
call fcn.14006c410
lea rbx, [rsp + 0x58]
test al, al
cmove rbx, r13
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, r13
test eax, eax
cmove rdi, rbx
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r13
mov rax, qword [0x1400f1800]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r13
test rdi, rdi
jne 0x140068473
jmp 0x140068454
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r13
mov rax, qword [0x1400f1800]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r13
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, [0x140084690]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x140068494
mov r14, qword [r14]
mov rdx, r14
mov rcx, rax
call fcn.14006d9a0
lea rdx, [0x14008468c]
mov rcx, rax
call fcn.14006c830
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.14006bfa0
lea rcx, [rsp + 0x60]
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]
jmp 0x14006850b
lea rdx, [0x1400846d0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14006c830
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [0x14009215d], 0
mov rbx, qword [rsp + 0x620]
add rsp, 0x5e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret