Function at 0x140003bb0
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 [0x140069250]
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 0x140003dbd
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 0x140003e8f
cmp r14d, 0x216
ja 0x140003e8f
mov dword [rsi + 0x10], 0xb
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 [0x14006c040], 0x2000000
je 0x140003cbb
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006c048]
lea rdx, [0x14004c6e8]
xor r9d, r9d
call fcn.1400042c0
lea eax, [rbp - 3]
test eax, 0xfffffffb
jne 0x140003cd0
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.140004900
lea ecx, [rbp - 3]
mov r12d, eax
test ecx, 0xfffffffb
je 0x140003d06
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp ebp, 0xb
jle 0x140003d1b
mov rcx, rdi
call fcn.140003a20
test eax, eax
js 0x140003e56
test r12d, r12d
js 0x140003df3
test dword [0x14006c044], 0x20000
je 0x140003d59
movzx eax, word [rsi + 0x24]
movzx r9d, byte [r15]
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006c048]
lea rdx, [0x14004c6b8]
mov qword [rsp + 0x28], r15
mov word [rsp + 0x20], ax
call fcn.140004230
cmp ebp, 0xc
jne 0x140003d6c
mov eax, dword [rsi + 0x24]
cmp eax, r14d
jae 0x140003d6c
test eax, eax
cmovne r14d, eax
cmp dword [rsi + 0x24], r14d
jne 0x140003e1c
movzx eax, byte [r15]
cmp ebp, eax
jne 0x140003e1c
cmp qword [rsp + 0x30], rbx
jg 0x140003e4f
test dword [0x14006c040], 0x2000000
je 0x140003db5
movzx r9d, byte [rsi + 0x28]
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006c048]
lea rdx, [0x14004c6d8]
call fcn.1400042c0
mov eax, r12d
jmp 0x140003e94
cmp ebp, 7
jne 0x140003dca
mov edx, r15d
jmp 0x140003c38
cmp ebp, r15d
jne 0x140003c45
cmp dword [rdi + 0x24], 1
jne 0x140003de1
mov edx, r15d
jmp 0x140003c48
mov edx, 3
mov rcx, rdi
call fcn.1400037c0
jmp 0x140003c55
test dword [0x14006c040], 0x2000000
je 0x140003e1c
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006c048]
lea rdx, [0x14004c6f8]
mov r9d, 1
call fcn.1400042c0
cmp ebp, 0xa
jne 0x140003e34
cmp dword [rdi + 0x24], 2
jne 0x140003e34
mov edx, r13d
mov rcx, rdi
call fcn.1400037c0
jmp 0x140003e44
mov rcx, qword [rdi + 0x278]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsp + 0x30], rbx
jle 0x140003c60
mov eax, 0x8001011f
jmp 0x140003e94
test dword [0x14006c044], 0x20000
je 0x140003e8f
mov r8d, dword [rdi + 0x20]
mov rcx, qword [0x14006c048]
mov dword [rsp + 0x28], eax
lea rax, str.LI_Failure_during_auth_:_Read
lea rdx, [0x14004c758]
mov r9d, 1
mov qword [rsp + 0x20], rax
call fcn.140004320
mov eax, 0x80004005
mov r12, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002f810
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret