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

Disassembly:
push 0x144
mov eax, 0x4957a4
call fcn.00459bf1
mov esi, ecx
mov dword [ebp - 0xf0], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe8], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xec], ebx
call fcn.004338d6
test eax, eax
jne 0x42eadc
xor al, al
jmp 0x42f0c8
call fcn.0042850f
mov dword [ebp - 4], ebx
mov dword [ebp - 0xdc], ebx
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0xdc], 0
je 0x42eb04
push dword [ebp - 0xdc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xe8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x42eb1c
mov eax, dword [eax]
lea ecx, [ebp - 0xdc]
push ecx
push 0
push eax
call sub.msi.dll_MsiOpenProductW
test eax, eax
je 0x42eb79
mov dword [ebp - 0xfc], str.C:CodeBasesisdevSrcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0xf8], 0x8bc
push eax
push str.Error_opening_MSI_database:__d
lea eax, [ebp - 0xfc]
push eax
call fcn.00415eae
add esp, 0xc
mov byte [ebp - 4], 0
cmp dword [ebp - 0xdc], 0
je 0x42ead5
push dword [ebp - 0xdc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x42ead5
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
call fcn.0040f080
mov ecx, dword [eax + 0x268]
call fcn.004210bf
mov byte [ebp - 4], 2
lea esi, [edi + 4]
add eax, 4
push eax
mov ecx, esi
call fcn.00407b80
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa4]
call fcn.00404cc0
cmp dword [edi + 0x14], 0
jne 0x42ecf4
push 0x104
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
call fcn.0041c824
mov byte [ebp - 4], 4
mov byte [eax + 4], bl
mov ecx, dword [eax]
call fcn.004140be
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.0041132b
call fcn.00463421
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0xe8], esp
push ebx
test al, al
je 0x42ec34
push edi
call fcn.00410809
mov byte [ebp - 4], 5
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], bl
call fcn.0045d8f9
add esp, 0x34
mov ecx, eax
mov byte [ebp - 4], 6
mov eax, ebx
jmp 0x42ec8e
lea eax, [ebp - 0xd5]
push eax
push 0x4b65d4
call fcn.0041099e
mov dword [ebp - 4], 7
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0xf8], esp
push ebx
lea eax, [ebp - 0xd5]
push eax
push 0x4b65d4
call fcn.0041099e
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 6
call fcn.0045de0b
add esp, 0x68
mov ecx, eax
mov dword [ebp - 4], 9
push 2
pop eax
mov dword [ebp - 0xec], eax
lea eax, [ecx + 4]
push eax
mov ecx, esi
call fcn.00407b80
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xec]
test al, 2
je 0x42ecd5
and eax, 0xfffffffd
mov dword [ebp - 0xec], eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa4]
call fcn.00404cc0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 4], ebx
test bl, al
je 0x42ecf4
and eax, 0xfffffffe
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x74]
call fcn.00404cc0
lea ecx, [ebp - 0x110]
call fcn.00410db9
mov byte [ebp - 4], 0xc
cmp dword [esi + 0x14], 8
jb 0x42ed0b
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x110]
call fcn.004131af
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x110]
call fcn.00411324
and dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0xd
and dword [ebp - 0xe4], 0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0xdc]
cmp dword [ebp - 0xe0], 0
je 0x42ed55
push dword [ebp - 0xe0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [ebp - 0xe0], 0
lea eax, [ebp - 0xe0]
push eax
push str.SELECT__FROM__Binary_
push esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x42edd3
mov dword [ebp - 0xf4], str.C:CodeBasesisdevSrcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0xf0], 0x8d2
push eax
push str.Failed_to_query_Binary_table__error:__d
lea eax, [ebp - 0xf4]
push eax
call fcn.00415eae
add esp, 0xc
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xe4], 0
je 0x42edb3
push dword [ebp - 0xe4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], bl
cmp dword [ebp - 0xe0], 0
je 0x42eb58
push dword [ebp - 0xe0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x42eb58
push 0
push dword [ebp - 0xe0]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x42ee06
mov dword [ebp - 0x104], str.C:CodeBasesisdevSrcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0x100], 0x8d9
push eax
push str.Failed_to_execute_query_on_Binary_table__error:__d
lea eax, [ebp - 0x104]
jmp 0x42ed92
mov esi, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe4]
call fcn.0042b13c
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x42f067
push ebx
lea eax, [ebp - 0xd5]
push eax
lea ecx, [ebp - 0x74]
call fcn.004060a0
mov byte [ebp - 4], 0xf
mov eax, 0x104
mov dword [ebp - 0xe8], eax
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x74]
call fcn.0041c824
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0xe4]
mov byte [eax + 4], bl
mov ecx, dword [eax]
call fcn.004140be
lea ecx, [ebp - 0xe8]
push ecx
push dword [eax]
push ebx
push esi
call sub.msi.dll_MsiRecordSetStreamA
mov esi, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x128]
call fcn.0041132b
cmp esi, 0xea
jne 0x42eee1
mov eax, dword [ebp - 0xe8]
inc eax
mov dword [ebp - 0xe8], eax
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x74]
call fcn.0041c824
mov byte [ebp - 4], 0x11
mov byte [eax + 4], bl
mov ecx, dword [eax]
call fcn.004140be
lea ecx, [ebp - 0xe8]
push ecx
push dword [eax]
push ebx
push dword [ebp - 0xe4]
call sub.msi.dll_MsiRecordSetStreamA
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x134]
call fcn.0041132b
push ebx
lea eax, [ebp - 0xd5]
push eax
push 0x4a7c68
lea ecx, [ebp - 0xa4]
call fcn.0041099e
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x74]
call fcn.004362f9
mov byte [ebp - 0xd5], al
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa4]
call fcn.00404cc0
cmp byte [ebp - 0xd5], 0
je 0x42f052
push ebx
lea eax, [ebp - 0xd5]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004060a0
mov byte [ebp - 4], 0x14
push ebx
lea eax, [ebp - 0xd5]
push eax
lea ecx, [ebp - 0x44]
call fcn.004060a0
mov byte [ebp - 4], 0x15
mov esi, 0x104
push esi
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0041c824
mov byte [ebp - 4], 0x16
mov byte [eax + 4], bl
mov ecx, dword [eax]
call fcn.004140be
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x140]
call fcn.0041132b
push esi
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041c824
mov byte [ebp - 4], 0x17
mov byte [eax + 4], bl
mov ecx, dword [eax]
call fcn.004140be
lea ecx, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 8
cmovae ecx, dword [ebp - 0xd0]
push dword [eax]
push 0
push 0x4ac458
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x14c]
call fcn.0041132b
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push ebx
push 2
push eax
push dword [ebp - 0xe4]
call fcn.0042e865
add esp, 0x10
test eax, eax
jne 0x42f02f
push edi
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0xf0]
call fcn.0042f0d0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x44]
call fcn.00404cc0
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd4]
call fcn.00404cc0
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x74]
call fcn.00404cc0
jmp 0x42ee06
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xe4], 0
je 0x42f07f
push dword [ebp - 0xe4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], bl
cmp dword [ebp - 0xe0], 0
je 0x42f096
push dword [ebp - 0xe0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 0
cmp dword [ebp - 0xdc], 0
je 0x42f0ae
push dword [ebp - 0xdc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
jmp 0x42f0c1
call fcn.004287a4
mov al, bl
call fcn.00459b43
ret 8