Function at 0x10005f4e4
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x240
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor r14d, r14d
mov rsi, rdx
mov r12, rcx
mov rdi, r14
mov ebx, r14d
mov r13d, r14d
cmp rdx, r14
je 0x10005f601
mov rcx, rdx
call fcn.100053354
cmp eax, r14d
je 0x10005f5b2
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rsi
mov rcx, r8
repne scasw ax, word [rdi]
lea eax, [r14 + 2]
not rcx
lea rbp, [rcx + 0xc]
mul rbp
cmovo rax, r8
mov rcx, rax
call fcn.10007fa96
mov rdi, rax
cmp rax, r14
jne 0x10005f572
mov eax, 0x8007000e
jmp 0x10005f7c4
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.100039df8
mov rcx, rdi
cmp eax, r14d
mov ebx, eax
jl 0x10005f7bd
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [0x100024b78]
mov rdx, rbp
mov rcx, rdi
call fcn.100039ee4
cmp eax, r14d
mov ebx, eax
jge 0x10005f601
jmp 0x10005f7ba
mov rcx, rsi
call fcn.100053454
cmp eax, r14d
je 0x10005f601
or r8, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
mov rcx, r8
repne scasw ax, word [rdi]
lea eax, [r8 + 3]
not rcx
mov rbp, rcx
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.10007fa96
mov rdi, rax
cmp rax, r14
je 0x10005f568
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.100039df8
mov esi, r14d
mov ebp, 0x104
cmp rdi, r14
je 0x10005f62f
mov rcx, rdi
call fcn.100053454
cmp eax, r14d
jne 0x10005f626
mov rcx, rdi
call fcn.10007faa2
mov rdi, r14
cmp rdi, r14
jne 0x10005f6e1
mov ecx, 0x208
call fcn.10007fa96
mov rdi, rax
cmp rax, r14
je 0x10005f77d
mov rcx, r12
call fcn.10005d5b0
cmp eax, r14d
jl 0x10005f6dc
mov r8, qword [r12 + 0x260]
mov rdx, rbp
mov rcx, rdi
mov r9d, r14d
lea rax, [rdx + 0x7ffffefa]
cmp rax, r14
je 0x10005f68e
movzx eax, word [r8]
cmp ax, r14w
je 0x10005f68e
mov word [rcx], ax
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x10005f667
cmp rdx, r14
jne 0x10005f69d
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, r14d
mov word [rcx], r14w
jl 0x10005f6dc
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [0x100024b78]
mov rdx, rbp
mov rcx, rdi
call fcn.100039ee4
mov r8d, 1
mov rdx, rdi
mov rcx, r12
call fcn.10005f3f8
mov r13d, 1
mov ebx, eax
jmp 0x10005f6e1
mov ebx, 0x80004005
cmp ebx, r14d
jl 0x10005f6fa
lea rdx, [0x10005e4cc]
mov r8, r12
mov rcx, rdi
call fcn.10006bca8
mov ebx, eax
cmp ebx, 0xc00d1388
jne 0x10005f714
cmp rdi, r14
je 0x10005f75b
mov rcx, rdi
call fcn.10007faa2
mov rdi, r14
jmp 0x10005f75b
cmp ebx, 0x80040154
jne 0x10005f782
lea rcx, [rsp + 0x20]
mov edx, 0x103
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, r14d
je 0x10005f75b
lea r8, [0x10002c408]
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.100039ee4
xor r8d, r8d
lea rcx, [rsp + 0x20]
lea edx, [r8 + 1]
call fcn.1000566d8
cmp eax, r14d
jge 0x10005f767
inc esi
cmp esi, 2
jge 0x10005f782
jmp 0x10005f609
lea rdx, [0x10005e4cc]
mov r8, r12
mov rcx, rdi
call fcn.10006bca8
mov ebx, eax
jmp 0x10005f782
mov ebx, 0x8007000e
cmp r13d, r14d
je 0x10005f7b5
cmp rdi, r14
je 0x10005f7c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, r14
je 0x10005f7ac
mov word [rax], r14w
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp rdi, r14
je 0x10005f7c2
mov rcx, rdi
call fcn.10007faa2
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret