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

Disassembly:
mov eax, 0x470b72
call fcn.0045454c
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
call fcn.0041e609
test eax, eax
je 0x422ef4
xor ebx, ebx
cmp dword [0x496a08], ebx
jne 0x422acc
push 0x41b8a0
call fcn.00455d21
pop ecx
mov dword [0x496a08], eax
mov eax, dword [ebp + 8]
push 1
pop edi
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 8]
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x422ae4
mov eax, 0x476650
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
call fcn.00438f4d
mov esi, eax
cmp esi, ebx
je 0x422b55
lea eax, [ebp + 0xb]
push edi
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x422b17
mov eax, 0x4765fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push str.Error_opening_MSI_database:__d
push eax
mov dword [ebp - 0x24], 0xc32
call fcn.0040a580
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x18], ebx
je 0x422ef4
push dword [ebp - 0x18]
call fcn.00438f17
jmp 0x422ef4
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push str.SELECT__FROM__Binary_
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call fcn.00438f95
mov esi, eax
cmp esi, ebx
je 0x422be3
lea eax, [ebp + 0xb]
push edi
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x422b98
mov eax, 0x4765fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push str.Failed_to_query_Binary_table__error:__d
push eax
mov dword [ebp - 0x24], 0xc3c
call fcn.0040a580
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401093
cmp dword [ebp - 0x14], ebx
je 0x422bcd
push dword [ebp - 0x14]
call fcn.00438f17
cmp dword [ebp - 0x1c], ebx
je 0x422b3f
push dword [ebp - 0x1c]
call fcn.00438f17
jmp 0x422b3f
push ebx
push dword [ebp - 0x1c]
call fcn.00438f83
mov esi, eax
cmp esi, ebx
je 0x422c39
lea eax, [ebp + 0xb]
push edi
push eax
push str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x422c14
mov eax, 0x4765fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48d58c
push eax
mov dword [ebp - 0x24], 0xc43
call fcn.0040a580
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
jmp 0x422bbb
mov edi, 0x476620
mov esi, 0x104
cmp dword [ebp - 0x14], ebx
je 0x422c50
push dword [ebp - 0x14]
call fcn.00438f17
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x1c]
call fcn.00438f71
cmp eax, ebx
jne 0x422eb2
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x476628
mov dword [ebp - 0x84], edi
call fcn.00403bf5
lea eax, [ebp - 0xbc]
push esi
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], esi
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.00438f5f
cmp eax, 0xea
lea ecx, [ebp - 0xbc]
sete bl
mov byte [ebp - 4], 7
call fcn.00402ebf
test bl, bl
je 0x422d23
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.00438f5f
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00402ebf
mov eax, 0x48ae3c
mov dword [ebp - 0x54], 0x476628
mov ecx, eax
mov dword [ebp - 0x34], edi
test ecx, ecx
jne 0x422d3d
mov eax, 0x4947d8
lea ecx, [ebp - 0x29]
push 0
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00403cfd
lea eax, [ebp - 0x54]
push 0
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.0040582a
test eax, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
sete bl
call fcn.00402424
test bl, bl
je 0x422e96
lea eax, [ebp - 0x2a]
mov ebx, 0x476628
push 0
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xdc], edi
call fcn.00403bf5
lea eax, [ebp - 0x2b]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x5c], edi
call fcn.00403bf5
lea eax, [ebp - 0xb0]
push esi
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
mov byte [eax + 4], 1
call fcn.00403dc2
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xc
call fcn.00402ebf
lea eax, [ebp - 0xc8]
push esi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
mov byte [eax + 4], 1
call fcn.00403dc2
mov ecx, dword [ebp - 0xf4]
mov eax, dword [eax]
test ecx, ecx
mov ebx, 0x476650
jne 0x422e24
mov ecx, ebx
push eax
push 0
push 0x48d584
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
call fcn.00402ebf
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x422e4b
mov eax, ebx
push 1
push 2
push eax
push dword [ebp - 0x14]
call fcn.00422f14
add esp, 0x10
test eax, eax
jne 0x422e7b
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042325a
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x422e74
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.00402424
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.00402424
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00402424
xor ebx, ebx
jmp 0x422c43
cmp dword [ebp - 0x14], ebx
je 0x422ebf
push dword [ebp - 0x14]
call fcn.00438f17
cmp dword [ebp - 0x1c], ebx
je 0x422ecc
push dword [ebp - 0x1c]
call fcn.00438f17
cmp dword [ebp - 0x18], ebx
je 0x422ed9
push dword [ebp - 0x18]
call fcn.00438f17
mov eax, dword [0x496a08]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x422ef4
push eax
call fcn.00455d21
and dword [0x496a08], 0
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
leave
ret 4