Function at 0x1000caca
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
push edi
push str.OriginalDatabase
push dword [ebp + 8]
xor esi, esi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.10003a20
pop ecx
pop ecx
test al, al
jne 0x1000cb12
push dword [esp + 0x20]
call fcn.10002adf
pop ecx
mov eax, 0x65b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
lea eax, [ebx + eax*2]
jmp 0x1000cb27
cmp word [eax], 0x5c
je 0x1000cb2d
dec eax
dec eax
cmp eax, ebx
jae 0x1000cb1f
xor eax, eax
cmp eax, esi
jne 0x1000cb34
push ebx
jmp 0x1000cafe
push dword [ebp + 8]
xor ecx, ecx
mov word [eax + 2], cx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call sub.msi.dll_MsiGetFeatureCostA
mov edi, eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0xc], esi
je 0x1000cb5f
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [esp + 0xc]
push eax
push str.SELECT__Feature__FROM__Feature_
push edi
mov dword [esp + 0x18], esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x1000cba1
cmp edi, esi
je 0x1000cb81
push edi
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0xc], esi
je 0x1000cb90
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x10], esi
je 0x1000cb31
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x1000cb31
push esi
push dword [esp + 0x10]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x1000cbea
cmp edi, esi
je 0x1000cbb9
push edi
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0xc], esi
je 0x1000cbc8
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x10], esi
je 0x1000cbd7
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, 0x65b
push ebx
call fcn.10002adf
pop ecx
mov eax, esi
jmp 0x1000cb09
xor ecx, ecx
push 4
pop edx
mov eax, 0xc8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002ad2
xor ebx, ebx
mov dword [esp + 0x30], eax
xor edi, edi
pop ecx
cmp dword [esp + 0x10], esi
je 0x1000cc1b
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x18], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x1000ccd8
push 1
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.1000418f
push dword [ebp + 8]
lea eax, [esp + 0x20]
call fcn.1000c8a4
add esp, 0xc
test al, al
jne 0x1000cc72
push dword [esp + 0x18]
call fcn.10002adf
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
jmp 0x1000cc0b
push dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x34]
call fcn.10002c93
mov esi, dword [esp + 0x1c]
push esi
call fcn.10002c93
push str..cab
call fcn.10002c93
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1000ccc1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
lea edi, [edi + eax + 1]
mov eax, esi
xor esi, esi
mov dword [ecx + ebx*4], eax
inc ebx
push esi
call fcn.10002adf
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
xor esi, esi
jmp 0x1000cc0b
cmp edi, esi
jne 0x1000ccdf
xor edi, edi
inc edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea esi, [esp + 0x14]
call fcn.100021c4
mov edi, dword [esp + 0x18]
xor eax, eax
dec ebx
mov word [edi], ax
mov esi, edi
js 0x1000cd34
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + ebx*4]
push 0xffffffffffffffff
mov eax, esi
mov dword [esp + 0x18], ecx
call fcn.10002caa
mov esi, eax
push 0x3b
pop eax
push dword [esp + 0x18]
mov word [esi], ax
inc esi
inc esi
call fcn.10002adf
dec ebx
pop ecx
pop ecx
jns 0x1000ccfe
cmp esi, edi
je 0x1000cd34
xor eax, eax
mov word [esi - 2], ax
push edi
push str.AI_DISABLED_FEATURES
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push edi
call fcn.10002adf
push dword [esp + 0x30]
call fcn.10002adf
xor esi, esi
pop ecx
pop ecx
cmp dword [esp + 0x24], esi
je 0x1000cd64
push dword [esp + 0x24]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0xc], esi
je 0x1000cd73
push dword [esp + 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x10], esi
je 0x1000cd82
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ebx, dword [esp + 0x20]
jmp 0x1000cbdc