Function at 0x1400231a0
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xf8
mov rax, qword [0x140083100]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov qword [rbp - 0x61], rcx
mov rdi, rdx
mov rbx, rcx
xor r12d, r12d
lea rcx, str.A_WinHTTP_Example_Program_1.0
xor r8d, r8d
mov dword [rsp + 0x20], r12d
xor edx, edx
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
xorps xmm0, xmm0
test rax, rax
jne 0x14002321d
movups xmmword [rbx], xmm0
mov r8d, 0x16
mov qword [rbx + 0x10], r12
lea rdx, str.Failed_to_open_session
mov qword [rbx + 0x18], r12
mov rcx, rbx
call fcn.140009570
jmp 0x140023444
mov edx, dword [rdi + 0x10]
xor eax, eax
cmp qword [rdi + 0x18], 7
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp + 7], rax
movups xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x59], 0x68
movups xmmword [rbp - 9], xmm0
mov dword [rbp - 0x39], 0xffffffff
movups xmmword [rbp - 0x49], xmm0
mov dword [rbp - 9], 0xffffffff
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
jbe 0x14002325d
mov rdi, qword [rdi]
lea r9, [rbp - 0x59]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
xorps xmm0, xmm0
test eax, eax
jne 0x140023299
movups xmmword [rbx], xmm0
mov r8d, 0x13
mov qword [rbx + 0x10], r12
lea rdx, str.Failed_to_parse_URL
mov qword [rbx + 0x18], r12
mov rcx, rbx
call fcn.140009570
jmp 0x140023444
mov r8d, dword [rbp - 0x39]
lea rcx, [rsp + 0x40]
mov rdx, qword [rbp - 0x41]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x79], xmm1
mov qword [rsp + 0xf0], r14
movups xmmword [rsp + 0x40], xmm0
call fcn.140009570
cmp qword [rbp - 0x71], 7
lea rdx, [rsp + 0x40]
movzx r8d, word [rbp - 0x35]
mov rcx, r15
cmova rdx, qword [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdx, qword [rbp - 0x71]
mov r14, rax
cmp rdx, 7
jbe 0x140023325
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023320
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023463
call fcn.1400361dc
movdqa xmm0, xmmword [0x140077360]
mov word [rsp + 0x40], r12w
movdqu xmmword [rbp - 0x79], xmm0
test r14, r14
jne 0x14002334f
mov r8d, 0x11
lea rdx, str.Failed_to_connect
jmp 0x140023426
mov r8, qword [rbp - 0x11]
lea rdx, str.POST
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x14002338f
mov r8d, 0x16
lea rdx, str.Failed_to_open_request
jmp 0x140023426
mov r9d, 0x20000000
lea rdx, str.Content_Type:_application_json_r_n
mov r8d, 0xffffffff
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400233be
mov r8d, 0x15
lea rdx, str.Failed_to_add_headers
jmp 0x140023426
mov eax, dword [rsi + 0x10]
add eax, eax
cmp qword [rsi + 0x18], 7
jbe 0x1400233cd
mov rsi, qword [rsi]
mov qword [rsp + 0x30], r12
mov r9, rsi
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400233fe
mov r8d, 0x16
lea rdx, str.Failed_to_send_request
jmp 0x140023426
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r8d, 0x19
lea rdx, str.Request_sent_successfully
xorps xmm0, xmm0
mov rcx, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
call fcn.140009570
mov r14, qword [rsp + 0xf0]
mov rax, rbx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140036180
add rsp, 0xf8
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14003c334
int3