Function at 0x10001160
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d092
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x10011018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x438], edx
mov eax, ecx
mov dword [ebp - 0x444], eax
mov esi, dword [0x10011034]
mov dword [ebp - 0x430], esi
mov ebx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x448], esi
mov edi, esi
mov dword [ebp - 0x428], edi
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push str.InstanceType
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x42c], 0x104
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x100016e3
push 0x1000e3bc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x100016e3
lea eax, [ebp - 0x44c]
push eax
push 0x104
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x44c], 0x104
call fcn.10001fc0
push eax
push 0x1000e3c0
push dword [ebp - 0x444]
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov esi, dword [ebp - 0x430]
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x100016ed
cmp dword [esi - 0xc], 1
lea eax, [esi - 0xc]
mov dword [ebp - 0x424], eax
jle 0x100012d2
add esi, 0xfffffff4
cmp esi, 0x10011024
je 0x1000129c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000128b
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [0x10011034]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x424]
push dword [eax + 4]
lea ecx, [ebp - 0x430]
call fcn.10002040
mov esi, dword [ebp - 0x430]
test eax, eax
je 0x100012d2
mov ecx, dword [ebp - 0x424]
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + 0xc]
push eax
push esi
call sub.MSVCR110.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi - 8], eax
xor ecx, ecx
mov word [esi + eax*2], cx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10001327
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
jmp 0x100016ed
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x434]
call fcn.10001830
mov eax, dword [ebp - 0x434]
lea ecx, [ebp - 0x434]
push dword [eax - 8]
call fcn.10001fc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov ebx, dword [ebp - 0x434]
cmp dword [ebx - 0xc], 1
lea eax, [ebx - 0xc]
mov dword [ebp - 0x424], eax
jle 0x100013d6
add ebx, 0xfffffff4
cmp ebx, 0x10011024
je 0x100013a0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000138f
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [0x10011034]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x424]
push dword [eax + 4]
lea ecx, [ebp - 0x434]
call fcn.10002040
mov ebx, dword [ebp - 0x434]
test eax, eax
je 0x100013d6
mov ecx, dword [ebp - 0x424]
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + 0xc]
push eax
push ebx
call sub.MSVCR110.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebx - 8], eax
mov word [ebx + eax*2], cx
push ebx
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x42c]
call fcn.100021e0
add esp, 4
mov ecx, dword [ebp - 0x438]
push eax
mov byte [ebp - 4], 4
call fcn.10001830
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x42c]
lea ecx, [eax - 0xc]
cmp ecx, 0x10011024
je 0x10001441
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001441
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff4
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100015ef
lea eax, [ebp - 0x42c]
push eax
push 0x820
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x42c], 0x820
call fcn.10001fc0
push eax
push 0x1000e384
push dword [ebp - 0x444]
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov edi, dword [ebp - 0x428]
mov dword [ebp - 0x424], eax
cmp dword [edi - 0xc], 1
lea eax, [edi - 0xc]
mov dword [ebp - 0x43c], eax
jle 0x1000150b
add edi, 0xfffffff4
cmp edi, 0x10011024
je 0x100014d5
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100014c4
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [0x10011034]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x43c]
push dword [eax + 4]
lea ecx, [ebp - 0x428]
call fcn.10002040
mov edi, dword [ebp - 0x428]
test eax, eax
je 0x1000150b
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + 0xc]
push eax
push edi
call sub.MSVCR110.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [edi - 8], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x424], ecx
jne 0x100016ed
push ecx
lea ecx, [ebp - 0x428]
call fcn.10001f90
lea eax, [ebp - 0x42c]
push eax
push 0x820
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x42c], 0x820
call fcn.10001fc0
push eax
push str.PackageName
push dword [ebp - 0x444]
call dword [sym.imp.msi.dll_MsiGetPropertyW]
push ecx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x424], eax
call fcn.10001f90
cmp dword [ebp - 0x424], 0
je 0x1000158c
mov edi, dword [ebp - 0x428]
jmp 0x100016ed
push dword [ebp - 0x448]
mov edx, dword [ebp - 0x428]
lea ecx, [ebp - 0x43c]
call fcn.100021e0
add esp, 4
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.10001830
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
call fcn.100021b0
mov edi, dword [ebp - 0x428]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100015ef
mov dword [ebp - 0x424], 0xd
jmp 0x100016ed
mov eax, dword [ebp - 0x438]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001622
mov eax, dword [ebp - 0x438]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10001622
mov dword [ebp - 0x424], 0x10a
jmp 0x100016ed
mov eax, dword [ebp - 0x438]
push 0
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10001658
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x430]
push eax
call fcn.10001830
mov dword [ebp - 0x424], 0xd
jmp 0x100016ed
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x440]
mov eax, dword [eax]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x42c], eax
call fcn.10002180
push eax
push 1
push dword [ebp - 0x42c]
call dword [sym.imp.msi.dll_MsiOpenProductW]
mov ecx, eax
mov dword [ebp - 0x424], ecx
test ecx, ecx
jne 0x100016d0
push dword [ebp - 0x444]
mov ecx, dword [ebp - 0x440]
call section..text
add esp, 4
test al, al
jne 0x100016ba
mov dword [ebp - 0x424], 0x643
jmp 0x100016d0
push dword [ebp - 0x440]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x100016ed
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x100016ed
mov dword [ebp - 0x424], 0
lea eax, [edi - 0xc]
cmp eax, 0x10011024
je 0x1000170f
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000170f
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x448]
lea ecx, [eax - 0xc]
cmp ecx, 0x10011024
je 0x1000173c
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000173c
push edi
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
call edi
add esp, 4
jmp 0x10001742
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
lea eax, [ebx - 0xc]
cmp eax, 0x10011024
je 0x10001760
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001760
push ebx
call edi
add esp, 4
lea eax, [esi - 0xc]
cmp eax, 0x10011024
je 0x1000177e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000177e
push esi
call edi
add esp, 4
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c43c
mov esp, ebp
pop ebp
ret