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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x674], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x100e806
test byte [eax + 0x1c], 4
je 0x100e806
cmp byte [eax + 0x19], 5
jb 0x100e806
push 0x1001770
push 0x89
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
and dword [ebp - 0x66c], 0
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
jne 0x100e875
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x100e86d
mov eax, dword [0x1075004]
cmp eax, esi
je 0x100e866
test byte [eax + 0x1c], 4
je 0x100e866
cmp byte [eax + 0x19], 3
jb 0x100e866
push edi
call ebx
push eax
mov eax, dword [0x1075004]
push 0x1001770
push 0x8a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01044210
xor eax, eax
jmp 0x100ec59
xor eax, eax
inc eax
jmp 0x100ec59
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0105f88a
mov edi, eax
test edi, edi
je 0x100e8c1
mov eax, dword [0x1075004]
cmp eax, esi
je 0x100e8b8
test byte [eax + 0x1c], 4
je 0x100e8b8
cmp byte [eax + 0x19], 2
jb 0x100e8b8
push edi
push 0x1001770
push 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100e866
push 0xc9
push 0x2a69c000
push 0
push dword [ebp + 0xc]
call fcn.0105bb90
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x678], edx
lea eax, [ebp - 0x68c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x660]
mov esi, dword [ebp - 0x65c]
mov edi, dword [ebp - 0x68c]
xor edx, edx
xor ecx, ecx
or edx, eax
mov eax, dword [ebp - 0x688]
or esi, ecx
xor ebx, ebx
or ecx, edi
or eax, ebx
sub ecx, edx
sbb eax, esi
cmp eax, dword [ebp - 0x678]
jb 0x100eb3c
ja 0x100e932
cmp ecx, dword [ebp - 0x67c]
jbe 0x100eb3c
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x10019a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009acc
add esp, 0x14
test eax, eax
jge 0x100e99e
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x100eb3c
test byte [ecx + 0x1c], 4
je 0x100eb3c
cmp byte [ecx + 0x19], 2
jb 0x100eb3c
push eax
push 0x1001770
push 0x8c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
jmp 0x100eb3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100ea00
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eb3c
test byte [eax + 0x1c], 4
je 0x100eb3c
cmp byte [eax + 0x19], 2
jb 0x100eb3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x1075004]
push 0x1001770
push 0x8d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x100eb3c
and dword [ebp - 0x668], 0
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x5c
inc edi
push eax
mov dword [ebp - 0x66c], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100ea2b
inc esi
inc esi
jne 0x100ea70
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eb3c
test byte [eax + 0x1c], 4
je 0x100eb3c
cmp byte [eax + 0x19], 2
jb 0x100eb3c
lea ecx, [ebp - 0x20c]
push ecx
push 0x1001770
push 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
jmp 0x100eb3c
mov ecx, dword [0x1077e1c]
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x684]
push eax
push esi
call fcn.0100ca72
test eax, eax
je 0x100eacd
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x100eb3c
test byte [ecx + 0x1c], 4
je 0x100eb3c
cmp byte [ecx + 0x19], 2
jb 0x100eb3c
push eax
push esi
push 0x1001770
push 0x8f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a6e9
jmp 0x100eb3c
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x668]
neg eax
sbb eax, eax
and eax, 0x20
push edi
add eax, 0x20
push eax
push dword [ebp - 0x680]
push dword [ebp - 0x684]
call fcn.0104e401
test eax, eax
je 0x100eb27
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x100eb27
test byte [ecx + 0x1c], 4
je 0x100eb27
cmp byte [ecx + 0x19], 2
jb 0x100eb27
push eax
push 0x1001770
push 0x90
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a6bd
cmp dword [ebp - 0x668], 0
je 0x100eb3c
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100e8e1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 0x12
je 0x100eb9a
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eb9a
test byte [eax + 0x1c], 4
je 0x100eb9a
cmp byte [eax + 0x19], 2
jb 0x100eb9a
push dword [ebp - 0x674]
push edi
push 0x1001770
push 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01044210
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x100ebde
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100ebde
test byte [eax + 0x1c], 4
je 0x100ebde
cmp byte [eax + 0x19], 2
jb 0x100ebde
push dword [ebp - 0x674]
push edi
push 0x1001770
push 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01044210
cmp dword [ebp - 0x66c], 1
jne 0x100ec51
mov esi, 0x1078040
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1078100]
or dword [eax + 0x38], 0xffffffff
mov eax, dword [0x1078100]
or dword [eax + 0x3c], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x1077e20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x100ec51
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100ec51
test byte [eax + 0x1c], 4
je 0x100ec51
cmp byte [eax + 0x19], 2
jb 0x100ec51
call ebx
push eax
mov eax, dword [0x1075004]
push 0x1001770
push 0x93
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6bd
xor eax, eax
cmp edi, 0x12
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0xc