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

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
mov dword [rbp + 0x100], r8d
mov qword [rbp + 0x108], r9
mov rax, qword [rbp + 0x110]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0xac], eax
lea rax, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0x9c], 0xffffffff
lea rax, [rbp + 0x1e]
mov qword [rbp + 0x80], rax
nop
nop
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::end()
mov rbx, rax
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()
mov rdx, rax
lea rcx, [rbp + 0x1e]
lea rax, [rbp - 0x10]
mov r9, rcx
mov r8, rbx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string___gnu_cxx::__normal_iterator_char__std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_______void____gnu_cxx::__normal_i
nop
lea rax, [rbp + 0x1f]
mov qword [rbp + 0x78], rax
nop
nop
mov rax, qword [rbp + 0x108]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::end()
mov rbx, rax
mov rax, qword [rbp + 0x108]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()
mov rdx, rax
lea rcx, [rbp + 0x1f]
lea rax, [rbp - 0x30]
mov r9, rcx
mov r8, rbx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string___gnu_cxx::__normal_iterator_char__std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_______void____gnu_cxx::__normal_i
nop
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x38], 0
mov dword [rbp + 0xcc], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xb8], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.test
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x140002b3a
mov eax, dword [rbp + 0x100]
movzx ebx, ax
lea rax, [rbp - 0x10]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::c_str() const
mov rdx, rax
mov rax, qword [rbp + 0x90]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0
je 0x140002b97
lea rax, [rbp - 0x30]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::c_str() const
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, str.POST
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
je 0x140002bec
mov r9, qword [rbp + 0xb0]
mov r8d, dword [rbp + 0x9c]
mov rdx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x30], 0
mov ecx, dword [rbp + 0xac]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbp + 0xac]
mov dword [rsp + 0x20], ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp + 0xcc], eax
cmp dword [rbp + 0xcc], 0
je 0x140002c13
mov rax, qword [rbp + 0xb8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp + 0xcc], eax
cmp dword [rbp + 0xcc], 0
je 0x140002d4e
mov dword [rbp - 0x34], 0
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0xb8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
test eax, eax
mov eax, dword [rbp - 0x34]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140002c6d
mov dword [rbp - 0x34], 0
jmp 0x140002d43
mov eax, dword [rbp - 0x34]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x88]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov ecx, dword [rbp - 0x34]
lea r8, [rbp - 0x38]
mov rdx, qword [rbp + 0x88]
mov rax, qword [rbp + 0xb8]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
test eax, eax
sete al
test al, al
jne 0x140002d43
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x70], rax
nop
nop
lea rcx, [rbp + 0x6f]
mov rdx, qword [rbp + 0x88]
lea rax, [rbp + 0x40]
mov r8, rcx
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<std::allocator<char> >(char const*, std::allocator<char> const&)
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0xf0]
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std::allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rdx, [rbp + 0x20]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)
lea rax, [rbp + 0x20]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
lea rax, [rbp + 0x40]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
nop
cmp qword [rbp + 0x88], 0
je 0x140002d43
mov rax, qword [rbp + 0x88]
mov rcx, rax
call sym.operator_delete___void_
mov eax, dword [rbp - 0x34]
test eax, eax
jne 0x140002c20
cmp qword [rbp + 0xb8], 0
je 0x140002d6b
mov rax, qword [rbp + 0xb8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp + 0xc0], 0
je 0x140002d88
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp + 0x90], 0
je 0x140002da5
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
nop
lea rax, [rbp - 0x30]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()
lea rax, [rbp - 0x10]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()
jmp 0x140002e14
mov rax, qword [rbp + 0xf0]
add rsp, 0x158
pop rbx
pop rbp
ret