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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066262
mov eax, dword fs:[0]
push eax
sub esp, 0x118
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 - 0xc8], 0
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe0]
push eax
mov edx, str.__OriginalDatabase__
mov ecx, esi
call fcn.1002eb00
add esp, 4
lea ecx, [ebp - 0x88]
mov edx, esi
call fcn.10023360
mov byte [ebp - 4], 1
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x114]
lea ecx, [ebp - 0x118]
call fcn.100139a0
mov esi, dword [ebp - 0xdc]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023910
sub ecx, edx
sar ecx, 1
mov byte [ebp - 4], 8
push 1
push 0x10096668
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1001ae90
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x10023945
mov ecx, dword [eax]
push 1
push 0x10096668
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.1001b0e0
add esp, 0x10
mov dword [ebp - 0xc8], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.10005610
push 1
sub esp, 0x18
lea eax, [ebp - 0x40]
mov dword [ebp - 0xbc], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x11c], esp
push eax
call fcn.100057f0
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.10019130
add esp, 0x18
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.10019700
mov byte [ebp - 4], 0xd
mov eax, 1
mov dword [ebp - 0xc8], eax
and eax, 0xfffffffe
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
call fcn.10005610
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x88]
call fcn.10023540
test al, al
jne 0x100239ff
mov dword [ebp - 0xbc], 0
jmp 0x100241c5
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xbc]
push eax
xor edi, edi
push 0x10093cf4
mov dword [ebp - 0xd4], edi
mov esi, dword [ebp - 0xc0]
push str.ProductCode
push esi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xbc], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea edx, [edi + 2]
cmp eax, 0xea
jne 0x10023a9e
mov esi, dword [ebp - 0xbc]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0xbc], 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 - 0xbc]
push eax
push edi
mov dword [ebp - 0xd4], edi
push str.ProductCode
mov dword [ebp - 0xd8], esi
mov esi, dword [ebp - 0xc0]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov ecx, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023ac0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002cb0
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10023200
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023b29
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.10005610
mov byte [ebp - 0xc1], 1
jmp 0x10023b3c
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.10005610
mov byte [ebp - 0xc1], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x10023b77
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10023b6c
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002443a
test ecx, ecx
je 0x10023b77
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0xf4]
push eax
mov edx, str.AI_SKIP_MSI_ELEVATION
mov ecx, esi
call fcn.1002ea60
add esp, 4
cmp dword [ebp - 0xf4], 2
jne 0x10023bca
mov eax, dword [ebp - 0xf0]
cmp word [eax], 0x31
je 0x1002416f
call fcn.10015750
test al, al
jne 0x1002416f
cmp byte [ebp - 0xc1], al
jne 0x1002416f
push 0x10093d00
push str.AiSkipUserExit
push esi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x124]
push eax
mov edx, str._SystemFolder_msiexec.exe
mov ecx, esi
call fcn.1002eb00
add esp, 4
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0xbc]
push eax
push 0x10093cf4
push 0x10096900
mov dword [ebp - 0xcc], 0
push esi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xbc], 0
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10023cc5
mov esi, dword [ebp - 0xbc]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0xbc], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xcc], eax
push ecx
push eax
push 0x10096900
mov dword [ebp - 0xd0], esi
mov esi, dword [ebp - 0xc0]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push dword [ebp - 0xcc]
call fcn.100553a1
add esp, 4
lea ecx, [ebp - 0x70]
mov edx, eax
call fcn.10015850
mov byte [ebp - 4], 0x25
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 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 - 0xec]
mov dword [eax], 0x100963dc
mov dword [eax + 4], 1
call fcn.1001ab70
mov ecx, dword [ebp - 0xec]
add esp, 0x18
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx + 0x30]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10023d50
sub edx, esi
sar edx, 1
push edx
push dword [ebp - 0xdc]
call fcn.10006eb0
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 - 0xec]
lea ecx, [ebp - 0x58]
call fcn.1001ac30
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 0x10024430
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 - 0x11c]
lea ecx, [ebp - 0x40]
call fcn.10006550
mov esi, dword [ebp - 0xc8]
lea ecx, [ebp - 0x58]
or esi, 2
mov dword [ebp - 0xc8], esi
call fcn.10005610
movups xmm0, xmmword [ebp - 0x40]
xor eax, eax
and esi, 0xfffffffd
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0xc8], esi
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x40]
call fcn.10005610
mov ecx, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023e60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002cb0
mov byte [ebp - 4], 0x2b
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10023200
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push 0
cmova eax, dword [ebp - 0x40]
push 2
push 2
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x10023eb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x40]
call fcn.10005610
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x28]
call fcn.10005610
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x88]
cmova eax, dword [ebp - 0x58]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10018e60
mov esi, eax
mov byte [ebp - 4], 0x2d
cmp dword [esi + 0x14], 7
jbe 0x10023f01
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [ebp - 0xc0]
mov edx, esi
push ecx
mov ecx, eax
call fcn.10022ee0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0xb8]
call fcn.10005610
test esi, esi
je 0x1002401b
mov ecx, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023f50
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002cb0
mov byte [ebp - 4], 0x2e
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10023200
mov byte [ebp - 4], 0x30
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x10023fb3
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10023fa8
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10024435
test ecx, ecx
je 0x10023fb3
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x14], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023fef
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 0xffff
jne 0x1002400f
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x40]
call fcn.10005610
mov dword [ebp - 0xbc], 0
jmp 0x10024025
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x40]
call fcn.10005610
mov dword [ebp - 0xbc], 0x642
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x58]
call fcn.10005610
mov byte [ebp - 4], 0x25
mov esi, dword [ebp - 0xec]
test esi, esi
je 0x100240cc
mov eax, dword [ebp - 0xe8]
cmp esi, eax
je 0x1002406a
mov edi, eax
nop
mov ecx, esi
call fcn.10005610
add esi, 0x18
cmp esi, edi
jne 0x10024050
mov esi, dword [ebp - 0xec]
mov edi, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xe4]
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 0x100240a3
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002443a
test esi, esi
je 0x100240ae
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x5c]
cmp eax, 7
jbe 0x10024107
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x100240fc
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002443a
test ecx, ecx
je 0x10024107
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 - 0xcc]
test eax, eax
je 0x10024130
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x10024159
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], 0
jmp 0x10024179
mov dword [ebp - 0xbc], 0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0xf0]
test eax, eax
je 0x1002418e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf4], 0
mov byte [ebp - 4], 0xe
test edi, edi
je 0x100241b1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.10005610
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x118]
call fcn.10019e10
mov byte [ebp - 4], 0x38
mov esi, dword [ebp - 0x100]
test esi, esi
je 0x10024285
mov edi, dword [ebp - 0xfc]
mov dword [ebp - 0xc0], esi
cmp esi, edi
je 0x10024223
mov byte [ebp - 4], 0x38
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xc0], esi
cmp esi, edi
jne 0x10024205
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 0x1002425c
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002443a
test esi, esi
je 0x10024267
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], 0x37
mov esi, dword [ebp - 0x10c]
test esi, esi
je 0x10024330
mov edi, dword [ebp - 0x108]
mov dword [ebp - 0xc0], esi
cmp esi, edi
je 0x100242ce
nop word [eax + eax]
mov byte [ebp - 4], 0x37
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xc0], esi
cmp esi, edi
jne 0x100242b0
mov esi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x104]
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 0x10024307
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002443a
test esi, esi
je 0x10024312
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x100243d2
mov edi, dword [ebp - 0x114]
mov dword [ebp - 0xc0], esi
cmp esi, edi
je 0x10024370
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0xc0], esi
cmp esi, edi
jne 0x10024352
mov esi, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x110]
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 0x100243a9
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1002443a
test esi, esi
je 0x100243b4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.10005610
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x100243f9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xe0], 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.1004d46a
mov esp, ebp
pop ebp
ret 4
call fcn.10002810
call fcn.10050fef
call fcn.10050fef
int3