Function at 0x10029970
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100753ef
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100c0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc8]
push eax
mov edx, str.__OriginalDatabase__
mov ecx, esi
call fcn.10034c50
add esp, 4
lea ecx, [ebp - 0x88]
mov edx, esi
call fcn.100294f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x100]
call fcn.10016ba0
mov esi, dword [ebp - 0xc4]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029a80
sub ecx, edx
sar ecx, 1
mov byte [ebp - 4], 8
push 1
push 0x100a6c0c
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.10020710
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x10029ab5
mov ecx, dword [eax]
push 1
push 0x100a6c0c
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10020960
add esp, 0x10
mov dword [ebp - 0xb0], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.10005610
push 1
sub esp, 0x18
lea eax, [ebp - 0x28]
mov dword [ebp - 0xa4], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x104], esp
push eax
call fcn.100057f0
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.1001e9b0
add esp, 0x18
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.1001ef80
mov byte [ebp - 4], 0xd
mov eax, 1
mov dword [ebp - 0xb0], eax
and eax, 0xfffffffe
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.10005610
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x88]
call fcn.100296d0
test al, al
jne 0x10029b6f
mov dword [ebp - 0xa4], 0
jmp 0x1002a32b
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xa4]
push eax
xor edi, edi
push 0x100a416c
mov dword [ebp - 0xbc], edi
mov esi, dword [ebp - 0xa8]
push str.ProductCode
push esi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xa4], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea edx, [edi + 2]
cmp eax, 0xea
jne 0x10029c0e
mov esi, dword [ebp - 0xa4]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0xa4], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xa4]
push eax
push edi
mov dword [ebp - 0xbc], edi
push str.ProductCode
mov dword [ebp - 0xc0], esi
mov esi, dword [ebp - 0xa8]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov ecx, edi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029c30
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10002cb0
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.100293a0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10029c99
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.10005610
mov byte [ebp - 0xa9], 1
jmp 0x10029cac
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.10005610
mov byte [ebp - 0xa9], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x10029ce7
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10029cdc
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002a59c
test ecx, ecx
je 0x10029ce7
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0xdc]
push eax
mov edx, str.AI_SKIP_MSI_ELEVATION
mov ecx, esi
call fcn.10034bb0
add esp, 4
cmp dword [ebp - 0xdc], 2
jne 0x10029d3a
mov eax, dword [ebp - 0xd8]
cmp word [eax], 0x31
je 0x1002a2d5
call fcn.1001a770
test al, al
jne 0x1002a2d5
cmp byte [ebp - 0xa9], al
jne 0x1002a2d5
push 0x100a4178
push str.AiSkipUserExit
push esi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x10c]
push eax
mov edx, str._SystemFolder_msiexec.exe
mov ecx, esi
call fcn.10034c50
add esp, 4
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0xa4]
push eax
push 0x100a416c
push str.CLIENTPROCESSID
mov dword [ebp - 0xb4], 0
push esi
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa4], 0
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10029e35
mov esi, dword [ebp - 0xa4]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0xa4], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb4], eax
push ecx
push eax
push str.CLIENTPROCESSID
mov dword [ebp - 0xb8], esi
mov esi, dword [ebp - 0xa8]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push dword [ebp - 0xb4]
call fcn.1005d92e
add esp, 4
lea ecx, [ebp - 0x70]
mov edx, eax
call fcn.1001a870
mov byte [ebp - 4], 0x25
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 0x26
lea edx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 7
mov ecx, dword [ebp - 0x60]
cmova edx, dword [ebp - 0x70]
push 1
push 1
sub esp, 8
mov eax, esp
push ecx
push edx
lea ecx, [ebp - 0xd4]
mov dword [eax], 0x100a6b34
mov dword [eax + 4], 1
call fcn.100203f0
mov ecx, dword [ebp - 0xd4]
add esp, 0x18
mov edx, dword [ebp - 0xc4]
lea ecx, [ecx + 0x30]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10029ec0
sub edx, esi
sar edx, 1
push edx
push dword [ebp - 0xc4]
call fcn.10006ea0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x100a6b34
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.10002cb0
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x58]
call fcn.100204b0
add esp, 4
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
mov byte [ebp - 4], 0x2a
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 0xc
jb 0x1002a592
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
push ecx
cmova eax, dword [ebp - 0x58]
push eax
push 0xc
push str._RunAsAdmin
push ecx
push dword [ebp - 0x104]
lea ecx, [ebp - 0x28]
call fcn.10006540
mov esi, dword [ebp - 0xb0]
lea ecx, [ebp - 0x58]
or esi, 2
mov dword [ebp - 0xb0], esi
call fcn.10005610
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
and esi, 0xfffffffd
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0xb0], esi
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
mov ecx, edi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029fd0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10002cb0
mov byte [ebp - 4], 0x2b
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.100293a0
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push 0
cmova eax, dword [ebp - 0x28]
push 2
push 2
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x1002a028
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x28]
call fcn.10005610
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x40]
call fcn.10005610
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x88]
cmova eax, dword [ebp - 0x58]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001e6e0
mov esi, eax
mov byte [ebp - 4], 0x2d
cmp dword [esi + 0x14], 7
jbe 0x1002a06e
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [ebp - 0xa8]
mov edx, esi
push ecx
mov ecx, eax
call fcn.10029080
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
test esi, esi
je 0x1002a182
mov ecx, edi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a0b7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10002cb0
mov byte [ebp - 4], 0x2e
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.100293a0
mov byte [ebp - 4], 0x30
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x1002a11a
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1002a10f
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002a597
test ecx, ecx
je 0x1002a11a
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x14], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002a156
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 0xffff
jne 0x1002a176
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
mov dword [ebp - 0xa4], 0
jmp 0x1002a18c
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
mov dword [ebp - 0xa4], 0x642
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x58]
call fcn.10005610
mov byte [ebp - 4], 0x25
mov esi, dword [ebp - 0xd4]
test esi, esi
je 0x1002a232
mov eax, dword [ebp - 0xd0]
cmp esi, eax
je 0x1002a1d0
mov edi, eax
mov ecx, esi
call fcn.10005610
add esi, 0x18
cmp esi, edi
jne 0x1002a1b6
mov esi, dword [ebp - 0xd4]
mov edi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xcc]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x1002a209
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002a59c
test esi, esi
je 0x1002a214
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x5c]
cmp eax, 7
jbe 0x1002a26d
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1002a262
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002a59c
test ecx, ecx
je 0x1002a26d
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 0x23
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x1002a296
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x1002a2bf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
jmp 0x1002a2df
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x1002a2f4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 0xe
test edi, edi
je 0x1002a317
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.10005610
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x100]
call fcn.1001f690
mov byte [ebp - 4], 0x38
mov esi, dword [ebp - 0xe8]
test esi, esi
je 0x1002a3f0
mov edi, dword [ebp - 0xe4]
mov dword [ebp - 0xa8], esi
cmp esi, edi
je 0x1002a38e
nop dword [eax + eax]
mov byte [ebp - 4], 0x38
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xa8], esi
cmp esi, edi
jne 0x1002a370
mov esi, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe0]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x1002a3c7
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002a59c
test esi, esi
je 0x1002a3d2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0x37
mov esi, dword [ebp - 0xf4]
test esi, esi
je 0x1002a492
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xa8], esi
cmp esi, edi
je 0x1002a430
mov byte [ebp - 4], 0x37
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xa8], esi
cmp esi, edi
jne 0x1002a412
mov esi, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xec]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x1002a469
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002a59c
test esi, esi
je 0x1002a474
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x100]
test esi, esi
je 0x1002a534
mov edi, dword [ebp - 0xfc]
mov dword [ebp - 0xa8], esi
cmp esi, edi
je 0x1002a4d2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xa8], esi
cmp esi, edi
jne 0x1002a4b4
mov esi, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xf8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov ecx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x1002a50b
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002a59c
test esi, esi
je 0x1002a516
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.10005610
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x1002a55b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053e7d
mov esp, ebp
pop ebp
ret 4
call fcn.10002810
call fcn.100590cf
call fcn.100590cf
int3