Function at 0x10015c00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070ead
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0x104
jl 0x10015ef0
call fcn.10015f20
test al, al
jne 0x10015ef0
call fcn.1000a960
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10015f06
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, 0x100a3724
test eax, 0xffff0000
jne 0x10015c9e
movzx esi, ax
mov ecx, esi
call fcn.10014840
test eax, eax
je 0x10015cad
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.100149a0
jmp 0x10015cad
push 4
push 0x100a3724
lea ecx, [ebp - 0x14]
call fcn.100084e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.10014a40
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10015d00
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
or edi, 0xffffffff
mov al, byte [ebp - 0xd]
test al, al
jne 0x10015ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
call fcn.100218f0
cmp byte [eax + 0x1c], 0
je 0x10015edb
call fcn.100218f0
mov dword [ebp - 0x20], eax
call fcn.1000a960
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10015f06
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x14]
push 0x17
push str.Failed_to_delete_file:
call fcn.10014a40
mov edx, dword [ebx]
test edx, edx
je 0x10015d8d
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015d74
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.10014a40
push 0xc
push str._LastError
lea ecx, [ebp - 0x14]
call fcn.10014a40
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push esi
call fcn.10021c70
mov ebx, eax
push 1
push 0x100a4130
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.10014a40
push ecx
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.100141e0
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [eax]
test edx, edx
je 0x10015df8
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015de0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.10014a40
call fcn.1000a960
mov ebx, eax
test ebx, ebx
je 0x10015f06
mov ecx, dword [ebx]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
push 0
push 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10015e56
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x10015e56
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.10021b10
mov byte [ebp - 4], 6
mov eax, edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10015e83
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
or edi, 0xffffffff
mov byte [ebp - 4], 5
mov eax, edi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10015eb0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x10015edb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
mov byte [ebp - 0xd], al
jmp 0x10015d03
push 0x80004005
call fcn.10005390
int3