Function at 0x1001b327
Capabilities:
Check if file exists
Delete file
Enumerate files on windows

Disassembly:
push 0x280
mov eax, 0x1002f56f
call fcn.1002b85a
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor edi, edi
push 0x24c
lea eax, reloc.ADVAPI32.dll_TraceMessage
push edi
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call sub.msvcrt.dll_memset
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - 4], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
push esi
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x10006950
push eax
mov byte [ebp - 4], 1
call fcn.1000598d
mov esi, eax
add esp, 0x1c
test esi, esi
jns 0x1001b3ca
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001b567
test byte [eax + 0x1c], 1
je 0x1001b567
push esi
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0x4c
jmp 0x1001b55c
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x28c]
call sub.KERNEL32.dll_FindFirstFileW
mov edi, eax
cmp edi, reloc.ADVAPI32.dll_TraceMessage
je 0x1001b527
or eax, reloc.ADVAPI32.dll_TraceMessage
push 1
lea ecx, reloc.ADVAPI32.dll_TraceMessage
xor ebx, ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
or esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.10003a06
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
inc ebx
cmp ecx, esi
jb 0x1001b431
ja 0x1001b488
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp eax, edx
ja 0x1001b431
sbb eax, eax
neg eax
jns 0x1001b488
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp ecx, eax
jb 0x1001b488
ja 0x1001b44f
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp eax, edx
ja 0x1001b488
sbb eax, eax
neg eax
test eax, eax
jle 0x1001b488
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x280]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x10006950
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
call fcn.1000598d
mov esi, eax
add esp, 0x10
test esi, esi
js 0x1001b4f9
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
jne 0x1001b40e
push edi
call sub.KERNEL32.dll_FindClose
or edi, reloc.ADVAPI32.dll_TraceMessage
cmp ebx, dword [ebp + 0x10]
jbe 0x1001b4ea
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x1001b520
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
jbe 0x1001b520
push dword [ebp - 0x27c]
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x1001b4cf
dec ebx
jmp 0x1001b4e1
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp ebx, dword [ebp + 0x10]
ja 0x1001b3d6
xor esi, esi
cmp edi, reloc.ADVAPI32.dll_TraceMessage
je 0x1001b567
push edi
call sub.KERNEL32.dll_FindClose
jmp 0x1001b567
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001b4ec
test byte [eax + 0x1c], 1
je 0x1001b4ec
push esi
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x1001b4ec
mov esi, 0x80004005
jmp 0x1001b567
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x1001b535
xor esi, esi
jmp 0x1001b567
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001b567
test byte [eax + 0x1c], 1
je 0x1001b567
push esi
push reloc.ADVAPI32.dll_UnregisterTraceGuids
push 0x4d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
push 1
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.10003a06
push 1
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.10003a06
mov eax, esi
call fcn.1002b897
ret 0xc