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

Disassembly:
push 0x128
mov eax, 0x4697d0
call fcn.004436be
mov edi, ecx
mov esi, dword [ebp + 8]
call fcn.00429560
test eax, eax
je 0x424f77
call fcn.0042c0c7
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xdc], ebx
mov byte [ebp - 4], 1
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x424b86
mov esi, dword [esi]
lea ecx, [ebp - 0xdc]
call fcn.004203b0
push eax
push ebx
push esi
call sub.msi.dll_MsiOpenProductW
test eax, eax
je 0x424be6
mov dword [ebp - 0x100], str.msiaction.cpp
mov dword [ebp - 0xfc], 0xc39
push eax
push str.Error_opening_MSI_database:__d
lea eax, [ebp - 0x100]
push eax
call fcn.00411a9d
add esp, 0xc
mov byte [ebp - 4], bl
cmp dword [ebp - 0xdc], 0
je 0x424f77
push dword [ebp - 0xdc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x424f77
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xdc]
lea ecx, [ebp - 0xe4]
call fcn.004203b0
push eax
push str.SELECT__FROM__Binary_
push esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x424c7d
mov dword [ebp - 0xf8], str.msiaction.cpp
mov dword [ebp - 0xf4], 0xc43
push eax
push str.Failed_to_query_Binary_table__error:__d
lea eax, [ebp - 0xf8]
push eax
call fcn.00411a9d
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], 0
je 0x424c5c
push dword [ebp - 0xe0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 1
cmp dword [ebp - 0xe4], 0
je 0x424bc6
push dword [ebp - 0xe4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x424bc6
push ebx
push dword [ebp - 0xe4]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x424caf
mov dword [ebp - 0xf0], str.msiaction.cpp
mov dword [ebp - 0xec], 0xc4a
push eax
push str.Failed_to_execute_query_on_Binary_table__error:__d
lea eax, [ebp - 0xf0]
jmp 0x424c3b
mov esi, dword [ebp - 0xe4]
lea ecx, [ebp - 0xe0]
call fcn.004203b0
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x424f27
push 1
lea eax, [ebp - 0xd5]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00402580
mov byte [ebp - 4], 4
mov esi, 0x104
mov dword [ebp - 0xe8], esi
push esi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040f9a8
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.0040f94d
lea ecx, [ebp - 0xe8]
push ecx
push dword [eax]
push 1
push dword [ebp - 0xe0]
call sub.msi.dll_MsiRecordSetStreamA
cmp eax, 0xea
sete bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x118]
call fcn.0040cef5
test bl, bl
je 0x424d99
mov eax, dword [ebp - 0xe8]
inc eax
mov dword [ebp - 0xe8], eax
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040f9a8
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.0040f94d
lea ecx, [ebp - 0xe8]
push ecx
push dword [eax]
push 1
push dword [ebp - 0xe0]
call sub.msi.dll_MsiRecordSetStreamA
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.0040cef5
push 1
lea eax, [ebp - 0xd5]
push eax
push 0x478678
lea ecx, [ebp - 0xa4]
call fcn.0040cbd7
mov byte [ebp - 4], 7
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
cmovae eax, dword [ebp - 0xa0]
push dword [ebp - 0x90]
push 0
push eax
lea ecx, [ebp - 0xd0]
call fcn.0040f7bb
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.00401580
test bl, bl
je 0x424f0d
push 1
lea eax, [ebp - 0xd5]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402580
mov byte [ebp - 4], 9
push 1
lea eax, [ebp - 0xd5]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402580
mov byte [ebp - 4], 0xa
push esi
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040f9a8
mov byte [ebp - 4], 0xb
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.0040f94d
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x124]
call fcn.0040cef5
push esi
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040f9a8
mov byte [ebp - 4], 0xc
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.0040f94d
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae ecx, dword [ebp - 0x70]
push dword [eax]
xor ebx, ebx
push ebx
push 0x47ccb8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10c]
call fcn.0040cef5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push 1
push 2
push eax
push dword [ebp - 0xe0]
call fcn.004243cc
add esp, 0x10
test eax, eax
jne 0x424eeb
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.00424f87
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], 0xd
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x44]
call fcn.00401580
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00401580
jmp 0x424f0f
xor ebx, ebx
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.00401580
jmp 0x424caf
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], 0
je 0x424f3f
push dword [ebp - 0xe0]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], 1
cmp dword [ebp - 0xe4], 0
je 0x424f57
push dword [ebp - 0xe4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [ebp - 4], bl
cmp dword [ebp - 0xdc], 0
je 0x424f6e
push dword [ebp - 0xdc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
or dword [ebp - 4], 0xffffffff
call fcn.0042c2a8
xor al, al
call fcn.00443610
ret 4