Function at 0x1001a9f1
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10032138]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edx
mov edx, dword [ebp + 0x20]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edx
mov edx, dword [ebp + 0x24]
push esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edx
xor edx, edx
or edi, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edx
mov esi, 0x80004005
test eax, eax
je 0x1001aca9
mov edx, 0x104
cmp dword [ebp + 0x18], edx
jb 0x1001aca9
xor eax, eax
mov word [ebp - 0x414], ax
mov word [ebp - 0x20c], ax
test ecx, ecx
jne 0x1001aabe
push edx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.1001a844
mov esi, eax
test esi, esi
jns 0x1001aab2
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001ac96
test byte [eax + 0x1c], 1
je 0x1001ac96
push esi
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0xe
jmp 0x1001ac6b
lea ecx, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push reloc.KERNEL32.dll_VerSetConditionMask
push ecx
call sub.KERNEL32.dll_GetTempFileNameW
test eax, eax
je 0x1001abbb
cmp dword [ebp + 0x10], 0
je 0x1001ab47
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_DeleteFileW
push dword [ebp + 0x10]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x104
push eax
call fcn.100065d4
test eax, eax
jns 0x1001ab29
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001ab29
test byte [eax + 0x1c], 1
je 0x1001ab29
push esi
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0
or eax, 0x80
push eax
push 1
jmp 0x1001ab57
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0
or eax, 0x80
push eax
push 2
push dword [ebp - 0x424]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push dword [ebp - 0x428]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, reloc.ADVAPI32.dll_TraceMessage
jne 0x1001abea
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
or eax, 0x2080
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
jne 0x1001abbb
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001abbb
test byte [eax + 0x1c], 2
je 0x1001abbb
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
inc dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0x64
call sub.KERNEL32.dll_Sleep
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x32
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jb 0x1001aabe
cmp edi, reloc.ADVAPI32.dll_TraceMessage
jne 0x1001abea
mov esi, 0x80004005
jmp 0x1001aca5
push dword [ebp + 0x18]
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_GetLongPathNameW
test eax, eax
je 0x1001ac09
cmp eax, dword [ebp + 0x18]
jb 0x1001ac78
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov ecx, dword [0x100320c8]
cmp ecx, 0x100320c8
je 0x1001ac3b
test byte [ecx + 0x1c], 2
je 0x1001ac3b
push eax
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1001334b
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp + 0x18]
push esi
call fcn.10001075
mov esi, eax
test esi, esi
jns 0x1001ac78
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001ac96
test byte [eax + 0x1c], 1
je 0x1001ac96
push esi
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x1001ac96
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x1001ac86
mov dword [eax], edi
jmp 0x1001ac94
cmp edi, reloc.ADVAPI32.dll_TraceMessage
je 0x1001ac94
push edi
call sub.KERNEL32.dll_CloseHandle
or edi, reloc.ADVAPI32.dll_TraceMessage
xor esi, esi
test esi, esi
jns 0x1001aca5
cmp edi, reloc.ADVAPI32.dll_TraceMessage
je 0x1001aca5
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
jmp 0x1001acd2
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001accd
test byte [eax + 0x1c], 1
je 0x1001accd
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100024c8
leave
ret 0x20