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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov dword [rsp + 0x38], r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r14d, r14d
mov dword [rsp + 0x70], r14d
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x74]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r14
mov r9, rbx
mov r8, rdi
lea rdx, [0x1400014f0]
lea rcx, [rsp + 0x48]
call fcn.14011016c
mov edi, eax
lea ebx, [r14 + 1]
test eax, eax
jns 0x140111821
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x140111a08
test byte [rcx + 0x1c], bl
je 0x140111a08
lea edx, [rbx + 0x4a]
jmp 0x1401119f4
mov r12d, r14d
mov r13d, r14d
or rdi, 0xffffffffffffffff
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_FindFirstFileW
mov rsi, rax
cmp rax, rdi
je 0x1401119a9
or edi, 0xffffffff
mov dword [rsp + 0x20], edi
or r15d, edi
mov dword [rsp + 0x24], r15d
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140110394
mov rbx, qword [rsp + 0x20]
mov r8d, 1
add r14d, r8d
mov ecx, dword [rbp - 0x78]
mov edx, dword [rbp - 0x7c]
xor eax, eax
cmp edx, edi
seta al
cmp edx, edi
mov r9, 0xffffffffffffffff
cmovb eax, r9d
cmp ecx, r15d
cmova eax, r8d
cmovb eax, r9d
test eax, eax
jns 0x1401118e8
xor eax, eax
cmp edx, r12d
seta al
cmp edx, r12d
cmovb eax, r9d
cmp ecx, r13d
cmova eax, r8d
cmovb eax, r9d
test eax, eax
jle 0x1401118e8
mov rbx, qword [rbp - 0x7c]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x64]
mov r8, qword [rsp + 0x58]
lea rdx, [0x1400014f0]
lea rcx, [rsp + 0x28]
call fcn.14011016c
mov edi, eax
test eax, eax
js 0x140111953
mov r15d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
jne 0x140111866
mov rcx, rsi
call sub.KERNEL32.dll_FindClose
or rdi, 0xffffffffffffffff
mov rsi, rdi
mov r15d, dword [rsp + 0x38]
cmp r14d, r15d
jbe 0x140111994
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140111988
cmp dword [rsp + 0x34], 0
jbe 0x140111988
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x140111935
dec r14d
jmp 0x140111942
mov qword [rsp + 0x40], rbx
mov r13d, dword [rsp + 0x44]
mov r12d, ebx
cmp r14d, r15d
jbe 0x140111994
xor r14d, r14d
lea ebx, [r14 + 1]
jmp 0x14011182b
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
mov ebx, 1
cmp rcx, rax
je 0x140111999
test byte [rcx + 0x1c], bl
je 0x140111999
lea edx, [rbx + 0x4c]
mov r9d, edi
lea r8, [0x140001368]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140111999
mov edi, 0x80004005
mov ebx, 1
jmp 0x140111a08
xor edi, edi
lea ebx, [rdi + 1]
cmp rsi, 0xffffffffffffffff
je 0x140111a08
mov rcx, rsi
call sub.KERNEL32.dll_FindClose
jmp 0x140111a08
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x1401119b8
mov edi, r14d
jmp 0x140111a08
call sub.KERNEL32.dll_GetLastError
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, 0x80004005
test ecx, ecx
cmovns ecx, edi
mov edi, ecx
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x140111a08
test byte [rcx + 0x1c], bl
je 0x140111a08
mov edx, 0x4c
mov r9d, edi
lea r8, [0x140001368]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
nop
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140110394
nop
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140110394
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret