Function at 0x140047ad0
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r13, vtable.CUtlXProperty.0
mov qword [rbp - 0x70], r13
lea rcx, [rbp - 0x68]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::constructor_void____ptr64]
lea r15, vtable.CUtlX.0
mov qword [rbp - 0x68], r15
lea edx, [r14 + 2]
lea rcx, [rbp - 0x68]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::SetFileIndex_enum_XMLFILENAMES____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::constructor_void____ptr64]
nop
lea rax, vtable.CUtlXIca.0
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x20], r13
lea rcx, [rbp - 0x18]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::constructor_void____ptr64]
mov qword [rbp - 0x18], r15
lea edx, [r14 + 2]
lea rcx, [rbp - 0x18]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::SetFileIndex_enum_XMLFILENAMES____ptr64]
nop
mov qword [rbp + 8], r14
lea rax, vtable.CUtlXSetupMsi.0
mov qword [rbp - 0x40], rax
call fcn.140069614
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047bb0
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, str.managed
lea rdx, str.__ICA_Setups_Msi___s_1__
lea rcx, [rsp + 0x48]
call fcn.140011640
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.1400409c0
mov edi, eax
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
lock add dword [rdx + 0x10], esi
jg 0x140047c05
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test edi, edi
je 0x1400480f1
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x40]
mov rax, qword [rbp - 0x40]
call qword [rax + MsiGetFeatureCostA]
xor bl, bl
mov rcx, qword [rax]
call qword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
je 0x140047c32
cmp eax, 2
jne 0x140047c34
mov bl, 1
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047c4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x140047cf8
lea r8, str.REMOVEUSERFILES
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140053520
nop
mov edx, 1
mov dword [rsp + 0x20], edx
mov rcx, qword [rax]
movzx eax, word [rcx]
cmp ax, word [reloc.msi.dll_MsiGetFeatureCostA]
jne 0x140047c95
movzx eax, word [rcx + 2]
cmp ax, word [0x1402964f6]
jne 0x140047c95
mov eax, r14d
jmp 0x140047c99
sbb eax, eax
or eax, edx
test eax, eax
jne 0x140047cfc
lea r8, str.REMOVE
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x70]
call fcn.140053520
mov edx, 3
mov dword [rsp + 0x20], edx
mov r8, qword [rax]
mov rcx, r14
lea r9, [0x140297978]
nop word [rax + rax]
movzx eax, word [r8 + rcx*2]
inc rcx
cmp ax, word [r9 + rcx*2 - 2]
jne 0x140047ceb
cmp rcx, 4
jne 0x140047cd0
mov eax, r14d
jmp 0x140047cf0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140047cfc
xor bl, bl
jmp 0x140047cfe
mov edx, dword [rsp + 0x20]
mov bl, 1
test dl, 2
je 0x140047d26
and edx, 0xfffffffd
mov dword [rsp + 0x20], edx
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047d22
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, dword [rsp + 0x20]
test dl, 1
je 0x140047d44
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047d44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x1400480f1
lea rax, [fcn.14002b1e0]
test rax, rax
je 0x1400480f1
lea rdx, str.1:2_2:0
mov ecx, 0xb000000
call fcn.14002b1e0
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::constructor_void____ptr64]
mov qword [rsp + 0x50], r15
call fcn.140069614
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047d9d
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
call fcn.140069614
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047dcf
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x38], rdi
call fcn.140069614
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047e01
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
call fcn.140069614
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047e33
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x28], rax
lea r12, vtable.CUtlCommonPath.0
mov qword [rbp + 0x20], r12
mov dword [rbp + 0x30], r14d
lea r8, str.desc
lea rdx, str.__ICA_UserFiles_UsrFile_not___s__
lea rcx, [rsp + 0x28]
call fcn.140011640
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_long_int___cdecl_CXMLFileManagerInterface::Select_wchar_t_const____ptr64____ptr64]
test eax, eax
je 0x140047f39
nop dword [rax]
nop word [rax + rax]
lea r8, str.file
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CXMLFileManagerInterface::GetAttribute_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140047efb
cmp dword [rdi + 0x10], 0
jl 0x140047eec
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140047eec
call fcn.1400116e0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140047ee1
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140047efb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140011b80
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047f13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_long_int___cdecl_CXMLFileManagerInterface::CounterNext_void____ptr64]
test eax, eax
jne 0x140047e90
mov rbx, qword [rsp + 0x30]
lea r8, str.desc
lea rdx, str.__ICA_UserFiles_UsrFile___sfolder_
lea rcx, [rsp + 0x28]
call fcn.140011640
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_long_int___cdecl_CXMLFileManagerInterface::Select_wchar_t_const____ptr64____ptr64]
test eax, eax
je 0x140048063
nop dword [rax]
lea r8, str.file
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CXMLFileManagerInterface::GetAttribute_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140047fdc
cmp dword [rbx + 0x10], 0
jl 0x140047fcd
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140047fcd
call fcn.1400116e0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140047fc2
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x140047fdc
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140011b80
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047ff5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rbp + 0x30], r14d
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x140048008
mov eax, r14d
jmp 0x14004801a
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140048010
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x28]
call fcn.140011b80
mov edx, 1
lea rcx, [rbp + 0x20]
call fcn.14003d170
test al, al
je 0x140048050
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14003caa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_long_int___cdecl_CXMLFileManagerInterface::CounterNext_void____ptr64]
test eax, eax
jne 0x140047f70
lea rdx, str.1:2_2:1
mov ecx, 0xb000000
call fcn.14002b1e0
nop
mov qword [rbp + 0x20], r12
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048092
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400480ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400480c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400480e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public_virtual:_void___cdecl_CXMLFileManagerInterface::destructor_void____ptr64]
nop
lea rax, vtable.CUtlXIca.0
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r15
lea rcx, [rbp - 0x18]
call qword [sym.imp.SetupXML.dll_public_virtual:_void___cdecl_CXMLFileManagerInterface::destructor_void____ptr64]
nop
mov qword [rbp - 0x40], r15
lea rcx, [rbp - 0x40]
call qword [sym.imp.SetupXML.dll_public_virtual:_void___cdecl_CXMLFileManagerInterface::destructor_void____ptr64]
nop
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r15
lea rcx, [rbp - 0x68]
call qword [sym.imp.SetupXML.dll_public_virtual:_void___cdecl_CXMLFileManagerInterface::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401f3080
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret