Function at 0x140016680
Capabilities:
Send data
Send http request

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 rbx, r8
mov rdi, rcx
mov eax, 0x80000000
mov r8d, 0x1bb
mov ecx, 0x80801000
cmp word [rdi + 0x28], r8w
cmove eax, ecx
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rdx]
lea rdx, str.POST
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140016773
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 - 0x41], rax
lea rdx, [rbp - 0x41]
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 dword [rbp - 0x45], r13d
mov rsi, r13
test rbx, rbx
je 0x14001678f
mov rax, qword [rbx]
lea rdx, [rbp - 0x45]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, rax
mov dword [rbp - 0x49], 0x7530
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 - 2]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 2]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 1]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 4]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 3]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 2]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 1]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rbp - 0x49]
lea edx, [r9 + 0x3b]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r11, qword [r12]
mov r8d, dword [r11 - 0x10]
mov rdx, r13
test r8d, r8d
cmovne rdx, r11
mov eax, dword [rbp - 0x45]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1400168f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbp + 7], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 1], r13
mov byte [rbp - 0x11], r13b
mov r8d, 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 - 0x41], rax
lea rdx, [rbp - 0x41]
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 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