Function at 0x1400d7d70
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 [0x14014d030]
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, str._s_s
lea rcx, [rsp + 0x48]
call fcn.1400d9360
mov edi, eax
lea ebx, [r14 + 1]
test eax, eax
jns 0x1400d7e31
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d801d
test byte [rcx + 0x1c], bl
je 0x1400d801d
lea edx, [rbx + 0x49]
jmp 0x1400d8009
mov r12d, r14d
mov r13d, r14d
or rdi, 0xffffffffffffffff
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, rdi
je 0x1400d7fbe
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.1400d9748
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 0x1400d7ef9
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 0x1400d7ef9
mov rbx, qword [rbp - 0x7c]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x64]
mov r8, qword [rsp + 0x58]
lea rdx, str._s_s
lea rcx, [rsp + 0x28]
call fcn.1400d9360
mov edi, eax
test eax, eax
js 0x1400d7f67
mov r15d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d7e77
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or rdi, 0xffffffffffffffff
mov rsi, rdi
mov r15d, dword [rsp + 0x38]
cmp r14d, r15d
jbe 0x1400d7fa8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400d7f9c
cmp dword [rsp + 0x34], 0
jbe 0x1400d7f9c
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400d7f49
dec r14d
jmp 0x1400d7f56
mov qword [rsp + 0x40], rbx
mov r13d, dword [rsp + 0x44]
mov r12d, ebx
cmp r14d, r15d
jbe 0x1400d7fa8
xor r14d, r14d
lea ebx, [r14 + 1]
jmp 0x1400d7e3b
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
mov ebx, 1
cmp rcx, rax
je 0x1400d7fad
test byte [rcx + 0x1c], bl
je 0x1400d7fad
lea edx, [rbx + 0x4b]
mov r9d, edi
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400d7fad
mov edi, 0x80004005
mov ebx, 1
jmp 0x1400d801d
xor edi, edi
lea ebx, [rdi + 1]
cmp rsi, 0xffffffffffffffff
je 0x1400d801d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400d801d
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x1400d7fcd
mov edi, r14d
jmp 0x1400d801d
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, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d801d
test byte [rcx + 0x1c], bl
je 0x1400d801d
mov edx, 0x4b
mov r9d, edi
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.1400d9748
nop
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1400d9748
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret