Function at 0x140045788
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x4a0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor ebx, ebx
mov rdi, rcx
mov esi, ebx
mov rcx, qword [str.P5_n_]
lea r13, str.P5_n_
lea r14, [0x140008f68]
cmp rcx, r13
je 0x1400457f1
test byte [rcx + 0x1c], 4
je 0x1400457f1
cmp byte [rcx + 0x19], 5
jb 0x1400457f1
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x30]
mov r8, r14
call fcn.14000ffa8
mov r9, qword [0x1400a40c8]
lea r8, [0x14000a840]
lea rcx, [rsp + 0x280]
mov r9, qword [r9 + 0x60]
mov edx, 0x104
mov qword [rsp + 0x20], rdi
call fcn.1400118ac
cmp eax, ebx
jge 0x140045851
mov rcx, qword [str.P5_n_]
cmp rcx, r13
je 0x14004584a
test byte [rcx + 0x1c], 4
je 0x14004584a
cmp byte [rcx + 0x19], 2
jb 0x14004584a
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9d, eax
mov r8, r14
call fcn.1400100e0
xor eax, eax
jmp 0x140045a0d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400458b1
mov rcx, qword [str.P5_n_]
cmp rcx, r13
je 0x1400458a7
test byte [rcx + 0x1c], 4
je 0x1400458a7
cmp byte [rcx + 0x19], 3
jb 0x1400458a7
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x33]
mov rax, qword [0x1400a40c8]
mov r8, qword [rax + 0x60]
mov r9, rdi
mov qword [rsp + 0x20], r8
mov r8, r14
call fcn.14001019c
mov eax, 1
jmp 0x140045a0d
mov r9, qword [0x1400a40c8]
lea rax, [rsp + 0x5c]
lea r8, [0x140009d80]
mov r9, qword [r9 + 0x60]
lea rcx, [rsp + 0x280]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1400118ac
cmp eax, ebx
jge 0x140045920
mov rcx, qword [str.P5_n_]
cmp rcx, r13
je 0x1400459a5
test byte [rcx + 0x1c], 4
je 0x1400459a5
cmp byte [rcx + 0x19], 2
jb 0x1400459a5
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9d, eax
mov r8, r14
call fcn.1400100e0
jmp 0x1400459a5
mov rcx, qword [str.P5_n_]
cmp rcx, r13
je 0x140045951
test byte [rcx + 0x1c], 4
je 0x140045951
cmp byte [rcx + 0x19], 5
jb 0x140045951
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x280]
mov edx, 0x34
mov r8, r14
call fcn.14001011c
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1400459aa
mov rax, qword [str.P5_n_]
cmp rax, r13
je 0x1400459a5
test byte [rax + 0x1c], 4
je 0x1400459a5
cmp byte [rax + 0x19], 2
jb 0x1400459a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r9, [rsp + 0x280]
mov rcx, qword [rcx + 0x10]
mov edx, 0x35
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.140011a18
mov esi, 1
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x1400458b1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, ebx
jne 0x140045a06
mov rax, qword [str.P5_n_]
cmp rax, r13
je 0x140045a06
test byte [rax + 0x1c], 4
je 0x140045a06
cmp byte [rax + 0x19], 2
jb 0x140045a06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x36
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
cmp esi, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14008c5b0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret