Function at 0x140005ad8
Capabilities:
Check if file exists
Delete file
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f8]
sub rsp, 0x6d0
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r13d, r8d
mov esi, edx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov rcx, qword [str._0_n_]
lea rdi, str._0_n_
cmp rcx, rdi
je 0x140005b50
test byte [rcx + 0x1c], 4
je 0x140005b50
cmp byte [rcx + 0x19], 5
jb 0x140005b50
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0x89
call fcn.14000459c
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov rcx, r14
mov r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140005bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140005bd2
mov rax, qword [str._0_n_]
cmp rax, rdi
je 0x140005bcb
test byte [rax + 0x1c], 4
je 0x140005bcb
cmp byte [rax + 0x19], 3
jb 0x140005bcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140092c30]
mov edx, 0x8a
mov qword [rsp + 0x20], r14
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000c964
xor eax, eax
jmp 0x140005ffc
mov eax, 1
jmp 0x140005ffc
lea rdx, [rbp + 0x3b0]
mov rcx, r14
call fcn.14006d0e0
mov edi, eax
test eax, eax
je 0x140005c38
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x140005c28
test byte [rcx + 0x1c], 4
je 0x140005c28
cmp byte [rcx + 0x19], 2
jb 0x140005c28
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0x8b
mov r9d, edi
call fcn.140004900
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140005bcb
movabs rax, 0xc92a69c000
lea r14, str._0_n_
imul rsi, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov eax, dword [rsp + 0x54]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x34]
shl rcx, 0x20
shl rdx, 0x20
or rdx, rax
mov eax, dword [rsp + 0x30]
or rcx, rax
sub rcx, rdx
cmp rcx, rsi
jbe 0x140005e9c
lea rax, [rsp + 0x7c]
mov edx, 0x104
lea r9, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
lea r8, [0x140092720]
lea rcx, [rbp + 0x1a0]
call fcn.140004520
test eax, eax
jns 0x140005cf6
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140005e9c
test byte [rcx + 0x1c], 4
je 0x140005e9c
cmp byte [rcx + 0x19], 2
jb 0x140005e9c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0x8c
mov r9d, eax
call fcn.1400045c8
jmp 0x140005e9c
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140005d69
mov rax, qword [str._0_n_]
cmp rax, r14
je 0x140005e9c
test byte [rax + 0x1c], 4
je 0x140005e9c
cmp byte [rax + 0x19], 2
jb 0x140005e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r9, [rbp + 0x1a0]
mov edx, 0x8d
mov dword [rsp + 0x20], eax
lea r8, [0x140092c30]
mov rcx, qword [rcx + 0x10]
call fcn.140004880
jmp 0x140005e9c
mov edx, 0x5c
mov qword [rsp + 0x38], rbx
lea rcx, [rbp + 0x1a0]
lea r12d, [rdx - 0x5b]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005e68
add rdi, 2
je 0x140005e68
lea r9, [rsp + 0x38]
mov rdx, rdi
lea r8, [rsp + 0x40]
call fcn.1400066d8
test eax, eax
je 0x140005dfb
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140005e9c
test byte [rcx + 0x1c], 4
je 0x140005e9c
cmp byte [rcx + 0x19], 2
jb 0x140005e9c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0x8f
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.14000c804
jmp 0x140005e9c
mov rdi, qword [rsp + 0x38]
mov eax, r13d
mov rcx, qword [rsp + 0x40]
neg eax
mov r9, rdi
mov r8d, r12d
sbb edx, edx
and edx, 0x20
add edx, 0x20
call fcn.140059114
test eax, eax
je 0x140005e52
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140005e52
test byte [rcx + 0x1c], 4
je 0x140005e52
cmp byte [rcx + 0x19], 2
jb 0x140005e52
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0x90
movzx r9d, ax
call fcn.14000c920
test rdi, rdi
je 0x140005e9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
jmp 0x140005e9c
mov rcx, qword [str._0_n_]
cmp rcx, r14
je 0x140005e9c
test byte [rcx + 0x1c], 4
je 0x140005e9c
cmp byte [rcx + 0x19], 2
jb 0x140005e9c
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x1a0]
mov edx, 0x8e
lea r8, [0x140092c30]
call fcn.140004764
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140005c4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14, qword [rsp + 0x48]
mov edi, eax
cmp eax, 0x12
je 0x140005f0e
mov rcx, qword [str._0_n_]
lea rsi, str._0_n_
cmp rcx, rsi
je 0x140005f15
test byte [rcx + 0x1c], 4
je 0x140005f15
cmp byte [rcx + 0x19], 2
jb 0x140005f15
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, SysAllocStringByteLen
mov qword [rsp + 0x20], r14
mov r9d, eax
call fcn.14000c964
jmp 0x140005f15
lea rsi, str._0_n_
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x140005f5d
mov rcx, qword [str._0_n_]
cmp rcx, rsi
je 0x140005f5d
test byte [rcx + 0x1c], 4
je 0x140005f5d
cmp byte [rcx + 0x19], 2
jb 0x140005f5d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, DllRegisterServer
mov qword [rsp + 0x20], r14
mov r9d, edi
call fcn.14000c964
cmp r12d, 1
jne 0x140005ff4
lea rcx, [0x1400a7500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [0x1400a76e8]
lea rcx, [0x1400a7500]
or qword [rax + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x1400a72a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
test eax, eax
jne 0x140005ff4
mov rax, qword [str._0_n_]
cmp rax, rsi
je 0x140005ff4
test byte [rax + 0x1c], 4
je 0x140005ff4
cmp byte [rax + 0x19], 2
jb 0x140005ff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140092c30]
mov edx, DllRegisterServer
movzx r9d, ax
mov rcx, qword [rcx + 0x10]
call fcn.14000c920
cmp edi, 0x12
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0x6d0]
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