Function at 0x4169e7
Capabilities:
Copy file
Get common file path
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x46b880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x914], eax
xor eax, eax
test ebx, ebx
je 0x416faf
push esi
push edi
push 7
pop ecx
mov word [ebp - 0x8e0], ax
xor edi, edi
mov word [ebp - 0x8f8], ax
lea eax, [ebp - 0x908]
push eax
push edi
push ebx
mov dword [ebp - 0x8d0], edi
mov dword [ebp - 0x8cc], ecx
mov dword [ebp - 0x8e8], edi
mov dword [ebp - 0x8e4], ecx
mov dword [ebp - 0x908], edi
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x416cae
push str.SELECT__Property_._Value__FROM__Property__WHERE__Property_._Property_ProductCode
lea ecx, [ebp - 0x8c8]
mov dword [ebp - 0x8fc], edi
mov dword [ebp - 0x900], edi
call fcn.004090db
cmp dword [ebp - 0x8fc], edi
je 0x416a89
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8b4], 8
lea ecx, [ebp - 0x8fc]
lea eax, [ebp - 0x8c8]
mov dword [ebp - 0x8fc], edi
cmovae eax, dword [ebp - 0x8c8]
push ecx
push eax
push dword [ebp - 0x908]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x416fbe
push edi
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x416fbe
cmp dword [ebp - 0x900], edi
je 0x416ae5
push dword [ebp - 0x900]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x900]
mov dword [ebp - 0x900], edi
push eax
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x416fbe
push 0x80
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00425c30
add esp, 0xc
mov dword [ebp - 0x904], 0x40
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push dword [ebp - 0x900]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x416fbe
lea eax, [ebp - 0x84]
push eax
call fcn.0042d325
pop ecx
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x8e0]
call fcn.004092cf
push dword [ebp - 0x900]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiViewGetErrorW
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, str.SELECT__Property_._Value__FROM__Property__WHERE__Property_._Property_ProductVersion
push esi
call fcn.0042d325
pop ecx
push eax
push esi
lea ecx, [ebp - 0x8c8]
call fcn.004092cf
cmp dword [ebp - 0x8fc], edi
je 0x416bb4
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8b4], 8
lea ecx, [ebp - 0x8fc]
lea eax, [ebp - 0x8c8]
mov dword [ebp - 0x8fc], edi
cmovae eax, dword [ebp - 0x8c8]
push ecx
push eax
push dword [ebp - 0x908]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x416fbe
push edi
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x416fbe
cmp dword [ebp - 0x900], edi
je 0x416c10
push dword [ebp - 0x900]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x900]
mov dword [ebp - 0x900], edi
push eax
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x416fbe
lea eax, [ebp - 0x904]
mov dword [ebp - 0x904], 0x40
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push dword [ebp - 0x900]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x416fbe
lea eax, [ebp - 0x84]
push eax
call fcn.0042d325
pop ecx
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x8f8]
call fcn.004092cf
lea ecx, [ebp - 0x8c8]
call fcn.004086f1
cmp dword [ebp - 0x900], edi
je 0x416c9b
push dword [ebp - 0x900]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8fc], edi
je 0x416cae
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8d0], edi
je 0x416f81
cmp dword [ebp - 0x8e8], edi
je 0x416f81
mov esi, 0x20a
lea eax, [ebp - 0x6a8]
push esi
push edi
push eax
call fcn.00425c30
add esp, 0xc
mov dword [ebp - 0x910], 0x104
cmp dword [ebp - 0x8cc], 8
lea ecx, [ebp - 0x910]
lea eax, [ebp - 0x8e0]
cmovae eax, dword [ebp - 0x8e0]
push ecx
lea ecx, [ebp - 0x6a8]
push ecx
push str.PackageName
push eax
call sub.msi.dll_MsiGetPropertyW
test eax, eax
je 0x416d29
cmp eax, 0x645
je 0x416d29
cmp eax, 0x648
jne 0x416f81
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.004090db
cmp dword [ebp - 0x8b8], edi
jne 0x416d8b
push ebx
call fcn.0042d325
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x8c8]
call fcn.004092cf
push 0x5c
push ebx
call fcn.004281a3
pop ecx
pop ecx
test eax, eax
je 0x416d8b
push 0x5c
push ebx
call fcn.004281a3
lea esi, [eax + 2]
push esi
call fcn.0042d325
add esp, 0xc
lea ecx, [ebp - 0x8c8]
push eax
push esi
call fcn.004092cf
mov esi, 0x20a
push esi
lea eax, [ebp - 0x290]
push edi
push eax
call fcn.00425c30
push esi
lea eax, [ebp - 0x49c]
push edi
push eax
call fcn.00425c30
add esp, 0x18
lea eax, [ebp - 0x8b0]
push eax
push edi
push edi
push 0x8023
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x416f76
push 0x80
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00425c30
cmp dword [ebp - 0x8e4], 8
lea eax, [ebp - 0x8f8]
mov dword [ebp - 0x90c], edi
cmovae eax, dword [ebp - 0x8f8]
push eax
mov dword [ebp - 0x8fc], edi
mov dword [ebp - 0x900], edi
mov dword [ebp - 0x904], edi
call fcn.0042d262
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416f76
push edi
push 0x44ffb4
push esi
call fcn.0043116e
add esp, 0xc
test eax, eax
je 0x416e38
push eax
call fcn.0042f09f
pop ecx
mov dword [ebp - 0x90c], eax
push edi
push 0x44ffb4
push edi
call fcn.0043116e
add esp, 0xc
test eax, eax
je 0x416e58
push eax
call fcn.0042f09f
pop ecx
mov dword [ebp - 0x8fc], eax
push edi
push 0x44ffb4
push edi
call fcn.0043116e
add esp, 0xc
test eax, eax
je 0x416e78
push eax
call fcn.0042f09f
pop ecx
mov dword [ebp - 0x900], eax
push edi
push 0x44ffb4
push edi
call fcn.0043116e
add esp, 0xc
test eax, eax
je 0x416e98
push eax
call fcn.0042f09f
pop ecx
mov dword [ebp - 0x904], eax
push esi
call fcn.0042d6f6
push dword [ebp - 0x904]
lea eax, [ebp - 0x84]
push dword [ebp - 0x900]
push dword [ebp - 0x8fc]
push dword [ebp - 0x90c]
push str._d._d._d._04d
push 0x40
push eax
call fcn.00408fc5
cmp dword [ebp - 0x8cc], 8
lea ecx, [ebp - 0x84]
push ecx
lea eax, [ebp - 0x8e0]
mov esi, 0x105
cmovae eax, dword [ebp - 0x8e0]
push eax
lea eax, [ebp - 0x8b0]
push eax
push str._sApplicationsCache_s_s_
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00408fc5
lea eax, [ebp - 0x290]
push eax
call fcn.0041679f
cmp dword [ebp - 0x8b4], 8
lea eax, [ebp - 0x8c8]
cmovae eax, dword [ebp - 0x8c8]
push eax
lea eax, [ebp - 0x290]
push eax
push str._s_s
lea eax, [ebp - 0x49c]
push esi
push eax
call fcn.00408fc5
add esp, 0x50
lea eax, [ebp - 0x49c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x416f76
push ebx
call fcn.0042f11b
mov esi, dword [ebp - 0x914]
pop ecx
test esi, esi
je 0x416f73
lea eax, [ebp - 0x49c]
push eax
call fcn.0042d262
pop ecx
mov dword [esi], eax
xor edi, edi
inc edi
lea ecx, [ebp - 0x8c8]
call fcn.004086f1
cmp dword [ebp - 0x908], 0
je 0x416f95
push dword [ebp - 0x908]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x8f8]
call fcn.004086f1
lea ecx, [ebp - 0x8e0]
call fcn.004086f1
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423dc5
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x8c8]
call fcn.004086f1
cmp dword [ebp - 0x900], edi
je 0x416fdc
push dword [ebp - 0x900]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x8fc], edi
je 0x416f81
push dword [ebp - 0x8fc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x416f81