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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x480
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800764a0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov eax, dword [0x18007b068]
test al, 1
jne 0x1800066ba
or eax, 1
mov dword [0x18007b068], eax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetTickCount64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800066ab
call rax
jmp 0x1800066b3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
mov qword [0x18007b060], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetTickCount64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800066e3
call rax
mov rdx, rax
jmp 0x1800066eb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov rax, rdx
sub rax, qword [0x18007b060]
cmp rax, 0x1388
jbe 0x1800068be
mov qword [0x18007b060], rdx
mov rax, qword [0x18007a718]
test rax, rax
jne 0x180006725
mov ecx, 0x400000
call fcn.180040b8c
mov qword [0x18007a718], rax
xor ebp, ebp
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x400000
mov r9, rax
xor r8d, r8d
xor edx, edx
mov ecx, 0x222164
call fcn.180032b24
mov ebx, dword [rsp + 0x30]
movabs rax, 0xf74e3fc22c700f75
mul rbx
mov rdi, rdx
shr rdi, 0xb
mov rdx, rdi
lea rcx, str.doc_guard_log_size:_d
call fcn.180037d10
test ebx, ebx
je 0x1800068be
cmp ebx, 0x400000
jae 0x1800068be
test edi, edi
je 0x1800068be
mov rbx, qword [0x18007a718]
add rbx, 4
mov esi, edi
nop
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbp
mov word [rsp + 0x48], bp
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.18000a4d0
nop
mov rdx, rbx
lea rcx, str.path1:_ls
call fcn.180037d10
test rbx, rbx
je 0x180006860
lea rcx, str.Device_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rdx, str.Device_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov ecx, ebp
test eax, eax
sete cl
test ecx, ecx
je 0x180006860
mov word [rsp + 0x70], bp
mov r8d, 0x200
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.18002e2cc
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18000a4d0
lea rdx, [rsp + 0x70]
lea rcx, str.path2:_ls
call fcn.180037d10
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rcx, str.path3:_ls
call fcn.180037d10
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rbx + 0x440]
call fcn.1800053d0
nop
cmp qword [rsp + 0x60], 8
jb 0x1800068ad
mov rcx, qword [rsp + 0x48]
call fcn.180041070
add rbx, 0x848
sub rsi, 1
jne 0x1800067a0
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180040bb0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret