Function at 0x140001580
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov qword [rsp + 0x40], r9
mov r12, r8
mov r15, qword [rbp + 0x80]
mov qword [rsp + 0x50], r15
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov r13, qword [rdx]
mov rbx, qword [r15]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xor r14d, r14d
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
lea rcx, [0x1400229f0]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400016a9
mov r8d, 0x1bb
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
lea r9, [0x140022b80]
mov qword [rsp + 0x20], r9
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400016ae
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x4801000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, r13
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
mov eax, 1
cmovne r14d, eax
mov dword [rsp + 0x70], r14d
jmp 0x1400016b3
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
test r14d, r14d
jne 0x140001701
test rbx, rbx
je 0x1400016c6
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rdi, rdi
je 0x1400016d4
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x1400016e3
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400016fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14000186e
mov r9d, 0x20000000
or r8d, 0xffffffff
lea rdx, str.Connection:_keep_alive_r_nContent_Type:_application_x_www_form_urlencoded_r_n
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1400016b8
xor edx, edx
mov r8d, 0x88
lea rcx, [rbp - 0x80]
call fcn.14000b410
lea rax, [rbp - 0x78]
mov qword [rbp - 0x80], rax
mov r8d, 3
mov rdx, qword [r12]
lea rcx, [rbp - 0x80]
call fcn.140001ff0
nop
mov rax, qword [r12]
mov ecx, dword [rax - 0x10]
mov dword [rsp + 0x20], ecx
mov r9, qword [rbp - 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1400017fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x1400017df
mov dword [rsp + 0x7c], 4
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x78]
mov edx, 0x1f
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [rsp + 0x78], 0x100
mov r9d, 4
lea r8, [rsp + 0x78]
lea edx, [r9 + 0x1b]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rax, qword [r12]
mov ecx, dword [rax - 0x10]
mov dword [rsp + 0x20], ecx
mov r9, qword [rbp - 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1400017fa
lea rax, [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
cmp rcx, rax
je 0x1400016b8
call fcn.14000a0e0
jmp 0x1400016b8
mov rdx, rbx
call fcn.140001d40
test eax, eax
je 0x1400017df
mov r8, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140001bc0
mov r14d, eax
lea rax, [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
cmp rcx, rax
je 0x140001829
call fcn.14000a0e0
nop
test rbx, rbx
je 0x140001837
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rdi, rdi
je 0x140001845
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x140001854
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000186b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140009a40
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret