Function at 0x1400bdad0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1400fa040]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rdx
mov rbx, rcx
xor r12d, r12d
cmp qword [rcx + 0x18], 0xf
jbe 0x1400bdb1e
mov rsi, qword [rcx]
add rsi, qword [rcx + 0x10]
mov rbx, qword [rcx]
jmp 0x1400bdb25
mov rsi, qword [rcx + 0x10]
add rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movabs rdx, 0x7fffffffffffffff
mov qword [rbp - 0x10], r12
mov edi, 7
mov qword [rbp - 8], rdi
cmp rbx, rsi
jne 0x1400bdb52
mov word [rbp - 0x20], r12w
jmp 0x1400bdc3d
sub rsi, rbx
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
ja 0x1400bdffe
cmp rsi, rdi
jbe 0x1400bdc01
mov rdi, rsi
or rdi, 7
cmp rdi, rax
jbe 0x1400bdbc0
mov rdi, rax
lea rcx, [rdx + rdx]
cmp rcx, 0x1000
jb 0x1400bdbf2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400be004
mov rcx, rax
call fcn.1400c50b0
mov rcx, rax
test rax, rax
je 0x1400bdbeb
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rbp - 0x20], rax
mov qword [rbp - 8], rdi
jmp 0x1400bdc05
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, rdx
ja 0x1400be004
add rcx, rcx
jne 0x1400bdb84
mov rax, r12
mov qword [rbp - 0x20], rax
mov qword [rbp - 8], rdi
jmp 0x1400bdc05
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c50b0
mov qword [rbp - 0x20], rax
mov qword [rbp - 8], rdi
jmp 0x1400bdc05
mov rax, qword [rbp - 0x20]
lea r8, [rbp - 0x20]
cmp rdi, 7
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x1400bdc34
nop dword [rax]
movsx eax, byte [rbx]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rbx, [rbx + 1]
sub rdx, 1
jne 0x1400bdc20
mov qword [rbp - 0x10], rsi
mov word [r8 + rsi*2], r12w
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x70], 0x68
mov ecx, 0x200
call fcn.1400c54e8
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x100
mov ecx, 0x200
call fcn.1400c54e8
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x100
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rcx, qword [rbp - 0x20]
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x1400bdcdb
lea rdx, str.Failed_to_parse_URL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ac40
lea rdx, [0x14000ae20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400bdfbc
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_Web_Client_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
jne 0x1400bdd06
lea rdx, str.Failed_to_open_session
jmp 0x1400bdcba
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, qword [rbp - 0x78]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x1400bdd55
lea rdx, str.Failed_to_connect
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ac40
lea rdx, [0x14000ae20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400bdfbc
mov r13, qword [r15 + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 0xd
jb 0x1400bdff2
cmp qword [r15 + 0x18], 0xf
jbe 0x1400bdd7d
mov r15, qword [r15]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea r12, [r13 + 0xd]
mov ebx, 0xf
lea rdi, [rsp + 0x40]
cmp r12, rbx
jbe 0x1400bde1f
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400bddda
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400c50b0
test rax, rax
je 0x1400bde0b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400bde1a
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x1400bddf3
xor edi, edi
jmp 0x1400bde1a
cmp rcx, 0x1000
jb 0x1400bde12
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400bdff8
jmp 0x1400bddbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c50b0
mov rdi, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rbx
movsd xmm0, qword [str._content_:__]
movsd qword [rdi], xmm0
mov ecx, dword [0x1400e3e78]
mov dword [rdi + 8], ecx
movzx eax, byte [0x1400e3e7c]
mov byte [rdi + 0xc], al
lea rcx, [rdi + 0xd]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r12], 0
mov r8d, 2
lea rdx, [0x1400e3e44]
lea rcx, [rsp + 0x40]
call fcn.1400032b0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xor edi, edi
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
lea rcx, [rsp + 0x40]
call fcn.140002dc0
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rbp - 0x48]
lea rdx, str.POST
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
jne 0x1400bdf01
lea rdx, str.Failed_to_open_request
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ac40
lea rdx, [0x14000ae20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400bdf9f
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1400bdf2a
lea rdx, str.Failed_to_set_headers
jmp 0x1400bdf7a
lea r9, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r9, qword [rbp]
mov qword [rsp + 0x30], rdi
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400bdf64
lea rdx, str.Failed_to_send_request
jmp 0x1400bdf7a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400bdf96
lea rdx, str.Failed_to_receive_response
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ac40
lea rdx, [0x14000ae20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp]
call fcn.140002dc0
nop
lea rcx, [rbp - 0x20]
call fcn.14000a870
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400c5090
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400018d0
nop
call fcn.140001830
nop
call fcn.1400018d0
int3
call fcn.140001830
int3