Function at 0x140004dd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r12d, edx
mov r15, rcx
mov qword [rsp + 0x20], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x3a0], xmm0
mov qword [rbp + 0x3b0], rax
lea rcx, [rbp + 0x3a0]
call fcn.14000c100
nop
mov rdi, qword [r15]
mov r14, qword [r15 + 8]
cmp rdi, r14
je 0x140004f17
lea rbx, [rdi + 9]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
movzx ecx, word [rbx + 0xa2]
mov word [rbp + 0x380], cx
movzx edx, byte [rbx]
movzx ecx, byte [rbx - 1]
call fcn.140001bc0
test rax, rax
je 0x140004e93
mov rcx, qword [0x14003bed8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x18]
lea rdx, [rax + 0xa0]
mov r9d, 2
lea r8, [rbp + 0x380]
call r10
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x64
ja 0x140004ef9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
movzx ecx, word [rbx + 0xaa]
mov word [rbp + 0x380], cx
movzx edx, byte [rbx]
movzx ecx, byte [rbx - 1]
call fcn.140001bc0
test rax, rax
je 0x140004eec
mov rcx, qword [0x14003bed8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x18]
lea rdx, [rax + 0xa8]
mov r9d, 2
lea r8, [rbp + 0x380]
call r10
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x64
ja 0x140004f12
add rdi, 0x458
add rbx, 0x458
cmp rdi, r14
jne 0x140004e47
jmp 0x140004f17
mov word [rdi], 0x102
mov rdi, qword [r15 + 8]
mov rbx, qword [r15]
cmp rbx, rdi
je 0x140004f3c
cmp byte [rbx], 0
jne 0x140004f30
mov rcx, rbx
call fcn.140003f30
add rbx, 0x458
cmp rbx, rdi
jne 0x140004f23
mov rdi, qword [r15]
mov rsi, qword [r15 + 8]
xor r13d, r13d
cmp rdi, rsi
je 0x1400050d1
lea rbx, [rdi + 0xa]
lea r14d, [r13 + 0xf]
lea r10d, [r13 + 0x10]
nop dword [rax + rax]
cmp byte [rdi], 0
jne 0x1400050ba
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c0], xmm0
mov qword [rbp + 0x3d0], r13
mov qword [rbp + 0x3d8], r14
mov byte [rbp + 0x3c0], 0
mov rdx, qword [rbp + 0x3a0]
mov r8, qword [rbp + 0x3a8]
cmp rdx, r8
je 0x140004fc2
movzx r9d, byte [rbx - 2]
movzx ecx, byte [rdx]
cmp cl, r9b
jne 0x140004fb9
movzx eax, byte [rbx - 1]
cmp byte [rdx + 1], al
jne 0x140004fb9
movzx eax, byte [rbx]
cmp byte [rdx + 2], al
je 0x140004fe8
add rdx, 0x28
cmp rdx, r8
jne 0x140004fa0
movzx ecx, word [rbx + 5]
bt cx, 2
setb al
inc al
mov byte [rdi], al
mov eax, 0x13
bt cx, 2
cmovae eax, r10d
mov byte [rbx - 9], al
jmp 0x1400050ba
mov byte [rbp + 0x3b8], cl
movzx eax, byte [rdx + 1]
mov byte [rbp + 0x3b9], al
movzx eax, byte [rdx + 2]
mov byte [rbp + 0x3ba], al
add rdx, 8
lea rcx, [rbp + 0x3c0]
call fcn.140009150
mov dword [rbp + 0x380], r13d
movzx eax, byte [rbx + 0xa]
mov byte [rbp + 0x380], al
movzx eax, byte [rbx + 0xb]
mov byte [rbp + 0x381], al
movzx eax, byte [rbx + 0xc]
mov byte [rbp + 0x382], al
mov ecx, dword [rbp + 0x380]
lea eax, [rcx - 0x20000]
test eax, 0xffff7fff
je 0x140005063
cmp ecx, 0xc0330
jne 0x140005073
lea rdx, [rbp + 0x3b8]
mov rcx, rdi
call fcn.140004560
jmp 0x140005073
lea rdx, [rbp + 0x3b8]
mov rcx, rdi
call fcn.1400042b0
nop
mov rdx, qword [rbp + 0x3d8]
cmp rdx, 0xf
jbe 0x1400050b4
inc rdx
mov rcx, qword [rbp + 0x3c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000552a
call fcn.14000d3bc
mov r10d, 0x10
add rdi, 0x458
add rbx, 0x458
cmp rdi, rsi
jne 0x140004f60
mov rbx, qword [r15]
mov rdi, qword [r15 + 8]
cmp rbx, rdi
je 0x140005143
nop dword [rax]
cmp byte [rbx], 0
jne 0x140005137
lea rax, [rsp + 0x28]
mov qword [rbp + 0x380], rax
mov byte [rsp + 0x28], 0
movzx eax, byte [rbx + 1]
mov byte [rsp + 0x29], al
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140005530
nop
lea rdx, [rbx + 0x230]
lea rcx, [rbp + 0x158]
call fcn.140005530
nop
lea rcx, [rsp + 0x28]
call fcn.140004b10
lea rcx, [0x140033170]
call fcn.1400010f0
add rbx, 0x458
cmp rbx, rdi
jne 0x1400050e0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x388], xmm1
mov qword [rbp + 0x398], r13
mov rbx, qword [r15]
mov rsi, qword [r15 + 8]
mov r13d, 0xfffb
cmp rbx, rsi
je 0x140005299
mov r14d, 0xe
lea r15d, [r14 - 7]
cmp byte [rbx], 1
jne 0x140005284
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, r14w
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x28]
mov qword [rbp + 0x380], rax
movzx eax, byte [rbx]
mov byte [rsp + 0x28], al
movzx eax, byte [rbx + 1]
mov byte [rsp + 0x29], al
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140005530
nop
lea rdx, [rbx + 0x230]
lea rcx, [rbp + 0x158]
call fcn.140005530
nop
lea rcx, [rsp + 0x28]
call fcn.140004b10
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, r15w
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, [0x140033170]
call fcn.1400010f0
test r12d, r12d
je 0x140005284
movzx eax, word [rbx + 0x237]
test al, 4
je 0x140005284
and ax, r13w
mov word [rbp + 0x380], ax
mov rdx, qword [rbx + 0x438]
add rdx, 4
mov rcx, qword [0x14003bed8]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rbp + 0x380]
call qword [rax + 0x18]
mov rax, qword [rbp + 0x390]
cmp rax, qword [rbp + 0x398]
je 0x14000526e
lea rdx, [rbx + 0x230]
mov rcx, rax
call fcn.140005530
add qword [rbp + 0x390], 0x228
jmp 0x140005284
lea r8, [rbx + 0x230]
mov rdx, rax
lea rcx, [rbp + 0x388]
call fcn.14000a290
add rbx, 0x458
cmp rbx, rsi
jne 0x140005175
mov r15, qword [rsp + 0x20]
mov rbx, qword [r15]
mov rsi, qword [r15 + 8]
cmp rbx, rsi
je 0x1400053ce
mov r14d, 4
nop
cmp byte [rbx], 2
jne 0x1400053be
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, r14w
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
movzx eax, byte [rbx]
mov byte [rsp + 0x28], al
movzx eax, byte [rbx + 1]
mov byte [rsp + 0x29], al
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140005530
nop
lea rdx, [rbx + 0x230]
lea rcx, [rbp + 0x158]
call fcn.140005530
nop
lea rcx, [rsp + 0x28]
call fcn.140004b10
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rcx, [0x140033170]
call fcn.1400010f0
test r12d, r12d
je 0x1400053be
movzx eax, word [rbx + 0x237]
test al, 4
je 0x1400053be
and ax, r13w
mov word [rbp + 0x380], ax
mov rdx, qword [rbx + 0x438]
add rdx, 4
mov rcx, qword [0x14003bed8]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rbp + 0x380]
call qword [rax + 0x18]
mov rax, qword [rbp + 0x390]
cmp rax, qword [rbp + 0x398]
je 0x1400053a8
lea rdx, [rbx + 0x230]
mov rcx, rax
call fcn.140005530
add qword [rbp + 0x390], 0x228
jmp 0x1400053be
lea r8, [rbx + 0x230]
mov rdx, rax
lea rcx, [rbp + 0x388]
call fcn.14000a290
add rbx, 0x458
cmp rbx, rsi
jne 0x1400052b0
mov rcx, qword [rbp + 0x390]
sub rcx, qword [rbp + 0x388]
movabs rax, 0x76b981dae6076b99
imul rcx
sar rdx, 8
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140005472
lea rcx, str._drvscan__Press_any_key_to_unblock_devices_._._._n
call fcn.1400010f0
call fcn.140017004
mov rdi, qword [rbp + 0x390]
mov rbx, qword [rbp + 0x388]
cmp rbx, rdi
je 0x140005472
add rbx, 0x208
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx - 0x201]
mov word [rbp + 0x380], ax
mov rdx, qword [rbx]
add rdx, 4
mov rcx, qword [0x14003bed8]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rbp + 0x380]
call qword [rax + 0x18]
lea rbx, [rbx + 0x228]
lea rax, [rbx - 0x208]
cmp rax, rdi
jne 0x140005430
lea rcx, [rbp + 0x388]
call fcn.1400094f0
nop
mov rcx, qword [rbp + 0x3a0]
test rcx, rcx
je 0x1400054f4
mov rdx, qword [rbp + 0x3a8]
call fcn.140009890
mov rcx, qword [rbp + 0x3b0]
mov r8, qword [rbp + 0x3a0]
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x1400054ec
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005524
mov rcx, r8
call fcn.14000d3bc
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14000d120
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x38]
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.14001637c
nop
call fcn.14001637c
nop