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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140067250]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, dword [rsp + 0xb0]
mov rdi, rcx
lea rcx, [rsp + 0x38]
mov r13d, 1
mov r15d, 0xa
cmp ebx, 0x14
mov r14d, r9d
mov ebp, r8d
mov rsi, rdx
cmova r13d, r15d
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi + 0x280]
movabs rax, 0x20c49ba5e353f7cf
imul rcx, rbx
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x38]
cmp ebp, 3
jne 0x140001dbd
mov edx, ebp
mov rcx, qword [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, r13d
mov rcx, qword [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0xa0], r12
nop dword [rax]
test rsi, rsi
je 0x140001e8f
cmp r14d, 0x216
ja 0x140001e8f
mov dword [rsi + 0x10], SafeArrayGetDim
mov dword [rsi + 0x18], 0x223
mov eax, dword [rdi + 0x20]
lea r15, [rsi + 0x28]
mov dword [rsi + 0x20], r14d
mov dword [rsi + 0x1c], eax
mov byte [r15], bpl
test dword [0x14006a040], 0x2000000
je 0x140001cbb
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006a048]
lea rdx, [0x14004a6e8]
xor r9d, r9d
call fcn.1400022c0
lea eax, [rbp - 3]
test eax, 0xfffffffb
jne 0x140001cd0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov r8d, 0x23f
mov rdx, rsi
mov dword [rsp + 0x20], 0
call fcn.140002900
lea ecx, [rbp - 3]
mov r12d, eax
test ecx, 0xfffffffb
je 0x140001d06
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp ebp, 0xb
jle 0x140001d1b
mov rcx, rdi
call fcn.140001a20
test eax, eax
js 0x140001e56
test r12d, r12d
js 0x140001df3
test dword [0x14006a044], 0x20000
je 0x140001d59
movzx eax, word [rsi + 0x24]
movzx r9d, byte [r15]
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006a048]
lea rdx, [0x14004a6b8]
mov qword [rsp + 0x28], r15
mov word [rsp + 0x20], ax
call fcn.140002230
cmp ebp, 0xc
jne 0x140001d6c
mov eax, dword [rsi + 0x24]
cmp eax, r14d
jae 0x140001d6c
test eax, eax
cmovne r14d, eax
cmp dword [rsi + 0x24], r14d
jne 0x140001e1c
movzx eax, byte [r15]
cmp ebp, eax
jne 0x140001e1c
cmp qword [rsp + 0x30], rbx
jg 0x140001e4f
test dword [0x14006a040], 0x2000000
je 0x140001db5
movzx r9d, byte [rsi + 0x28]
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006a048]
lea rdx, [0x14004a6d8]
call fcn.1400022c0
mov eax, r12d
jmp 0x140001e94
cmp ebp, 7
jne 0x140001dca
mov edx, r15d
jmp 0x140001c38
cmp ebp, r15d
jne 0x140001c45
cmp dword [rdi + 0x24], 1
jne 0x140001de1
mov edx, r15d
jmp 0x140001c48
mov edx, 3
mov rcx, rdi
call fcn.1400017c0
jmp 0x140001c55
test dword [0x14006a040], 0x2000000
je 0x140001e1c
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006a048]
lea rdx, [0x14004a6f8]
mov r9d, 1
call fcn.1400022c0
cmp ebp, 0xa
jne 0x140001e34
cmp dword [rdi + 0x24], 2
jne 0x140001e34
mov edx, r13d
mov rcx, rdi
call fcn.1400017c0
jmp 0x140001e44
mov rcx, qword [rdi + 0x278]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsp + 0x30], rbx
jle 0x140001c60
mov eax, 0x8001011f
jmp 0x140001e94
test dword [0x14006a044], 0x20000
je 0x140001e8f
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006a048]
mov dword [rsp + 0x28], eax
lea rax, str.LI_Failure_during_auth_:_Read
lea rdx, [0x14004a758]
mov r9d, 1
mov qword [rsp + 0x20], rax
call fcn.140002320
mov eax, 0x80004005
mov r12, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002d810
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret