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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6d0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov r14d, r8d
mov esi, edx
mov rbp, rcx
mov qword [rsp + 0x40], rcx
mov rcx, qword [str.P5_n_]
lea rbx, str.P5_n_
cmp rcx, rbx
je 0x1400163e0
test byte [rcx + 0x1c], 4
je 0x1400163e0
cmp byte [rcx + 0x19], 5
jb 0x1400163e0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x89
call fcn.14000ffa8
lea rdx, [rsp + 0x50]
xor edi, edi
mov rcx, rbp
mov r13d, edi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14001645a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140016450
mov rax, qword [str.P5_n_]
cmp rax, rbx
je 0x140016449
test byte [rax + 0x1c], 4
je 0x140016449
cmp byte [rax + 0x19], 3
jb 0x140016449
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140009868]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x8a
mov qword [rsp + 0x20], rbp
call fcn.140058098
xor eax, eax
jmp 0x14001683d
mov eax, 1
jmp 0x14001683d
lea rdx, [rsp + 0x4b0]
mov r8d, 0x104
mov rcx, rbp
call fcn.14007a060
mov ebx, eax
cmp eax, edi
je 0x1400164b7
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x1400164ad
test byte [rcx + 0x1c], 4
je 0x1400164ad
cmp byte [rcx + 0x19], 2
jb 0x1400164ad
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x8b
mov r9d, ebx
call fcn.1400100e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140016449
movabs rax, 0xc92a69c000
lea rbp, str.P5_n_
imul rsi, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x34]
shl r11, 0x20
or r11, rax
mov eax, dword [rsp + 0x30]
shl rcx, 0x20
or rcx, rax
sub rcx, r11
cmp rcx, rsi
jbe 0x14001670b
lea rax, [rsp + 0x7c]
lea r9, [rsp + 0x4b0]
lea r8, [0x140009d80]
lea rcx, [rsp + 0x2a0]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1400118ac
cmp eax, edi
jge 0x140016572
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14001670b
test byte [rcx + 0x1c], 4
je 0x14001670b
cmp byte [rcx + 0x19], 2
jb 0x14001670b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x8c
mov r9d, eax
call fcn.1400100e0
jmp 0x14001670b
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
jne 0x1400165db
mov rax, qword [str.P5_n_]
cmp rax, rbp
je 0x14001670b
test byte [rax + 0x1c], 4
je 0x14001670b
cmp byte [rax + 0x19], 2
jb 0x14001670b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r9, [rsp + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x8d
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x14001670b
mov edx, 0x5c
lea rcx, [rsp + 0x2a0]
mov qword [rsp + 0x38], rdi
lea r13d, [rdx - 0x5b]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbx, rax
cmp rax, rdi
je 0x1400166d6
add rbx, 2
je 0x1400166d6
mov rcx, qword [0x1400a3c58]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbx
call fcn.140017b48
cmp eax, edi
je 0x14001666f
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14001670b
test byte [rcx + 0x1c], 4
je 0x14001670b
cmp byte [rcx + 0x19], 2
jb 0x14001670b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x8f
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x14001670b
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov eax, r14d
neg eax
mov r8d, r13d
mov r9, rbx
sbb edx, edx
and edx, 0x20
add edx, 0x20
call fcn.140066354
cmp eax, edi
je 0x1400166c6
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x1400166c6
test byte [rcx + 0x1c], 4
je 0x1400166c6
cmp byte [rcx + 0x19], 2
jb 0x1400166c6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x90
movzx r9d, ax
call fcn.140011990
cmp rbx, rdi
je 0x14001670b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14001670b
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14001670b
test byte [rcx + 0x1c], 4
je 0x14001670b
cmp byte [rcx + 0x19], 2
jb 0x14001670b
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x2a0]
lea r8, [0x140009868]
mov edx, 0x8e
call fcn.14001011c
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x1400164cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x40]
mov ebx, eax
cmp eax, 0x12
je 0x140016771
mov rcx, qword [str.P5_n_]
lea rsi, str.P5_n_
cmp rcx, rsi
je 0x140016778
test byte [rcx + 0x1c], 4
je 0x140016778
cmp byte [rcx + 0x19], 2
jb 0x140016778
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x91
mov r9d, eax
mov qword [rsp + 0x20], rbp
call fcn.140058098
jmp 0x140016778
lea rsi, str.P5_n_
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, edi
jne 0x1400167ba
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x1400167ba
test byte [rcx + 0x1c], 4
je 0x1400167ba
cmp byte [rcx + 0x19], 2
jb 0x1400167ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009868]
mov edx, 0x92
mov r9d, ebx
mov qword [rsp + 0x20], rbp
call fcn.140058098
cmp r13d, 1
jne 0x140016834
lea rcx, [0x1400a3fb0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1400a40c8]
lea rcx, [0x1400a3fb0]
or qword [r11 + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1400a3c60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, edi
jne 0x140016834
mov rax, qword [str.P5_n_]
cmp rax, rsi
je 0x140016834
test byte [rax + 0x1c], 4
je 0x140016834
cmp byte [rax + 0x19], 2
jb 0x140016834
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140009868]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x93
call fcn.140011990
cmp ebx, 0x12
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.14008c5b0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret