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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000c562
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x10010018]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x440], eax
mov eax, dword [0x10010038]
mov esi, ecx
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], eax
mov ebx, eax
mov dword [ebp - 0x430], ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x420]
push edx
push str.InstanceType
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x434], 0x104
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x1000122d
push 0x1000d3bc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x100012cf
lea ecx, [edi - 0xc]
cmp ecx, 0x10010028
je 0x10001254
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001254
push edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
call edi
add esp, 4
jmp 0x1000125a
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
lea edx, [ebx - 0xc]
cmp edx, 0x10010028
je 0x10001279
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001279
push esi
call edi
add esp, 4
mov esi, dword [ebp - 0x428]
lea eax, [esi - 0xc]
cmp eax, 0x10010028
je 0x1000129d
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000129d
push esi
call edi
add esp, 4
mov esi, dword [ebp - 0x424]
lea ecx, [esi - 0xc]
cmp ecx, 0x10010028
je 0x10001800
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001800
push esi
call edi
add esp, 4
jmp 0x10001800
lea edx, [ebp - 0x448]
mov ecx, 0x104
push edx
lea ebx, [ebp - 0x424]
mov dword [ebp - 0x448], ecx
call fcn.10002050
push eax
push 0x1000d3c0
push esi
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov dword [ebp - 0x434], eax
test eax, eax
je 0x100013a2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
cmp eax, 0x10010028
je 0x1000132f
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x1000132f
push edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
call edi
add esp, 4
jmp 0x10001335
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov esi, dword [ebp - 0x430]
lea ecx, [esi - 0xc]
cmp ecx, 0x10010028
je 0x10001356
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10001356
push esi
call edi
add esp, 4
mov esi, dword [ebp - 0x428]
lea edx, [esi - 0xc]
cmp edx, 0x10010028
je 0x10001377
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10001377
push esi
call edi
add esp, 4
mov esi, dword [ebp - 0x424]
lea eax, [esi - 0xc]
cmp eax, 0x10010028
je 0x10001397
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10001397
push esi
call edi
add esp, 4
mov eax, dword [ebp - 0x434]
jmp 0x10001802
lea esi, [ebp - 0x424]
call fcn.10001fd0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1000148d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [edi - 0xc]
mov dword [ebp - 0x43c], eax
cmp ecx, 0x10010028
je 0x1000141a
lea esi, [edi - 0xc]
push esi
call ebx
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
jg 0x10001420
push esi
call edi
add esp, 4
jmp 0x10001420
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov esi, dword [ebp - 0x430]
lea edx, [esi - 0xc]
cmp edx, 0x10010028
je 0x10001441
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10001441
push esi
call edi
add esp, 4
mov esi, dword [ebp - 0x428]
lea eax, [esi - 0xc]
cmp eax, 0x10010028
je 0x10001461
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10001461
push esi
call edi
add esp, 4
mov esi, dword [ebp - 0x424]
lea ecx, [esi - 0xc]
cmp ecx, 0x10010028
je 0x10001482
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10001482
push esi
call edi
add esp, 4
mov eax, dword [ebp - 0x43c]
jmp 0x10001802
lea edi, [ebp - 0x424]
lea eax, [ebp - 0x428]
call fcn.100018e0
mov edx, dword [ebp - 0x428]
mov ecx, dword [edx - 8]
lea ebx, [ebp - 0x428]
call fcn.10002050
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov esi, ebx
call fcn.10001fd0
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x218]
call fcn.10002210
add esp, 8
mov esi, dword [ebp - 0x440]
mov edi, eax
mov eax, esi
mov byte [ebp - 4], 4
call fcn.100018e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x434]
lea edx, [eax - 0xc]
cmp edx, 0x10010028
je 0x10001525
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10001525
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000164b
lea edx, [ebp - 0x434]
mov ecx, 0x820
push edx
lea ebx, [ebp - 0x42c]
mov dword [ebp - 0x434], ecx
call fcn.10002050
mov edi, dword [ebp - 0x43c]
push eax
push 0x1000d384
push edi
call dword [sym.imp.msi.dll_MsiGetPropertyW]
lea esi, [ebp - 0x42c]
mov ebx, eax
call fcn.10001fd0
test ebx, ebx
je 0x100015a8
call fcn.100018b0
lea esi, [ebp - 0x430]
call fcn.100018b0
lea esi, [ebp - 0x428]
call fcn.100018b0
lea esi, [ebp - 0x424]
call fcn.100018b0
mov eax, ebx
jmp 0x10001802
call fcn.10001fd0
lea eax, [ebp - 0x434]
mov ecx, 0x820
push eax
lea ebx, [ebp - 0x430]
mov dword [ebp - 0x434], ecx
call fcn.10002050
push eax
push str.PackageName
push edi
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov esi, ebx
mov edi, eax
call fcn.10001fd0
test edi, edi
jne 0x1000172c
mov ecx, dword [ebp - 0x430]
push ecx
mov ecx, dword [ebp - 0x42c]
lea edx, [ebp - 0x444]
push edx
call fcn.10002210
add esp, 8
mov edi, eax
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.100018e0
lea esi, [ebp - 0x444]
mov byte [ebp - 4], 3
call fcn.100018b0
mov esi, dword [ebp - 0x42c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, dword [ebp - 0x424]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100016be
mov esi, dword [ebp - 0x440]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000169b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000169b
lea esi, [ebp - 0x42c]
call fcn.100018b0
lea esi, [ebp - 0x430]
call fcn.100018b0
lea esi, [ebp - 0x428]
call fcn.100018b0
lea esi, [ebp - 0x424]
call fcn.100018b0
mov eax, 0x10a
jmp 0x10001802
mov eax, dword [esi]
mov ecx, dword [ebp - 0x424]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100016f4
lea edi, [ebp - 0x424]
mov eax, esi
call fcn.100018e0
lea esi, [ebp - 0x42c]
call fcn.100018b0
lea esi, [ebp - 0x430]
call fcn.100018b0
lea esi, [ebp - 0x428]
call fcn.100018b0
lea esi, [ebp - 0x424]
call fcn.100018b0
mov eax, 0xd
jmp 0x10001802
mov edi, dword [esi]
lea esi, [ebp - 0x438]
mov dword [ebp - 0x438], 0
call fcn.100021e0
push eax
push 1
push edi
call dword [sym.imp.msi.dll_MsiOpenProductW]
mov edi, eax
test edi, edi
je 0x1000175f
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x1000172c
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea esi, [ebp - 0x42c]
call fcn.100018b0
lea esi, [ebp - 0x430]
call fcn.100018b0
lea esi, [ebp - 0x428]
call fcn.100018b0
lea esi, [ebp - 0x424]
call fcn.100018b0
mov eax, edi
jmp 0x10001802
mov edx, dword [ebp - 0x43c]
mov ebx, dword [ebp - 0x438]
push edx
call section..text
add esp, 4
test al, al
mov eax, dword [ebp - 0x438]
jne 0x100017bc
test eax, eax
je 0x10001789
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea esi, [ebp - 0x42c]
call fcn.100018b0
lea esi, [ebp - 0x430]
call fcn.100018b0
lea esi, [ebp - 0x428]
call fcn.100018b0
lea esi, [ebp - 0x424]
call fcn.100018b0
mov eax, 0x643
jmp 0x10001802
push eax
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x100017d4
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea esi, [ebp - 0x42c]
call fcn.100018b0
lea esi, [ebp - 0x430]
call fcn.100018b0
lea esi, [ebp - 0x428]
call fcn.100018b0
lea esi, [ebp - 0x424]
call fcn.100018b0
xor eax, eax
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.1000b608
mov esp, ebp
pop ebp
ret