Function at 0x1400479c0
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.1400694ec
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047aa0
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.1400408b0
mov edi, eax
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
lock add dword [rdx + 0x10], esi
jg 0x140047af5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test edi, edi
je 0x140047fe1
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 0x140047b22
cmp eax, 2
jne 0x140047b24
mov bl, 1
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047b3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x140047be8
lea r8, str.REMOVEUSERFILES
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140053410
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 0x140047b85
movzx eax, word [rcx + 2]
cmp ax, word [0x1402964f6]
jne 0x140047b85
mov eax, r14d
jmp 0x140047b89
sbb eax, eax
or eax, edx
test eax, eax
jne 0x140047bec
lea r8, str.REMOVE
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x70]
call fcn.140053410
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 0x140047bdb
cmp rcx, 4
jne 0x140047bc0
mov eax, r14d
jmp 0x140047be0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140047bec
xor bl, bl
jmp 0x140047bee
mov edx, dword [rsp + 0x20]
mov bl, 1
test dl, 2
je 0x140047c16
and edx, 0xfffffffd
mov dword [rsp + 0x20], edx
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047c12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, dword [rsp + 0x20]
test dl, 1
je 0x140047c34
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047c34
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x140047fe1
lea rax, [fcn.14002b0d0]
test rax, rax
je 0x140047fe1
lea rdx, str.1:2_2:0
mov ecx, 0xb000000
call fcn.14002b0d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.SetupXML.dll_public:_void___cdecl_CXMLFileManagerInterface::constructor_void____ptr64]
mov qword [rsp + 0x50], r15
call fcn.1400694ec
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047c8d
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.1400694ec
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047cbf
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.1400694ec
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047cf1
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.1400694ec
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140047d23
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 0x140047e29
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 0x140047deb
cmp dword [rdi + 0x10], 0
jl 0x140047ddc
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140047ddc
call fcn.1400116e0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140047dd1
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 0x140047deb
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 0x140047e03
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 0x140047d80
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 0x140047f53
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 0x140047ecc
cmp dword [rbx + 0x10], 0
jl 0x140047ebd
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140047ebd
call fcn.1400116e0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140047eb2
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 0x140047ecc
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 0x140047ee5
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 0x140047ef8
mov eax, r14d
jmp 0x140047f0a
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140047f00
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x28]
call fcn.140011b80
mov edx, 1
lea rcx, [rbp + 0x20]
call fcn.14003d060
test al, al
je 0x140047f40
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14003c990
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 0x140047e60
lea rdx, str.1:2_2:1
mov ecx, 0xb000000
call fcn.14002b0d0
nop
mov qword [rbp + 0x20], r12
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047f82
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 0x140047f9c
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 0x140047fb6
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 0x140047fd0
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.1401f2f70
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