Function at 0x1800159f0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x18002c008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r13, rcx
lea rcx, [rsp + 0x40]
call sym.ulib.dll_public:_void___cdecl_FSN_FILTER::constructor_void____ptr64
xor edi, edi
lea rcx, [rsp + 0x40]
mov ebx, edi
mov esi, edi
mov bpl, 1
call sym.ulib.dll_public:_unsigned_char___cdecl_FSN_FILTER::Initialize_void____ptr64
lea rdx, [0x180022140]
lea rcx, [rsp + 0x40]
call sym.ulib.dll_public:_unsigned_char___cdecl_FSN_FILTER::SetFileName_char_const____ptr64____ptr64
lea rdx, [rsp + 0x40]
mov rcx, r13
call sym.ulib.dll_public:_class_ARRAY____ptr64___cdecl_FSN_DIRECTORY::QueryFsnodeArray_class_FSN_FILTER____ptr64_const___ptr64
mov r14, rax
test rax, rax
je 0x180015ae6
mov rax, qword [rax]
movabs r10, 0xca8007397c547370
mov rax, qword [rax + 0x30]
mov rcx, r14
call qword [0x1800214b0]
mov r12, rax
mov rax, qword [r12]
movabs r10, 0x83602fef5e53c270
mov rax, qword [rax + 0x28]
mov rcx, r12
call qword [0x1800214b0]
mov r15, rax
test rax, rax
je 0x180015abf
test byte [rax + 0x270], 0x10
je 0x180015b28
mov rcx, rax
call sym.ulib.dll_public:_unsigned_char___cdecl_FSN_DIRECTORY::DeleteDirectory_void____ptr64
mov bpl, al
test al, al
jne 0x180015a84
mov rax, qword [r14]
movabs r10, 0xfd980fd51c5c1870
mov rax, qword [rax]
mov edx, 1
mov rcx, r14
call qword [0x1800214b0]
test bpl, bpl
je 0x180015c4a
mov eax, dword [r13 + 0x240]
lea ebp, [rax*2 + 2]
cmp ebp, esi
jbe 0x180015bf2
test rbx, rbx
jne 0x180015be3
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, ebp
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
jmp 0x180015bed
mov eax, dword [rax + 0x240]
lea ebp, [rax*2 + 2]
cmp ebp, esi
jbe 0x180015b6d
test rbx, rbx
jne 0x180015b5e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, ebp
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
jmp 0x180015b68
mov edx, ebp
mov rcx, rbx
call sym.ulib.dll_UlibRealloc
mov rbx, rax
mov esi, ebp
test rbx, rbx
je 0x180015bb7
mov eax, esi
mov byte [rsp + 0x28], 1
shr eax, 1
lea rcx, [r15 + 0x228]
mov r9, rbx
mov dword [rsp + 0x20], eax
or r8d, 0xffffffff
xor edx, edx
call sym.ulib.dll_public:_unsigned_short_int____ptr64___cdecl_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int____ptr64__unsigned_long_int__unsigned_char_const___ptr64
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
je 0x180015baf
mov bpl, 1
jmp 0x180015a84
mov bpl, dil
jmp 0x180015abf
mov rax, qword [r14]
movabs r10, 0xfd980fd51c5c1870
mov rax, qword [rax]
mov edx, 1
mov rcx, r14
call qword [0x1800214b0]
lea rcx, [rsp + 0x40]
call sym.ulib.dll_public_virtual:_void___cdecl_FSN_FILTER::destructor_void____ptr64
xor al, al
jmp 0x180015c5a
mov edx, ebp
mov rcx, rbx
call sym.ulib.dll_UlibRealloc
mov rbx, rax
mov esi, ebp
test rbx, rbx
je 0x180015c4d
shr esi, 1
lea rcx, [r13 + 0x228]
mov byte [rsp + 0x28], 1
mov r9, rbx
or r8d, 0xffffffff
mov dword [rsp + 0x20], esi
xor edx, edx
call sym.ulib.dll_public:_unsigned_short_int____ptr64___cdecl_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int____ptr64__unsigned_long_int__unsigned_char_const___ptr64
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rbx
test eax, eax
setne bpl
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov dil, bpl
lea rcx, [rsp + 0x40]
call sym.ulib.dll_public_virtual:_void___cdecl_FSN_FILTER::destructor_void____ptr64
mov al, dil
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18000d460
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret