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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140055910]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov r13, qword [rbp + 0xb0]
mov qword [rbp - 0x80], r13
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x48], rax
mov rbx, qword [r9 + 0x10]
mov r8, r9
cmp qword [r9 + 0x18], 8
jb 0x140025883
mov r8, qword [r9]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
movsxd rcx, eax
call fcn.140030494
mov rsi, rax
mov r8, r14
cmp qword [r14 + 0x18], 8
jb 0x1400258c8
mov r8, qword [r14]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], al
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], al
jne 0x14002590a
lea rcx, [rbp - 0x78]
cmp rbx, 0xf
ja 0x140025932
mov qword [rbp - 0x68], rbx
mov r8, rbx
mov rdx, rsi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov byte [rbp + rbx - 0x78], 0
jmp 0x14002593e
mov r9, rsi
mov rdx, rbx
call fcn.14000e60c
nop
mov rcx, rsi
call fcn.14002fd38
mov esi, dword [rbp - 0x68]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], 0xaa0
mov r8, r14
cmp qword [r14 + 0x18], 8
jb 0x140025962
mov r8, qword [r14]
lea rdx, str.Request_Body:__s
xor ecx, ecx
call fcn.14000b12c
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x14002597e
mov rcx, qword [rcx]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov qword [rbx], rax
test rax, rax
jne 0x1400259d6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov ebx, 0x80004005
test edx, edx
cmovs ebx, edx
lea rdx, str.Error_sending_http_request_WinHttpOpen_hr__0x_08X
jmp 0x140025c95
mov r8d, dword [rsp + 0x44]
lea rdx, str.Session_set_with_protocal:__d
xor ecx, ecx
call fcn.14000b12c
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x50]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
nop dword [rax + rax]
test eax, eax
jne 0x140025a23
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Failed_to_set_WINHTTP_OPTION_SECURE_PROTOCOLS_in_WinHttpSetOption_hr__0x_08X
jmp 0x140025c7d
mov r9d, dword [rdi + 0x7c]
mov r8d, dword [rdi + 0x78]
lea rdx, str.Session_opened_with_connection_timeout:__ld_and_send_timeout:__ld
xor ecx, ecx
call fcn.14000b12c
mov eax, dword [rdi + 0x80]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x7c]
mov r8d, dword [rdi + 0x78]
mov edx, dword [rdi + 0x84]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
nop dword [rax + rax]
test eax, eax
jne 0x140025a7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Error_sending_http_request_WinHttpSetTimeouts_hr__0x_08X
jmp 0x140025c7d
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x140025a89
mov rdx, qword [r15]
xor r9d, r9d
movzx r8d, word [rdi + 0x28]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
mov qword [rbx], rax
test rax, rax
jne 0x140025ac5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Error_sending_http_request_WinHttpConnect_hr__0x_08X
jmp 0x140025c7d
mov r8, r15
cmp qword [r15 + 0x18], 8
jb 0x140025ad2
mov r8, qword [r15]
movzx r9d, word [rdi + 0x28]
lea rdx, str.Session_connected_to__s_port__d
xor ecx, ecx
call fcn.14000b12c
mov r8, r12
cmp qword [r12 + 0x18], 8
jb 0x140025af4
mov r8, qword [r12]
mov rdx, r13
cmp qword [r13 + 0x18], 8
jb 0x140025b02
mov rdx, qword [r13]
mov dword [rsp + 0x30], 0x800000
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
test rax, rax
jne 0x140025b4d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Error_sending_http_request_WinHttpOpenRequest_hr__0x_08X
jmp 0x140025c7d
mov rdi, qword [rdi + 0x38]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140025c2b
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000ba84
nop
lea rdx, [rbx + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14000ba84
nop
lea r8, [0x140042f34]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14001627c
nop
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.140012224
xor esi, esi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rbp + 0x10]
call fcn.14000b9a0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
nop dword [rax + rax]
test eax, eax
je 0x140025ca1
lea rcx, [rbp - 0x58]
call fcn.14000b9a0
nop
lea rcx, [rbp - 0x10]
call fcn.14000b9a0
lea rcx, [rbp - 0x30]
call fcn.14000b9a0
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140025b5d
mov esi, dword [rsp + 0x40]
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae r9, qword [rbp - 0x78]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
or r8d, 0xffffffff
xor edx, edx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop dword [rax + rax]
test eax, eax
jne 0x140025cf4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.Error_sending_http_request_WinHttpSendRequest_hr__0x_08X
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
mov r8d, ebx
mov ecx, ebx
call fcn.14000b12c
jmp 0x140025cf6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
mov r8d, ebx
lea rdx, str.Error_sending_http_request_WinHttpAddRequestHeaders_hr__0x_08X
mov ecx, ebx
call fcn.14000b12c
lea rcx, [rbp - 0x58]
call fcn.14000b9a0
nop
lea rcx, [rbp - 0x10]
call fcn.14000b9a0
lea rcx, [rbp - 0x30]
call fcn.14000b9a0
jmp 0x140025cf6
mov ebx, edi
lea rcx, [rbp - 0x78]
call fcn.14000bbb0
nop
mov rcx, r15
call fcn.14000b9a0
nop
mov rcx, r12
call fcn.14000b9a0
nop
mov rcx, r14
call fcn.14000b9a0
nop
mov rcx, r13
call fcn.14000b9a0
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14002fd10
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret