Function at 0x14002dd14
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Get file size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xd80
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14007e090]
xor rax, rsp
mov qword [rsp + 0xd78], rax
xor edx, edx
mov rcx, qword [0x1400835b0]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ebx, ebx
cmp eax, 0x500000
jbe 0x14002ddc7
xor edx, edx
lea r8d, [rbx + 0x2d]
lea rcx, [0x1400835b8]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov word [rax], bx
mov r9d, dword [0x1400837c0]
inc r9d
mov dword [0x1400837c0], r9d
lea r8, str.__d.log
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea rdx, [rsp + 0x2b0]
lea rcx, [0x1400835b8]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1400835b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x1400835b0], 0xffffffffffffffff
mov word [rsp + 0x330], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x332]
call fcn.1400452b0
mov edx, 1
lea rcx, [rsp + 0x330]
call fcn.14002da64
mov ecx, 8
call fcn.140042afc
cmp rax, rbx
je 0x14002de0f
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x14002de12
mov rax, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x330]
lea rax, [fcn.14002dc40]
cmp rax, rbx
je 0x14002dfa4
cmp word [rsp + 0x332], 0x3a
je 0x14002dea7
cmp word [rsp + 0x332], 0x5c
je 0x14002dea7
mov word [rsp + 0x960], bx
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x962]
call fcn.1400452b0
lea rdx, [rsp + 0x960]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x960]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdi, [rsp + 0x960]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x14002dfa4
test al, 0x10
je 0x14002dfa4
mov rdx, rdi
lea rcx, [rsp + 0x540]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140067360]
lea rcx, [rsp + 0x540]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x540]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14002dfa4
lea rdx, [0x140067364]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
je 0x14002df85
lea rdx, [0x140067368]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
je 0x14002df85
cmp dword [rsp + 0x60], ebp
je 0x14002df85
mov rdx, rdi
lea rcx, [rsp + 0x750]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x750]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0x60], 0x10
jne 0x14002df85
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x750]
call fcn.14002dc40
cmp eax, ebx
je 0x14002df9b
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14002df09
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x40]
movabs rbp, 0x6666666666666667
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 0x64
ja 0x14002dfdd
cmp qword [rsp + 0x20], 0x3200000
jbe 0x14002e04e
cmp rdx, 0x14
jbe 0x14002dfea
mov eax, 0xa
jmp 0x14002dff1
mov eax, edx
cdq
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x14002e04e
movsxd rsi, eax
mov rdi, rbx
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x40]
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jb 0x14002e023
call fcn.140042ffc
mov rax, qword [rsp + 0x40]
cmp qword [rdi + rax + 0x20], 8
jb 0x14002e037
mov rcx, qword [rdi + rax + 8]
jmp 0x14002e03c
lea rcx, [rdi + rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
inc rbx
add rdi, 0x28
cmp rbx, rsi
jl 0x14002dffb
lea rcx, [rsp + 0x28]
call fcn.140003af4
mov rcx, qword [rsp + 0xd78]
xor rcx, rsp
call fcn.140042a40
lea r11, [rsp + 0xd80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret