Function at 0x42b4ce
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x88
mov eax, 0x4a5ad3
call fcn.00466ec3
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp + 0xa8]
call fcn.004221ac
test eax, eax
je 0x42b851
call fcn.0042084c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
cmp dword [esi + 0x1c], 8
jb 0x42b527
mov esi, dword [esi + 8]
jmp 0x42b52a
add esi, 8
lea ecx, [ebp - 0x18]
call fcn.0041f70e
push eax
push ebx
push esi
call sub.msi.dll_MsiOpenProductW
cmp eax, ebx
je 0x42b578
mov dword [ebp - 0x2c], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0x28], 0xc40
push eax
push str.Error_opening_MSI_database:__d
lea eax, [ebp - 0x2c]
push eax
call fcn.004113cc
add esp, 0xc
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
je 0x42b851
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x42b851
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.0041f70e
push eax
push str.SELECT__FROM__Binary_
push esi
call sub.msi.dll_MsiEnumClientsA
cmp eax, ebx
je 0x42b5e8
mov dword [ebp - 0x34], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0x30], 0xc4a
push eax
push str.Failed_to_query_Binary_table__error:__d
lea eax, [ebp - 0x34]
push eax
call fcn.004113cc
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], ebx
je 0x42b5d2
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], ebx
je 0x42b55e
push dword [ebp - 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x42b55e
push ebx
push dword [ebp - 0x20]
call sub.msi.dll_MsiViewModify
cmp eax, ebx
je 0x42b60e
mov dword [ebp - 0x40], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0x3c], 0xc51
push eax
push str.Failed_to_execute_query_on_Binary_table__error:__d
lea eax, [ebp - 0x40]
jmp 0x42b5b8
mov esi, 0x104
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.0041f70e
push eax
push edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, ebx
jne 0x42b815
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp]
call fcn.00401f50
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], esi
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp]
call fcn.0040adc6
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.00407e29
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push dword [ebp - 0x1c]
call sub.msi.dll_MsiRecordSetStreamA
cmp eax, 0xea
sete bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.0040aa24
test bl, bl
je 0x42b6c5
inc dword [ebp - 0x24]
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp]
call fcn.0040adc6
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.00407e29
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push dword [ebp - 0x1c]
call sub.msi.dll_MsiRecordSetStreamA
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.0040aa24
push edi
lea eax, [ebp - 0x11]
push eax
push 0x4b1700
lea ecx, [ebp - 0x90]
call fcn.0040921c
mov byte [ebp - 4], 7
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp + 4]
call fcn.00406c7f
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.004016a0
test bl, bl
je 0x42b802
push edi
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp + 0x34]
call fcn.00401f50
mov byte [ebp - 4], 8
push edi
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp + 0x68]
call fcn.00401f50
mov byte [ebp - 4], 9
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 0x34]
call fcn.0040adc6
mov byte [ebp - 4], 0xa
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.00407e29
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.0040aa24
push esi
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp + 0x68]
call fcn.0040adc6
mov byte [ebp - 4], 0xb
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.00407e29
mov eax, dword [eax]
cmp dword [ebp + 0x50], 8
mov ecx, dword [ebp + 0x3c]
jae 0x42b78b
lea ecx, [ebp + 0x3c]
push eax
push 0
push 0x4b3ef0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.0040aa24
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x42b7b5
lea eax, [ebp + 0x70]
push edi
push 2
push eax
push dword [ebp - 0x1c]
call fcn.00420274
add esp, 0x10
test eax, eax
jne 0x42b7ea
lea eax, [ebp + 0x68]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00428d80
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x42b7e3
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x68]
call fcn.004016a0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x34]
call fcn.004016a0
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.004016a0
xor ebx, ebx
jmp 0x42b613
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], ebx
je 0x42b826
push dword [ebp - 0x1c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], ebx
je 0x42b837
push dword [ebp - 0x20]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
je 0x42b848
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
call fcn.0041f775
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00466e81
add ebp, 0xa0
leave
ret 4