Function at 0x14000ffb0
Capabilities:
Check http status code
Read http header
Receive http response
Set http header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rcx
xor ebx, ebx
call fcn.140010ef0
mov r15, rax
test rax, rax
je 0x1400100ae
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r14, 0xffffffffffffffff
mov r9d, r14d
lea r8, str.146.59.33.83
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.140022af0
mov rdi, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, str.146.59.33.83
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r8d, 0x9089
xor r9d, r9d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov rcx, rdi
call fcn.140022abc
test r13, r13
je 0x1400100a5
lea r8, str.OPTIONS
lea rdx, str._api_v1_auth_test_connection
mov rcx, r13
call fcn.140011160
mov r12, rax
test rax, rax
jne 0x1400100b5
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1400108a3
cmp qword [rsi + 0x18], 0xf
jbe 0x1400100c8
mov rdi, qword [rsi]
add rdi, qword [rsi + 0x10]
mov rsi, qword [rsi]
jmp 0x1400100cf
mov rdi, qword [rsi + 0x10]
add rdi, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x50], r9
cmp rsi, rdi
jne 0x1400100fc
mov r8d, r9d
mov ecx, 7
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x40], r9w
jmp 0x140010228
sub rdi, rsi
mov ebx, 7
mov qword [rsp + 0x58], rbx
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
ja 0x1400108dc
cmp rdi, rbx
jbe 0x1400101d7
mov rbx, rdi
or rbx, 7
cmp rbx, rax
jbe 0x140010144
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140010173
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400108e8
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400101af
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400108e8
mov rcx, rax
call fcn.140022a80
mov rcx, rax
test rax, rax
je 0x1400108e2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
jmp 0x1400101dc
test rcx, rcx
je 0x1400101c8
call fcn.140022a80
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
jmp 0x1400101dc
mov rax, r9
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
jmp 0x1400101dc
mov rax, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
cmp rbx, 7
cmova r8, rax
mov rcx, r8
mov rdx, rdi
test rdi, rdi
je 0x140010214
nop dword [rax]
nop dword [rax + rax]
movsx eax, byte [rsi]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rsi, [rsi + 1]
sub rdx, 1
jne 0x140010200
mov qword [rsp + 0x50], rdi
mov word [r8 + rdi*2], r9w
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov rax, rcx
sub rax, r8
mov r14d, 0x16
cmp rax, r14
jb 0x1400102d9
lea rax, [r8 + 0x16]
mov qword [rsp + 0x50], rax
lea rsi, [rsp + 0x40]
cmp rcx, 7
cmova rsi, qword [rsp + 0x40]
lea rax, [0x14005b7f4]
lea rcx, str.Authorization:_Bearer
cmp rax, rsi
jbe 0x140010286
lea rax, [rsi + r8*2]
cmp rcx, rax
ja 0x140010286
cmp rsi, rcx
ja 0x14001027b
mov rdi, r9
jmp 0x140010289
mov rdi, rsi
sub rdi, rcx
sar rdi, 1
jmp 0x140010289
mov rdi, r14
lea rcx, [rsi + 0x2c]
lea r8, [r8*2 + 2]
mov rdx, rsi
call fcn.14004a380
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, str.Authorization:_Bearer
mov rcx, rsi
call fcn.14004a380
lea rcx, [rsi + rbx]
sub r14, rdi
lea r8, [r14 + r14]
lea rdx, str.Authorization:_Bearer
lea rdx, [rdx + 0x2c]
lea rdx, [rdx + rdi*2]
call fcn.14004a380
lea rax, [rsp + 0x40]
jmp 0x1400102eb
mov qword [rsp + 0x28], r14
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1400124b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xor edi, edi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14001035c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010357
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108ee
call fcn.140022abc
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14001058c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp - 0x23]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400103d0
lea r8, [rbp - 0x23]
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.140002d60
nop
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
sub rax, r8
mov r14d, 0x1c
lea rsi, str.WinHttpSendRequest_failed_:
cmp rax, r14
jb 0x1400104a0
lea rax, [r8 + 0x1c]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x80]
lea rax, [0x14005b814]
cmp rax, rbx
jbe 0x140010462
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140010462
cmp rbx, rsi
jbe 0x140010465
mov rdi, rbx
sub rdi, rsi
jmp 0x140010465
mov rdi, r14
lea rcx, [rbx + 0x1c]
inc r8
mov rdx, rbx
call fcn.14004a380
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14004a380
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 0x1c]
add rdx, rdi
mov r8, r14
call fcn.14004a380
lea rax, [rbp - 0x80]
xor edi, edi
jmp 0x1400104b6
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.14000fe00
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 2
lea rdx, [rsp + 0x60]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140010536
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010531
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108f4
call fcn.140022abc
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140010764
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001075f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108d6
jmp 0x14001075f
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140010787
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp - 0x23]
nop dword [rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400105b0
lea r8, [rbp - 0x23]
mov rdx, r9
lea rcx, [rbp - 0x60]
call fcn.140002d60
nop
mov r8, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
sub rax, r8
mov r14d, 0x1f
lea rsi, str.WinHttpReceiveResponse_failed:
cmp rax, r14
jb 0x140010680
lea rax, [r8 + 0x1f]
mov qword [rbp - 0x50], rax
lea rbx, [rbp - 0x60]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x60]
lea rax, [0x14005b837]
cmp rax, rbx
jbe 0x140010642
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140010642
cmp rbx, rsi
jbe 0x140010645
mov rdi, rbx
sub rdi, rsi
jmp 0x140010645
mov rdi, r14
lea rcx, [rbx + 0x1f]
inc r8
mov rdx, rbx
call fcn.14004a380
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14004a380
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 0x1f]
add rdx, rdi
mov r8, r14
call fcn.14004a380
lea rax, [rbp - 0x60]
xor edi, edi
jmp 0x140010696
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.14000fe00
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 2
lea rdx, [rsp + 0x60]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140010716
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108fa
call fcn.140022abc
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140010764
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001075f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010900
call fcn.140022abc
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor dil, dil
jmp 0x140010863
mov dword [rbp - 0x40], 4
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3c]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
mov edx, dword [rbp - 0x40]
shr rdx, 1
lea rcx, [rbp - 0x38]
call fcn.140012360
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rbp - 0x38]
mov r9, rbx
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, rbx
call fcn.14002d710
mov dword [rbp - 0x3c], eax
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rbp - 0x3c], 0xc8
sete dil
test rbx, rbx
je 0x140010863
mov rax, qword [rbp - 0x28]
sub rax, rbx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001085a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010906
mov rcx, rbx
call fcn.140022abc
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x14001089f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001089a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108d0
call fcn.140022abc
movzx eax, dil
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14002994c
nop
call fcn.14002994c
nop
call fcn.1400016c0
int3
call fcn.14002994c
int3
call fcn.140001620
nop
call fcn.14002994c
nop
call fcn.14002994c
nop
call fcn.14002994c
nop
call fcn.14002994c
int3
call fcn.14002994c
int3