Function at 0x100070c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025768
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1003000c]
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.1000a290
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004230
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10004230
mov byte [ebp - 4], 2
call fcn.10001520
mov ecx, eax
test ecx, ecx
jne 0x1000713b
push 0x80004005
call fcn.10001170
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 0x1000717a
test di, di
je 0x10007176
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x1000717a
add ecx, 4
add edx, 4
test di, di
jne 0x10007154
xor ecx, ecx
jmp 0x1000717f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
or edi, 0xffffffff
test cl, cl
jne 0x100071c4
mov ecx, str..msi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100071b6
test dx, dx
je 0x100071b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100071b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10007190
xor eax, eax
jmp 0x100071bb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x1000721f
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x100072f1
push 0x1002c4d0
push eax
call fcn.1000c354
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x100071f1
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x1000721f
cmp dword [eax - 0xc], 0
jl 0x100072f1
push 0x1002c394
push eax
call fcn.1000c354
add esp, 8
test eax, eax
je 0x100072f1
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
je 0x100072f1
push ecx
mov ecx, esp
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x14]
mov dword [ebp - 0x24], ecx
call fcn.10004690
mov ecx, esi
call fcn.10007450
mov esi, dword [ebp - 0x14]
add esp, 4
test eax, eax
jne 0x10007334
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edx, eax
test edx, edx
jne 0x10007257
xor ecx, ecx
jmp 0x10007272
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007260
sub ecx, ebx
mov ebx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.10004580
mov eax, dword [ebp - 0x10]
mov ecx, str..exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100072aa
test dx, dx
je 0x100072a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100072aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x10007284
xor eax, eax
jmp 0x100072af
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x100072d9
mov edx, str..msi
lea ecx, [ebp - 0x10]
call fcn.10003ab0
test al, al
jne 0x100072d9
push 0xa
push 0x1002c4dc
mov ecx, ebx
call fcn.10005a50
jmp 0x10007334
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x1002c4d4
push ebx
call fcn.10004d90
add esp, 0xc
jmp 0x10007334
lea eax, [ebp - 0x1c]
mov edx, 0x1002bf74
push eax
lea ecx, [ebp - 0x24]
call fcn.10003b00
add esp, 4
mov byte [ebp - 4], 4
mov ecx, ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10005a50
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 0x10007334
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.10004690
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.10004690
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10007c50
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x18], 0x11170
jae 0x100073bc
cmp dword [esi - 0xc], 0
je 0x100073bc
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.10004690
push ecx
mov ecx, esp
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ecx
push eax
call fcn.10004690
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10007c50
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 0x100073d7
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 0x100073f5
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 0x10007413
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 0x10007432
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