Function at 0x1400163f0
Capabilities:
Prepare http request
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r9
mov rsi, r8
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rdx]
lea rdx, str.POST
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400164c7
mov qword [rbp + 7], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 1], r13
mov byte [rbp - 0x11], r13b
lea r8d, [r13 + 0x23]
lea rdx, str.Cant_create_request_to_the_server.
lea rcx, [rbp - 0x11]
call fcn.1400082f0
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rax, qword [rbp - 0x11]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rbp - 0x39], r11
mov dword [rbp - 0x21], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x1d], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x39]
call sub.MSVCR100.dll__CxxThrowException
nop
mov eax, r13d
mov dword [rbp - 0x41], eax
mov rdi, r13
test rsi, rsi
je 0x1400164e8
mov rax, qword [rsi]
lea rdx, [rbp - 0x41]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rdi, rax
mov eax, dword [rbp - 0x41]
mov rcx, qword [r12]
mov r8d, dword [rcx - 0x10]
mov rdx, r13
test r8d, r8d
cmovne rdx, rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140016589
mov qword [rbp + 7], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 1], r13
mov byte [rbp - 0x11], r13b
lea r8d, [rax + 0x21]
lea rdx, str.Cant_send_request_to_the_server.
lea rcx, [rbp - 0x11]
call fcn.1400082f0
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rax, qword [rbp - 0x11]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rbp - 0x39], r11
mov dword [rbp - 0x21], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x1d], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x39]
call sub.MSVCR100.dll__CxxThrowException
nop
xor edx, edx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14001660a
mov qword [rbp + 7], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 1], r13
mov byte [rbp - 0x11], r13b
lea r8d, [rax + 0x24]
lea rdx, str.Cant_receive_request_to_the_server.
lea rcx, [rbp - 0x11]
call fcn.1400082f0
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rax, qword [rbp - 0x11]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rbp - 0x39], r11
mov dword [rbp - 0x21], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x1d], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x39]
call sub.MSVCR100.dll__CxxThrowException
nop
mov eax, dword [rbp - 0x41]
mov dword [rbp - 0x49], eax
mov rax, qword [rbx]
lea r9, [rbp - 0x49]
mov r8, rdi
xor edx, edx
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400d6f80
add rsp, 0xb8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret