Function at 0x140001420
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0xa0]
mov rsi, rcx
cmp ebx, 0x14
lea rcx, [rsp + 0x88]
mov r13d, 1
mov r15d, 0xa
cmova r13d, r15d
mov r12d, r9d
mov ebp, r8d
mov r14, rdx
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov r8d, ebx
movabs rax, 0x20c49ba5e353f7cf
imul r8, qword [rsi + 0x288]
imul r8
mov rdi, rdx
sar rdi, 7
mov rax, rdi
shr rax, 0x3f
add rdi, rax
add rdi, qword [rsp + 0x88]
cmp ebp, 3
jne 0x140001631
mov edx, ebp
mov rcx, qword [rsi + 0x280]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, r13d
mov rcx, qword [rsi + 0x280]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test r14, r14
je 0x140001752
cmp r12d, 0x216
ja 0x140001752
mov dword [r14 + 0x10], SafeArrayGetDim
lea r15, [r14 + 0x28]
mov dword [r14 + 0x18], 0x223
mov eax, dword [rsi + 0x28]
mov dword [r14 + 0x1c], eax
mov byte [r15], bpl
mov dword [r14 + 0x20], r12d
test dword [0x14006fd40], 0x2000000
je 0x14000151f
mov r8d, dword [rsi + 0x28]
lea rdx, [0x14004e000]
mov rcx, qword [0x14006fd50]
xor r9d, r9d
call fcn.140002740
lea eax, [rbp - 3]
test eax, 0xfffffffa
jne 0x14000153c
cmp ebp, 4
je 0x14000153c
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov rcx, qword [rsi + 0x18]
xor r9d, r9d
mov r8d, 0x23f
mov dword [rsp + 0x20], 0
mov rdx, r14
call fcn.140003270
lea ecx, [rbp - 3]
mov ebx, eax
test ecx, 0xfffffffa
jne 0x14000156b
cmp ebp, 4
jne 0x140001579
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
cmp ebp, 0xb
jle 0x14000158e
mov rcx, rsi
call fcn.140001f00
test eax, eax
js 0x140001719
test ebx, ebx
js 0x140001669
test dword [0x14006fd44], 0x20000
je 0x1400015cc
movzx eax, word [r14 + 0x24]
lea rdx, [0x14004dfd0]
movzx r9d, byte [r15]
mov r8d, dword [rsi + 0x28]
mov rcx, qword [0x14006fd50]
mov qword [rsp + 0x28], r15
mov word [rsp + 0x20], ax
call fcn.1400026b0
cmp ebp, 0xc
jne 0x1400015e0
mov eax, dword [r14 + 0x24]
cmp eax, r12d
jae 0x1400015e0
test eax, eax
cmovne r12d, eax
cmp dword [r14 + 0x24], r12d
jne 0x140001692
movzx eax, byte [r15]
cmp ebp, eax
jne 0x140001692
cmp qword [rsp + 0x80], rdi
jg 0x140001712
test dword [0x14006fd40], 0x2000000
je 0x14000162a
mov r8d, dword [rsi + 0x28]
lea rdx, [0x14004dff0]
mov rcx, qword [0x14006fd50]
mov r9d, eax
call fcn.140002740
mov eax, ebx
jmp 0x140001757
cmp ebp, 7
jne 0x14000163e
mov edx, r15d
jmp 0x1400014a4
cmp ebp, r15d
jne 0x1400014b1
cmp dword [rsi + 0x2c], 1
jne 0x140001657
mov edx, 5
jmp 0x1400014b4
mov edx, 3
mov rcx, rsi
call fcn.140002380
jmp 0x1400014c1
test dword [0x14006fd40], 0x2000000
je 0x140001692
mov r8d, dword [rsi + 0x28]
lea rdx, [0x14004e010]
mov rcx, qword [0x14006fd50]
mov r9d, 1
call fcn.140002740
cmp ebp, 0xa
jne 0x1400016f4
cmp dword [rsi + 0x2c], 2
jne 0x1400016f4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov ecx, r13d
movabs rax, 0x20c49ba5e353f7cf
imul rcx, qword [rsi + 0x288]
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x30]
nop word [rax + rax]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
cmp qword [rsp + 0x38], rbx
jle 0x1400016e0
jmp 0x140001704
mov rcx, qword [rsi + 0x280]
mov edx, r13d
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp qword [rsp + 0x80], rdi
jle 0x1400014c1
mov eax, 0x8001011f
jmp 0x140001757
test dword [0x14006fd44], 0x20000
je 0x140001752
mov r8d, dword [rsi + 0x28]
lea rdx, [0x14004e070]
mov rcx, qword [0x14006fd50]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rax, str.LI_Failure_during_auth_:_Read
mov qword [rsp + 0x20], rax
call fcn.1400027a0
mov eax, 0x80004005
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret