Function at 0x1400f3050
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp + 0x148], rax
mov r12, r9
mov rbx, r8
mov rdi, rcx
lea rax, [0x140135968]
mov qword [rbp - 0x80], rax
xor r13d, r13d
mov qword [rbp - 0x78], r13
mov dword [rsp + 0x30], 0x140
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
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 [rdi + 0x18], rax
test rax, rax
jne 0x1400f3145
mov qword [rbp + 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x68], r13
mov byte [rbp + 0x58], r13b
lea r8d, [r13 + 0x23]
lea rdx, str.Cant_create_request_to_the_server.
lea rcx, [rbp + 0x58]
call fcn.1400082f0
nop
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
cmovae rax, qword [rbp + 0x58]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x70]
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 - 0x70], r11
mov dword [rbp - 0x58], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x54], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x70]
call sub.MSVCR100.dll__CxxThrowException
nop
mov dword [rsp + 0x40], r13d
mov rsi, r13
test rbx, rbx
je 0x1400f3163
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, rax
mov r9d, 0x80000000
mov r8d, SafeArrayDestroy
lea rdx, str.Accept:___r_n
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400f3210
mov qword [rbp + 0xc0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0xb8], r13
mov byte [rbp + 0xa8], r13b
lea r8d, [rax + 0x35]
lea rdx, str.Internet_connection_error:_cant_add_request_headers.
lea rcx, [rbp + 0xa8]
call fcn.1400082f0
nop
lea rax, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae rax, qword [rbp + 0xa8]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
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 - 0x10], r11
mov dword [rbp + 8], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x10]
call sub.MSVCR100.dll__CxxThrowException
nop
mov r9d, 0x10000000
mov r8d, 0x4e
lea rdx, str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400f32bd
mov qword [rbp + 0x110], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x108], r13
mov byte [rbp + 0xf8], r13b
lea r8d, [rax + 0x35]
lea rdx, str.Internet_connection_error:_cant_add_request_headers.
lea rcx, [rbp + 0xf8]
call fcn.1400082f0
nop
lea rax, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0x10
cmovae rax, qword [rbp + 0xf8]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x30]
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 + 0x30], r11
mov dword [rbp + 0x48], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4c], eax
lea rdx, [0x140185380]
lea rcx, [rbp + 0x30]
call sub.MSVCR100.dll__CxxThrowException
nop
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8d, dword [rsp + 0x40]
lea rdx, str.Content_Length:__d_r_n
lea rcx, [rsp + 0x48]
call fcn.14000ee80
mov rbx, qword [rsp + 0x48]
mov r9d, 0x10000000
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400f3398
mov qword [rbp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x90], r13
mov byte [rbp + 0x80], al
lea r8d, [rax + 0x35]
lea rdx, str.Internet_connection_error:_cant_add_request_headers.
lea rcx, [rbp + 0x80]
call fcn.1400082f0
nop
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rax, qword [rbp + 0x80]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
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 - 0x30], r11
mov dword [rbp - 0x18], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x14], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x30]
call sub.MSVCR100.dll__CxxThrowException
nop
mov rax, qword [r12]
mov r8d, dword [rax - 0x10]
mov rdx, r13
test r8d, r8d
cmovne rdx, rax
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, rsi
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400f3457
mov qword [rbp + 0xe8], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0xe0], r13
mov byte [rbp + 0xd0], al
lea r8d, [rax + 0x21]
lea rdx, str.Cant_send_request_to_the_server.
lea rcx, [rbp + 0xd0]
call fcn.1400082f0
nop
lea rax, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rax, qword [rbp + 0xd0]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x10]
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 + 0x10], r11
mov dword [rbp + 0x28], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x2c], eax
lea rdx, [0x140185380]
lea rcx, [rbp + 0x10]
call sub.MSVCR100.dll__CxxThrowException
nop
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400f34f2
mov qword [rbp + 0x138], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x130], r13
mov byte [rbp + 0x120], al
lea r8d, [rax + 0x24]
lea rdx, str.Cant_receive_request_to_the_server.
lea rcx, [rbp + 0x120]
call fcn.1400082f0
nop
lea rax, [rbp + 0x120]
cmp qword [rbp + 0x138], 0x10
cmovae rax, qword [rbp + 0x120]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
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 - 0x50], r11
mov dword [rbp - 0x38], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x34], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x50]
call sub.MSVCR100.dll__CxxThrowException
nop
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rdi]
lea r9, [rsp + 0x44]
mov r8, rsi
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400f3529
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.1400d6f80
add rsp, 0x258
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret