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

Disassembly:
mov eax, 0x484b6e
call fcn.0046746c
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
call fcn.0041e343
test eax, eax
je 0x422959
xor esi, esi
cmp dword [0x4ab310], esi
jne 0x42253b
push 0x41b74a
call fcn.0046919b
pop ecx
mov dword [0x4ab310], eax
mov ecx, dword [ebp + 8]
push 1
pop ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.004042dd
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
call fcn.00438f47
mov edi, eax
cmp edi, esi
je 0x4225bd
lea eax, [ebp + 0xb]
push ebx
push eax
push str.C:Codebasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 2
cmp eax, esi
jne 0x42257f
mov eax, 0x48b67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push str.Error_opening_MSI_database:__d
push eax
mov dword [ebp - 0x24], 0xc37
call fcn.0040a552
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x18], esi
je 0x422959
push dword [ebp - 0x18]
call fcn.00438f11
jmp 0x422959
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push str.SELECT__FROM__Binary_
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call fcn.00438f8f
mov edi, eax
cmp edi, esi
je 0x42264b
lea eax, [ebp + 0xb]
push ebx
push eax
push str.C:Codebasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, esi
jne 0x422600
mov eax, 0x48b67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push str.Failed_to_query_Binary_table__error:__d
push eax
mov dword [ebp - 0x24], 0xc41
call fcn.0040a552
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401093
cmp dword [ebp - 0x14], esi
je 0x422635
push dword [ebp - 0x14]
call fcn.00438f11
cmp dword [ebp - 0x1c], esi
je 0x4225a7
push dword [ebp - 0x1c]
call fcn.00438f11
jmp 0x4225a7
push esi
push dword [ebp - 0x1c]
call fcn.00438f7d
mov edi, eax
cmp edi, esi
je 0x4226a1
lea eax, [ebp + 0xb]
push ebx
push eax
push str.C:Codebasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
cmp eax, esi
jne 0x42267c
mov eax, 0x48b67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a3014
push eax
mov dword [ebp - 0x24], 0xc48
call fcn.0040a552
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
jmp 0x422623
cmp dword [ebp - 0x14], esi
je 0x4226ae
push dword [ebp - 0x14]
call fcn.00438f11
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x1c]
call fcn.00438f6b
cmp eax, esi
jne 0x42290e
lea eax, [ebp - 0x29]
mov edi, 0x48b6a0
push esi
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x48b6a8
mov dword [ebp - 0x84], edi
call fcn.00403cd9
mov eax, 0x104
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 7
push eax
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 8
call fcn.004042dd
lea ecx, [ebp - 0x20]
mov dword [esi + 8], eax
push ecx
push eax
push ebx
push dword [ebp - 0x14]
call fcn.00438f59
cmp eax, 0xea
lea ecx, [ebp - 0xd4]
sete bl
mov byte [ebp - 4], 7
call fcn.00403013
test bl, bl
je 0x422788
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 9
call fcn.004042dd
lea ecx, [ebp - 0x20]
mov dword [esi + 8], eax
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.00438f59
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
call fcn.00403013
mov eax, 0x4a0cf0
mov esi, 0x48b6a8
mov ecx, eax
mov dword [ebp - 0x54], esi
test ecx, ecx
mov dword [ebp - 0x34], edi
jne 0x4227a3
mov eax, 0x4aa140
xor ebx, ebx
lea ecx, [ebp - 0x2a]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00404d89
lea eax, [ebp - 0x54]
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00402e4a
cmp eax, ebx
lea ecx, [ebp - 0x54]
sete byte [ebp + 0xb]
mov byte [ebp - 4], 7
call fcn.00402438
cmp byte [ebp + 0xb], bl
je 0x4228f5
lea eax, [ebp - 0x2b]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xdc], edi
call fcn.00403cd9
lea eax, [ebp - 0x2c]
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x5c], edi
call fcn.00403cd9
mov edi, 0x104
lea eax, [ebp - 0xbc]
push edi
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 0xd
call fcn.004042dd
push eax
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
call fcn.00403013
lea eax, [ebp - 0xc8]
push edi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 0xe
call fcn.004042dd
mov edi, eax
lea ecx, [ebp - 0xfc]
mov dword [esi + 8], edi
call fcn.004042dd
push edi
push ebx
push 0x4a3010
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
call fcn.00403013
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.004042dd
push 1
push 2
push eax
push esi
call fcn.00422979
add esp, 0x10
test eax, eax
jne 0x4228da
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x7c]
push eax
call fcn.00422cbd
lea ecx, [ebp - 0x7c]
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.00402438
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.00402438
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00402438
push 1
xor esi, esi
pop ebx
jmp 0x4226a1
cmp dword [ebp - 0x14], esi
je 0x42291b
push dword [ebp - 0x14]
call fcn.00438f11
cmp dword [ebp - 0x1c], esi
je 0x422928
push dword [ebp - 0x1c]
call fcn.00438f11
cmp dword [ebp - 0x18], esi
je 0x42293f
push dword [ebp - 0x18]
call fcn.00438f11
jmp 0x42293f
mov eax, dword [0x4ab310]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x422959
push eax
call fcn.0046919b
pop ecx
mov dword [0x4ab310], esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
leave
ret 4