Function at 0x10012a30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021460
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.10001020
test eax, eax
je 0x10012d2f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.iSafeNetFilter
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.100013f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10012b35
call fcn.10012680
test eax, eax
jne 0x10012b35
lea ecx, [ebp - 0x14]
call fcn.100185f0
push str.iSafeNetFilter.sys
mov edx, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10001b40
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x18]
test eax, eax
sete bl
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10012afb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10012b1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10012bd2
call edi
push eax
push str.iSafeNetFilter.sys
push str.Failed_to_DeleteFile_2__Path___s__Error___d.
jmp 0x10012bca
mov edx, 1
call fcn.10018770
push str.iSafeNetFilter
lea ecx, [ebp - 0x24]
call fcn.10001840
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.100185f0
push str.iSafeNetFilter.sys
mov edx, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10001b40
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x18]
test eax, eax
sete bl
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10012b99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10012bb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10012bd2
call edi
push eax
push str.iSafeNetFilter.sys
push str.Failed_to_DeleteFile_1__Path___s__Error___d.
call fcn.10019db0
add esp, 0xc
push str.iSafeKrnlBoot
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
call fcn.100013f0
test eax, eax
je 0x10012c7c
push str.iSafeKrnlBoot
lea ecx, [ebp - 0x24]
call fcn.10001840
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
call fcn.100185f0
push str.iSafeKrnlBoot.sys
mov edx, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10001b40
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10012c45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10012c63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10012c7c
call edi
push eax
push str.iSafeKrnlBoot.sys
push str.Failed_to_DeleteFile__Path___s__Error___d.
call fcn.10019db0
add esp, 0xc
push str.iSafeKrnlKit
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
call fcn.100013f0
test eax, eax
je 0x10012ca4
push str.iSafeKrnlKit
lea ecx, [ebp - 0x24]
call fcn.10001840
mov dword [ebp - 0x14], eax
push str.iSafeKrnlR3
lea ecx, [ebp - 0x24]
xor ebx, ebx
call fcn.100013f0
test eax, eax
je 0x10012cc6
push str.iSafeKrnlR3
lea ecx, [ebp - 0x24]
call fcn.10001840
mov ebx, eax
push str.iSafeKrnlMon
lea ecx, [ebp - 0x24]
xor edi, edi
call fcn.100013f0
test eax, eax
je 0x10012ce8
push str.iSafeKrnlMon
lea ecx, [ebp - 0x24]
call fcn.10001840
mov edi, eax
push str.iSafeKrnl
lea ecx, [ebp - 0x24]
xor esi, esi
call fcn.100013f0
test eax, eax
je 0x10012d0a
push str.iSafeKrnl
lea ecx, [ebp - 0x24]
call fcn.10001840
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x10012d2f
cmp dword [ebp - 0x14], 0
je 0x10012d2f
cmp dword [ebp - 0x18], 0
je 0x10012d2f
test ebx, ebx
je 0x10012d2f
test edi, edi
je 0x10012d2f
test esi, esi
je 0x10012d2f
mov esi, 1
jmp 0x10012d31
xor esi, esi
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10012d3f
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret