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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10088020]
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 - 0xd4], 0
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc4]
push eax
mov edx, str.__OriginalDatabase__
mov ecx, esi
call fcn.10027b70
add esp, 4
lea ecx, [ebp - 0x88]
mov edx, esi
call fcn.1001ccd0
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.10012e10
mov esi, dword [ebp - 0xc0]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d290
sub ecx, edx
sar ecx, 1
mov byte [ebp - 4], 0xa
push 1
push 0x10072e90
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.1001a380
add esp, 0x10
mov byte [ebp - 4], 0xb
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1001d2c5
mov ecx, dword [eax]
push 1
push 0x10072e90
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001a5d0
add esp, 0x10
mov dword [ebp - 0xd4], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.100055a0
push 1
sub esp, 0x18
lea eax, [ebp - 0x28]
mov dword [ebp - 0xa8], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x104], esp
push eax
call fcn.10005780
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.10018390
add esp, 0x18
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.10018980
mov byte [ebp - 4], 0xf
mov eax, 1
mov dword [ebp - 0xd4], eax
and eax, 0xfffffffe
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.100055a0
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x88]
call fcn.1001cf30
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test al, al
jne 0x1001d385
mov dword [ebp - 0xa8], 0
jmp 0x1001db66
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xa8]
push eax
push 0x100707ac
mov dword [ebp - 0xb0], 0
mov esi, dword [ebp - 0xa4]
push str.ProductCode
push esi
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa8], 0
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, 2
cmp eax, 0xea
jne 0x1001d42e
mov esi, dword [ebp - 0xa8]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0xa8], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
push ecx
push eax
push str.ProductCode
mov dword [ebp - 0xb4], esi
mov esi, dword [ebp - 0xa4]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
mov edx, dword [ebp - 0xb0]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ecx + 2]
mov dword [ebp - 0xa8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d454
sub ecx, dword [ebp - 0xa8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10002c20
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1001cbc0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001d4c1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x28]
call fcn.100055a0
mov byte [ebp - 0xa9], 1
jmp 0x1001d4d4
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x28]
call fcn.100055a0
mov byte [ebp - 0xa9], 0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x1001d50b
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001d504
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001ddd7
test ecx, ecx
je 0x1001d50b
push ecx
call edi
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], 0x18
lea eax, [ebp - 0xdc]
push eax
mov edx, str.AI_SKIP_MSI_ELEVATION
mov ecx, esi
call fcn.10027ad0
add esp, 4
cmp dword [ebp - 0xdc], 2
jne 0x1001d55e
mov eax, dword [ebp - 0xd8]
cmp word [eax], 0x31
je 0x1001db12
call fcn.10014c20
test al, al
jne 0x1001db12
cmp byte [ebp - 0xa9], al
jne 0x1001db12
push 0x100707b8
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], 0x25
lea eax, [ebp - 0x10c]
push eax
mov edx, str._SystemFolder_msiexec.exe
mov ecx, esi
call fcn.10027b70
add esp, 4
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0xa8]
push eax
push 0x100707ac
push str.CLIENTPROCESSID
mov dword [ebp - 0xb8], 0
push esi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa8], 0
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x1001d659
mov esi, dword [ebp - 0xa8]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0xa8], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
push ecx
push eax
push str.CLIENTPROCESSID
mov dword [ebp - 0xbc], esi
mov esi, dword [ebp - 0xa4]
push esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
push dword [ebp - 0xb8]
call fcn.1004cae1
add esp, 4
lea ecx, [ebp - 0x70]
mov edx, eax
call fcn.10014d20
mov byte [ebp - 4], 0x27
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov byte [ebp - 4], 0x28
lea edx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov ecx, dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
push 1
push 1
sub esp, 8
mov eax, esp
push ecx
push edx
lea ecx, [ebp - 0xd0]
mov dword [eax], 0x10072e1c
mov dword [eax + 4], 1
call fcn.10019e10
mov ecx, dword [ebp - 0xc0]
add esp, 0x18
mov edx, dword [ebp - 0xd0]
add edx, 0x30
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d6e0
sub ecx, esi
mov esi, dword [edx + 0x14]
sar ecx, 1
cmp ecx, esi
ja 0x1001d72f
mov dword [ebp - 0xa4], edx
mov eax, edx
cmp esi, 8
jb 0x1001d70b
mov eax, dword [edx]
mov dword [ebp - 0xa4], eax
lea esi, [ecx + ecx]
mov dword [edx + 0x10], ecx
push esi
push dword [ebp - 0xc0]
push eax
call fcn.100468b0
mov eax, dword [ebp - 0xa4]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x1001d743
push dword [ebp - 0xc0]
push dword [ebp - 0x104]
push ecx
mov ecx, edx
call fcn.10007100
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x10072e1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.10002c20
mov byte [ebp - 4], 0x29
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0x58]
call fcn.1001a120
add esp, 4
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x28]
call fcn.100055a0
lea eax, [ebp - 0x58]
mov edx, str._RunAsAdmin
push eax
lea ecx, [ebp - 0x40]
call fcn.1000d5e0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x1001d7d8
mov ecx, eax
call fcn.100055a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x40]
call fcn.100055a0
mov esi, dword [ebp - 0xb0]
xorps xmm0, xmm0
mov ecx, esi
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d804
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002c20
mov byte [ebp - 4], 0x2d
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.1001cbc0
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae 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 0x1001d85c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x40]
call fcn.100055a0
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x28]
call fcn.100055a0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x88]
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x28]
push eax
call fcn.10018180
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x2f
cmp dword [eax + 0x14], 8
jb 0x1001d8ac
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.1001c930
add esp, 8
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x28]
call fcn.100055a0
cmp dword [ebp - 0xa4], 0
je 0x1001d9cd
mov ecx, esi
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 0x1001d902
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.10002c20
mov byte [ebp - 4], 0x30
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1001cbc0
mov byte [ebp - 4], 0x32
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x1001d961
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001d95a
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001ddd2
test ecx, ecx
je 0x1001d961
push ecx
call edi
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001d99d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xa4], 0xffff
jne 0x1001d9c1
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x28]
call fcn.100055a0
mov dword [ebp - 0xa8], 0
jmp 0x1001d9d7
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x28]
call fcn.100055a0
mov dword [ebp - 0xa8], 0x642
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x58]
call fcn.100055a0
mov byte [ebp - 4], 0x27
mov esi, dword [ebp - 0xd0]
test esi, esi
je 0x1001da7b
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xa4], eax
cmp esi, eax
je 0x1001da1d
mov ecx, esi
call fcn.100055a0
add esi, 0x18
cmp esi, dword [ebp - 0xa4]
jne 0x1001da05
mov esi, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xc8]
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 0x1001da56
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1001ddd7
test esi, esi
je 0x1001da5d
push esi
call edi
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov byte [ebp - 4], 0x26
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x1001dab2
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001daab
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001ddd7
test ecx, ecx
je 0x1001dab2
push ecx
call edi
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x1001dad7
push eax
call edi
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xbc], 0
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x1001dafc
push eax
call edi
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
jmp 0x1001db1c
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x1001db2d
push eax
call edi
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x1001db52
push eax
call edi
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.100055a0
mov byte [ebp - 4], 0x3b
lea ecx, [ebp - 0x100]
call fcn.100190d0
mov byte [ebp - 4], 0x3a
mov esi, dword [ebp - 0xe8]
test esi, esi
je 0x1001dc30
mov edi, dword [ebp - 0xe4]
mov dword [ebp - 0xa4], esi
cmp esi, edi
je 0x1001dbce
nop word [eax + eax]
mov byte [ebp - 4], 0x3a
mov ecx, esi
call fcn.100055a0
add esi, 0x18
mov dword [ebp - 0xa4], esi
cmp esi, edi
jne 0x1001dbb0
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 0x1001dc07
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1001ddd7
test esi, esi
je 0x1001dc12
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], 0x39
mov esi, dword [ebp - 0xf4]
test esi, esi
je 0x1001dcd2
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xa4], esi
cmp esi, edi
je 0x1001dc70
mov byte [ebp - 4], 0x39
mov ecx, esi
call fcn.100055a0
add esi, 0x18
mov dword [ebp - 0xa4], esi
cmp esi, edi
jne 0x1001dc52
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 0x1001dca9
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1001ddd7
test esi, esi
je 0x1001dcb4
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 0x1001dd74
mov edi, dword [ebp - 0xfc]
mov dword [ebp - 0xa4], esi
cmp esi, edi
je 0x1001dd12
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.100055a0
add esi, 0x18
mov dword [ebp - 0xa4], esi
cmp esi, edi
jne 0x1001dcf4
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 0x1001dd4b
mov esi, dword [ecx - 4]
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1001ddd7
test esi, esi
je 0x1001dd56
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.100055a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x1001dd9b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 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.10044a98
mov esp, ebp
pop ebp
ret 4
call fcn.1004872f
call fcn.1004872f
int3