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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x20], rcx
mov dword [rbp + 0x28], edx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov dword [rbp - 0x48], 0
mov dword [rbp - 0x4c], 0
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.WinHTTP_Example_1.0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x26c011887
mov eax, dword [rbp + 0x28]
movzx ecx, ax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x18]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x26c0118f6
jmp 0x26c0118ab
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.FailedafddddddddddddddddddddfeafafafeafadfafadafdffsdsdfsdfesefttpConnect___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x26c011c80
mov rdx, qword [rbp + 0x30]
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x26c032160]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x26c01195f
jmp 0x26c01191a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.FailedafddddddddddddddddddddfeafafafeafadfafadafdffsdsdfsdfesefpenRequest___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x26c011c80
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x26c0119a7
jmp 0x26c011983
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.FailedafddddddddddddddddddddfeafafafeafadfafadafdffsdsdfsdfesefdRequest___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x26c011c80
mov rax, qword [rbp - 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x26c011bcb
jmp 0x26c0119cb
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failedafddddddddddddddddddddfeafafafeafadfafadafdffsdsdfsdfesef_in_WinHttpReceiveResponse___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x26c011c80
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.26c02bd10
mov dword [rbp - 0x48], 0
lea rdx, [rbp - 0x48]
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
test eax, eax
sete al
test al, al
je 0x26c011a1a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error__u_in_WinHttpQueryDataAvailable._n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x26c011b4a
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x26c011b3f
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.26c026330
mov eax, dword [rbp - 0x48]
mov ecx, eax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x90]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector_unsigned_long_long__std::allocator_char__const_
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov ebx, dword [rbp - 0x48]
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov rdx, rax
lea rcx, [rbp - 0x4c]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
test eax, eax
sete al
test al, al
je 0x26c011ab4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Eailedafddddddddddddddddddddfeafafafeafadfafadafdffsdsdfsdfesefrror__u_in_WinHttpReadData._n
mov rcx, rax
call sym.printf_char_const__::_
mov ebx, 0
jmp 0x26c011b2b
mov eax, dword [rbp - 0x4c]
mov ebx, eax
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.begin__
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x40]
mov rdx, rbx
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char_____.operator_long_long__const
mov rsi, rax
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.begin__
mov rbx, rax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.end__
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_char_const__std::vector_char__std::allocator_char_____.__normal_iterator_char__void____gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char______const_
mov rdx, qword [rbp - 0x38]
lea rax, [rbp - 0x70]
mov r9, rsi
mov r8, rbx
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char______std::vector_char__std::allocator_char___::insert___gnu_cxx::__normal_iterator_char__std::vector_char__std.allocator_char_______void____gnu_cxx::__normal_iterator_char_c
mov ebx, 1
lea rax, [rbp - 0x90]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
cmp ebx, 1
jne 0x26c011b4a
mov eax, dword [rbp - 0x48]
test eax, eax
jne 0x26c0119d7
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.empty___const
xor eax, 1
test al, al
je 0x26c011bbf
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov rdx, rax
mov rax, qword [rbp + 0x38]
mov qword [rax], rdx
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov rbx, rax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov rdx, rax
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
mov r8, rbx
mov rcx, rax
call sym.memcpy
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov edx, eax
mov rax, qword [rbp + 0x40]
mov dword [rax], edx
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
cmp dword [rbp - 0xc], 0
jne 0x26c011bf5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error__d_has_occurred._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
jmp 0x26c011c80
cmp qword [rbp - 0x28], 0
je 0x26c011c0c
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x20], 0
je 0x26c011c23
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x18], 0
je 0x26c011c3a
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov eax, 1
jmp 0x26c011c80
add rsp, 0xd0
pop rbx
pop rsi
pop rbp
ret