Function at 0x140033000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x4b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003340e
mov rax, qword [rcx + 0x298]
cmp byte [rax + 0xe44], 0
je 0x14003340e
cmp byte [rax + 0x1150], 0
je 0x1400332cd
lea rcx, [rax + 0xe44]
lea rdx, [r11 - 0x348]
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140033070
lea rcx, [rsp + 0x170]
call fcn.1400b3390
mov rdx, qword [rsi]
mov r8, qword [rdx + 0x298]
lea rdi, [rsp + 0x170]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
movzx eax, byte [r8 + rcx + 0x1150]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1400330b0
lea rcx, [rsp + 0x170]
call fcn.1400b3390
lea rdi, [rsp + 0x170]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400eb6d0]
mov dword [rdi - 1], eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400331fe
nop
nop
mov rcx, qword [rsi]
mov rdx, qword [rcx + 0x298]
add rdx, 0xe44
lea rax, [rsp + 0x280]
nop
nop
movzx ecx, byte [rdx]
mov byte [rax], cl
add rdx, 1
add rax, 1
test cl, cl
jne 0x140033130
lea rcx, [rsp + 0x280]
call fcn.1400b3390
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x298]
add rcx, 0x1150
lea rdx, [rsp + 0x280]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140033170
lea rcx, [rsp + 0x280]
call fcn.1400b3390
lea rdi, [rsp + 0x280]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x5c]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1400331b0
test byte [rsp + 0x30], 0x10
jne 0x1400331e8
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400331e8
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.1400b8880
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140033110
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x298]
add rcx, 0xe44
lea rdx, [rsp + 0x170]
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140033220
lea rcx, [rsp + 0x170]
call fcn.1400b3390
mov rdx, qword [rsi]
mov r8, qword [rdx + 0x298]
lea rdi, [rsp + 0x170]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
movzx eax, byte [r8 + rcx + 0x1150]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x140033260
lea rdx, [rsp + 0x390]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [0x1400ee648]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400332bf
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1400b8880
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov rax, qword [rsi]
mov rcx, qword [rax + 0x298]
add rcx, 0xe44
lea rdx, [rsp + 0x170]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x1400332f0
lea rcx, [rsp + 0x170]
call fcn.1400b3390
lea rdi, [rsp + 0x170]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [0x1400eb6d0]
mov dword [rdi - 1], eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400333ec
nop
nop
nop
mov rcx, qword [rsi]
mov rdx, qword [rcx + 0x298]
add rdx, 0xe44
lea rax, [rsp + 0x280]
nop
nop
movzx ecx, byte [rdx]
mov byte [rax], cl
add rdx, 1
add rax, 1
test cl, cl
jne 0x140033370
lea rcx, [rsp + 0x280]
call fcn.1400b3390
lea rdi, [rsp + 0x280]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x5c]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1400333b0
test byte [rsp + 0x30], 0x10
jne 0x1400333d6
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.1400b8880
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140033350
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x298]
add rcx, 0xe44
xor edx, edx
call fcn.1400b8880
nop
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400c2a20
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret