Function at 0x100e71f
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 0x100e76f
test byte [eax + 0x1c], 4
je 0x100e76f
cmp byte [eax + 0x19], 5
jb 0x100e76f
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 0x100e7de
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x100e7d6
mov eax, dword [0x1075004]
cmp eax, esi
je 0x100e7cf
test byte [eax + 0x1c], 4
je 0x100e7cf
cmp byte [eax + 0x19], 3
jb 0x100e7cf
push edi
call ebx
push eax
mov eax, dword [0x1075004]
push 0x1001770
push 0x8a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
xor eax, eax
jmp 0x100ebc2
xor eax, eax
inc eax
jmp 0x100ebc2
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0105f4ca
mov edi, eax
test edi, edi
je 0x100e82a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x100e821
test byte [eax + 0x1c], 4
je 0x100e821
cmp byte [eax + 0x19], 2
jb 0x100e821
push edi
push 0x1001770
push 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100e7cf
push 0xc9
push 0x2a69c000
push 0
push dword [ebp + 0xc]
call fcn.0105b7d0
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 0x100eaa5
ja 0x100e89b
cmp ecx, dword [ebp - 0x67c]
jbe 0x100eaa5
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x10019a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009a76
add esp, 0x14
test eax, eax
jge 0x100e907
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x100eaa5
test byte [ecx + 0x1c], 4
je 0x100eaa5
cmp byte [ecx + 0x19], 2
jb 0x100eaa5
push eax
push 0x1001770
push 0x8c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
jmp 0x100eaa5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100e969
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eaa5
test byte [eax + 0x1c], 4
je 0x100eaa5
cmp byte [eax + 0x19], 2
jb 0x100eaa5
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.010091cb
jmp 0x100eaa5
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 0x100e994
inc esi
inc esi
jne 0x100e9d9
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eaa5
test byte [eax + 0x1c], 4
je 0x100eaa5
cmp byte [eax + 0x19], 2
jb 0x100eaa5
lea ecx, [ebp - 0x20c]
push ecx
push 0x1001770
push 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100915e
jmp 0x100eaa5
mov ecx, dword [0x1077e1c]
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x684]
push eax
push esi
call fcn.0100c9db
test eax, eax
je 0x100ea36
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x100eaa5
test byte [ecx + 0x1c], 4
je 0x100eaa5
cmp byte [ecx + 0x19], 2
jb 0x100eaa5
push eax
push esi
push 0x1001770
push 0x8f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010091cb
jmp 0x100eaa5
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.0104df3d
test eax, eax
je 0x100ea90
mov ecx, dword [0x1075004]
cmp ecx, 0x1075004
je 0x100ea90
test byte [ecx + 0x1c], 4
je 0x100ea90
cmp byte [ecx + 0x19], 2
jb 0x100ea90
push eax
push 0x1001770
push 0x90
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a667
cmp dword [ebp - 0x668], 0
je 0x100eaa5
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 0x100e84a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 0x12
je 0x100eb03
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eb03
test byte [eax + 0x1c], 4
je 0x100eb03
cmp byte [eax + 0x19], 2
jb 0x100eb03
push dword [ebp - 0x674]
push edi
push 0x1001770
push 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x100eb47
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100eb47
test byte [eax + 0x1c], 4
je 0x100eb47
cmp byte [eax + 0x19], 2
jb 0x100eb47
push dword [ebp - 0x674]
push edi
push 0x1001770
push 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
cmp dword [ebp - 0x66c], 1
jne 0x100ebba
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 0x100ebba
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x100ebba
test byte [eax + 0x1c], 4
je 0x100ebba
cmp byte [eax + 0x19], 2
jb 0x100ebba
call ebx
push eax
mov eax, dword [0x1075004]
push 0x1001770
push 0x93
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a667
xor eax, eax
cmp edi, 0x12
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 0xc