Function at 0x140007c02
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x1400a00ea]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
je 0x140007d73
mov rsi, rax
lea rdx, str.data.tricard.direct
mov rcx, rax
mov r8w, 0x1bb
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x140007de4
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x800000
lea rdx, str.POST
lea r8, str._GetData
mov rcx, rax
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test rax, rax
je 0x140007e01
mov rbx, rax
mov rcx, r14
call sym.strlen
lea rdx, [rax + 0x400]
lea r15, [rsp + 0x40]
mov rcx, r15
call method.std::__1::vector_unsigned_char__std::__1::allocator_unsigned_char___.vector_unsigned_long_long_
mov eax, dword [r15 + 8]
mov r15, qword [r15]
sub eax, r15d
lea r12, [rsp + 0x5c]
mov dword [r12], eax
mov rcx, r14
call sym.strlen
mov rcx, r15
mov rdx, r12
mov r8, r14
mov r9d, eax
call sym.compress
test eax, eax
je 0x140007e8e
mov rcx, qword [0x1400a0b48]
lea rdx, str.Failed_to_compress_data.
mov r8d, 0x18
call method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::__put_character_sequence_abi:ue170005__char__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char_____char_const__unsigned_long_long_
mov r14, rax
mov rax, qword [rax]
mov rdx, qword [rax - 0x18]
add rdx, r14
lea rcx, [rsp + 0x38]
call method.std::__1::ios_base.getloc___const
mov rdx, qword [0x1400a0b50]
lea rcx, [rsp + 0x38]
call method.std::__1::locale.use_facet_std::__1::locale::id__const
mov r8, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [r8 + 0x38]
mov ebp, eax
lea rcx, [rsp + 0x38]
call sym.std::__1::locale::locale__
mov rcx, r14
mov edx, ebp
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.put_char_
mov rcx, r14
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.flush__
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor edi, edi
jmp 0x140007edd
mov rcx, qword [0x1400a0b60]
lea rdx, str.Failed_to_open_WinHTTP_session.
mov r8d, 0x1f
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t____std::__1::__put_character_sequence_abi:ue170005__wchar_t__std::__1.char_traits_wchar_t____std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t_____wchar_t_const__unsigne
mov rsi, rax
mov rax, qword [rax]
mov rdx, qword [rax - 0x18]
add rdx, rsi
lea rdi, [rsp + 0x40]
mov rcx, rdi
call method.std::__1::ios_base.getloc___const
mov rdx, qword [0x1400a0b58]
mov rcx, rdi
call method.std::__1::locale.use_facet_std::__1::locale::id__const
mov r8, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [r8 + 0x58]
mov edi, eax
lea rcx, [rsp + 0x40]
call sym.std::__1::locale::locale__
mov rcx, rsi
mov edx, edi
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t___.put_wchar_t_
mov rcx, rsi
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t___.flush__
jmp 0x140007e8a
lea rcx, str.Failed_to_connect_to_the_server
call sym.PrintWinApiError_char_const_
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dil, 1
jmp 0x140007ef1
mov rcx, qword [0x1400a0b60]
lea rdx, str.Failed_to_open_WinHTTP_request.
mov r8d, 0x1f
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t____std::__1::__put_character_sequence_abi:ue170005__wchar_t__std::__1.char_traits_wchar_t____std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t_____wchar_t_const__unsigne
mov rbx, rax
mov rax, qword [rax]
mov rdx, qword [rax - 0x18]
add rdx, rbx
lea r14, [rsp + 0x40]
mov rcx, r14
call method.std::__1::ios_base.getloc___const
mov rdx, qword [0x1400a0b58]
mov rcx, r14
call method.std::__1::locale.use_facet_std::__1::locale::id__const
mov r8, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [r8 + 0x58]
mov ebp, eax
lea rcx, [rsp + 0x40]
call sym.std::__1::locale::locale__
mov rcx, rbx
mov edx, ebp
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t___.put_wchar_t_
mov rcx, rbx
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t___.flush__
lea rcx, str.httpoepnfail
call sym.PrintWinApiError_char_const_
mov rbx, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call rbx
mov rcx, rdi
call rbx
xor edi, edi
jmp 0x140007ef1
mov r9, qword [rsp + 0x40]
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0
lea rdx, str.Content_Encoding:_gzip_r_nCookie:_malone92616448_0aae_4e68_b5e5_d153fc3f3947_r_n
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140007f02
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dil, 1
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007ef1
mov qword [rsp + 0x48], rcx
call sym..weak._ZdlPv.default.__clang_call_terminate
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [0x1400a0b60]
lea rdx, str.Failed_to_send_request.
mov r8d, 0x17
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t____std::__1::__put_character_sequence_abi:ue170005__wchar_t__std::__1.char_traits_wchar_t____std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t_____wchar_t_const__unsigne
mov r14, rax
mov rax, qword [rax]
mov rdx, qword [rax - 0x18]
add rdx, r14
lea rcx, [rsp + 0x38]
call method.std::__1::ios_base.getloc___const
mov rdx, qword [0x1400a0b58]
lea rcx, [rsp + 0x38]
call method.std::__1::locale.use_facet_std::__1::locale::id__const
mov r8, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [r8 + 0x58]
mov ebp, eax
lea rcx, [rsp + 0x38]
call sym.std::__1::locale::locale__
mov rcx, r14
mov edx, ebp
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t___.put_wchar_t_
mov rcx, r14
call method.std::__1::basic_ostream_wchar_t__std::__1::char_traits_wchar_t___.flush__
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140007d6c