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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100661ff
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100ad040]
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.1002ea70
add esp, 4
lea ecx, [ebp - 0x88]
mov edx, esi
call fcn.100232e0
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.10013990
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 0x10023870
sub ecx, edx
sar ecx, 1
mov byte [ebp - 4], 8
push 1
push 0x10096668
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.1001ae50
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x100238a5
mov ecx, dword [eax]
push 1
push 0x10096668
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001b0a0
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.100190f0
add esp, 0x18
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.100196c0
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.100234c0
test al, al
jne 0x1002395f
mov dword [ebp - 0xa4], 0
jmp 0x1002411b
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 0x10093cf4
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 0x100239fe
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 0x10023a20
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.10023190
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 0x10023a89
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 0x10023a9c
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 0x10023ad7
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10023acc
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002438c
test ecx, ecx
je 0x10023ad7
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.1002e9d0
add esp, 4
cmp dword [ebp - 0xdc], 2
jne 0x10023b2a
mov eax, dword [ebp - 0xd8]
cmp word [eax], 0x31
je 0x100240c5
call fcn.10015730
test al, al
jne 0x100240c5
cmp byte [ebp - 0xa9], al
jne 0x100240c5
push 0x10093d00
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.1002ea70
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 0x10093cf4
push 0x10096900
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 0x10023c25
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 0x10096900
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.10055341
add esp, 4
lea ecx, [ebp - 0x70]
mov edx, eax
call fcn.10015830
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], 0x100963dc
mov dword [eax + 4], 1
call fcn.1001ab30
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 0x10023cb0
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 0x100963dc
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.1001abf0
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 0x10024382
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 0x10023dc0
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.10023190
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 0x10023e18
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.10018e20
mov esi, eax
mov byte [ebp - 4], 0x2d
cmp dword [esi + 0x14], 7
jbe 0x10023e5e
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.10022e70
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
test esi, esi
je 0x10023f72
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 0x10023ea7
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.10023190
mov byte [ebp - 4], 0x30
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x10023f0a
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10023eff
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10024387
test ecx, ecx
je 0x10023f0a
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 0x10023f46
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 0x10023f66
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
mov dword [ebp - 0xa4], 0
jmp 0x10023f7c
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 0x10024022
mov eax, dword [ebp - 0xd0]
cmp esi, eax
je 0x10023fc0
mov edi, eax
mov ecx, esi
call fcn.10005610
add esi, 0x18
cmp esi, edi
jne 0x10023fa6
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 0x10023ff9
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002438c
test esi, esi
je 0x10024004
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 0x1002405d
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10024052
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002438c
test ecx, ecx
je 0x1002405d
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 0x10024086
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 0x100240af
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
jmp 0x100240cf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x100240e4
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 0x10024107
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.10019dd0
mov byte [ebp - 4], 0x38
mov esi, dword [ebp - 0xe8]
test esi, esi
je 0x100241e0
mov edi, dword [ebp - 0xe4]
mov dword [ebp - 0xa8], esi
cmp esi, edi
je 0x1002417e
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 0x10024160
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 0x100241b7
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002438c
test esi, esi
je 0x100241c2
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 0x10024282
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xa8], esi
cmp esi, edi
je 0x10024220
mov byte [ebp - 4], 0x37
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xa8], esi
cmp esi, edi
jne 0x10024202
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 0x10024259
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002438c
test esi, esi
je 0x10024264
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 0x10024324
mov edi, dword [ebp - 0xfc]
mov dword [ebp - 0xa8], esi
cmp esi, edi
je 0x100242c2
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xa8], esi
cmp esi, edi
jne 0x100242a4
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 0x100242fb
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002438c
test esi, esi
je 0x10024306
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 0x1002434b
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.1004d40a
mov esp, ebp
pop ebp
ret 4
call fcn.10002810
call fcn.10050f8f
call fcn.10050f8f
int3