Function at 0x100069a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027488
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10033010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
push ecx
mov dword [ebp - 4], 0
call fcn.10009e20
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10003b60
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10003b60
mov byte [ebp - 4], 2
call fcn.10005250
mov ecx, eax
test ecx, ecx
jne 0x10006a1b
push 0x80004005
call fcn.10005470
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov edx, str..exe
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x10006a5a
test di, di
je 0x10006a56
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x10006a5a
add ecx, 4
add edx, 4
test di, di
jne 0x10006a34
xor ecx, ecx
jmp 0x10006a5f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
or edi, 0xffffffff
test cl, cl
jne 0x10006aa4
mov ecx, str..msi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10006a96
test dx, dx
je 0x10006a92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10006a96
add eax, 4
add ecx, 4
test dx, dx
jne 0x10006a70
xor eax, eax
jmp 0x10006a9b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x10006aff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x10006bd1
push 0x1002d778
push eax
call fcn.1000de74
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x10006ad1
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x10006aff
cmp dword [eax - 0xc], 0
jl 0x10006bd1
push 0x1002d63c
push eax
call fcn.1000de74
add esp, 8
test eax, eax
je 0x10006bd1
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
je 0x10006bd1
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x14]
mov dword [ebp - 0x24], ecx
call fcn.10003f10
mov ecx, esi
call fcn.10006d30
mov esi, dword [ebp - 0x14]
add esp, 4
test eax, eax
jne 0x10006c14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edx, eax
test edx, edx
jne 0x10006b37
xor ecx, ecx
jmp 0x10006b52
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006b40
sub ecx, ebx
mov ebx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.10004170
mov eax, dword [ebp - 0x10]
mov ecx, str..exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10006b8a
test dx, dx
je 0x10006b86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10006b8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x10006b64
xor eax, eax
jmp 0x10006b8f
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10006bb9
mov edx, str..msi
lea ecx, [ebp - 0x10]
call fcn.10003400
test al, al
jne 0x10006bb9
push 0xa
push 0x1002d784
mov ecx, ebx
call fcn.1000a1d0
jmp 0x10006c14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x1002d77c
push ebx
call fcn.100046c0
add esp, 0xc
jmp 0x10006c14
lea eax, [ebp - 0x1c]
mov edx, 0x1002e14c
push eax
lea ecx, [ebp - 0x24]
call fcn.10003450
add esp, 4
mov byte [ebp - 4], 4
mov ecx, ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.1000a1d0
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006c14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], ecx
call fcn.10003f10
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.10003f10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10007530
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x18], 0x11170
jae 0x10006c9c
cmp dword [esi - 0xc], 0
je 0x10006c9c
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x20]
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x28], ecx
call fcn.10003f10
push ecx
mov ecx, esp
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ecx
push eax
call fcn.10003f10
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10007530
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006cb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006cd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006cf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10006d12
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret