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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x150], 0
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x100ef15
mov ecx, dword [ebp + 0x10]
and ecx, 2
jne 0x100ef15
mov dword [ebp - 0x390], 1
jmp 0x100ef1f
mov dword [ebp - 0x390], 0
mov edx, dword [ebp - 0x390]
mov dword [ebp - 0x380], edx
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x378], 0
push 1
call dword [sym.imp.kernel32.dll_SetErrorMode]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x380], 0
je 0x100ef67
mov dword [ebp - 0x264], 1
push 0x10c
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
jne 0x100ef93
mov dword [ebp - 0x150], 8
jmp 0x100f7c0
mov eax, dword [ebp - 0x378]
mov dword [eax], 0
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x394], eax
mov ecx, dword [ebp - 0x394]
add ecx, 1
mov dword [ebp - 0x398], ecx
mov edx, dword [ebp - 0x394]
mov al, byte [edx]
mov byte [ebp - 0x399], al
add dword [ebp - 0x394], 1
cmp byte [ebp - 0x399], 0
jne 0x100efc9
mov ecx, dword [ebp - 0x394]
sub ecx, dword [ebp - 0x398]
mov dword [ebp - 0x3a0], ecx
cmp dword [ebp - 0x3a0], 1
jae 0x100f045
push 0x1004fb8
push 0x105
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
call fcn.010053c0
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100f040
mov eax, dword [ebp - 0x388]
and eax, 0xffff
mov dword [ebp - 0x150], eax
jmp 0x100f7c0
jmp 0x100f11a
mov ecx, dword [ebp + 8]
push ecx
push 0x105
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
call fcn.010053c0
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100f082
mov eax, dword [ebp - 0x388]
and eax, 0xffff
mov dword [ebp - 0x150], eax
jmp 0x100f7c0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3a4], ecx
mov edx, dword [ebp - 0x3a4]
add edx, 1
mov dword [ebp - 0x3a8], edx
mov eax, dword [ebp - 0x3a4]
mov cl, byte [eax]
mov byte [ebp - 0x3a9], cl
add dword [ebp - 0x3a4], 1
cmp byte [ebp - 0x3a9], 0
jne 0x100f09a
mov edx, dword [ebp - 0x3a4]
sub edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x3b0], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x3b0]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x100f11a
push 0x100155c
push 0x105
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
call fcn.010053c0
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100f11a
mov eax, dword [ebp - 0x388]
and eax, 0xffff
mov dword [ebp - 0x150], eax
jmp 0x100f7c0
cmp dword [ebp - 0x154], 0
je 0x100f7c0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
push 0x1001650
push 0x105
lea eax, [ebp - 0x260]
push eax
call fcn.010053c0
add esp, 0x14
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100f174
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
mov dword [ebp - 0x150], ecx
jmp 0x100f7c0
push 0
push 0
mov edx, dword [ebp - 0x264]
push edx
lea eax, [ebp - 0x148]
push eax
push 0
lea ecx, [ebp - 0x260]
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileExA]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0xffffffff
je 0x100f451
mov dword [ebp - 0x384], 0
cmp dword [ebp - 0x380], 0
je 0x100f1ca
mov edx, dword [ebp - 0x148]
and edx, 0x10
je 0x100f3b8
mov dword [ebp - 0x3b4], 0x1001e04
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x3b8], eax
mov ecx, dword [ebp - 0x3b8]
mov dl, byte [ecx]
mov byte [ebp - 0x3b9], dl
mov eax, dword [ebp - 0x3b4]
cmp dl, byte [eax]
jne 0x100f23e
cmp byte [ebp - 0x3b9], 0
je 0x100f232
mov ecx, dword [ebp - 0x3b8]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x3ba], dl
mov eax, dword [ebp - 0x3b4]
cmp dl, byte [eax + 1]
jne 0x100f23e
add dword [ebp - 0x3b8], 2
add dword [ebp - 0x3b4], 2
cmp byte [ebp - 0x3ba], 0
jne 0x100f1e0
mov dword [ebp - 0x3c0], 0
jmp 0x100f249
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x3c0], ecx
mov edx, dword [ebp - 0x3c0]
mov dword [ebp - 0x3c4], edx
cmp dword [ebp - 0x3c4], 0
je 0x100f2f6
mov dword [ebp - 0x3c8], 0x1001e00
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x3cc], eax
mov ecx, dword [ebp - 0x3cc]
mov dl, byte [ecx]
mov byte [ebp - 0x3cd], dl
mov eax, dword [ebp - 0x3c8]
cmp dl, byte [eax]
jne 0x100f2d6
cmp byte [ebp - 0x3cd], 0
je 0x100f2ca
mov ecx, dword [ebp - 0x3cc]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x3ce], dl
mov eax, dword [ebp - 0x3c8]
cmp dl, byte [eax + 1]
jne 0x100f2d6
add dword [ebp - 0x3cc], 2
add dword [ebp - 0x3c8], 2
cmp byte [ebp - 0x3ce], 0
jne 0x100f278
mov dword [ebp - 0x3d4], 0
jmp 0x100f2e1
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x3d4], ecx
mov edx, dword [ebp - 0x3d4]
mov dword [ebp - 0x3d8], edx
cmp dword [ebp - 0x3d8], 0
jne 0x100f2fb
jmp 0x100f3b8
mov eax, dword [ebp + 0x10]
and eax, 4
jne 0x100f313
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
je 0x100f313
jmp 0x100f3b8
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x154]
add eax, 4
push eax
push 0x1001650
push 0x105
lea ecx, [ebp - 0x370]
push ecx
call fcn.010053c0
add esp, 0x14
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100f397
cmp dword [ebp - 0x388], 0x8007007a
jne 0x100f380
cmp dword [ebp + 0x14], 0
je 0x100f37c
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x154]
add eax, 4
push eax
push 0x1004f88
push 3
call dword [ebp + 0x14]
add esp, 0x10
jmp 0x100f3b8
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
mov dword [ebp - 0x150], ecx
jmp 0x100f7c0
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x370]
push eax
call dword [ebp + 0x18]
test eax, eax
jne 0x100f3b8
mov dword [ebp - 0x150], 0x4c7
jmp 0x100f7c0
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x374]
push edx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100f1b2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 2
jne 0x100f444
cmp dword [ebp - 0x384], 0xa
jae 0x100f444
cmp dword [ebp + 0x14], 0
je 0x100f40e
cmp dword [ebp - 0x384], 0
jne 0x100f40e
push 0x1004f58
push 1
call dword [ebp + 0x14]
add esp, 8
mov eax, dword [ebp - 0x384]
add eax, 1
mov dword [ebp - 0x384], eax
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x374]
push edx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x100f442
jmp 0x100f1a8
jmp 0x100f3e9
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [ebp + 0x10]
and ecx, 1
je 0x100f791
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
push 0x1004f54
push 0x105
lea eax, [ebp - 0x260]
push eax
call fcn.010053c0
add esp, 0x10
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100f4a6
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
mov dword [ebp - 0x150], ecx
jmp 0x100f7c0
push 0
push 0
push 1
lea edx, [ebp - 0x148]
push edx
push 0
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileExA]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0xffffffff
je 0x100f791
mov dword [ebp - 0x384], 0
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
je 0x100f6f8
mov dword [ebp - 0x3dc], 0x1001e04
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x3e0], edx
mov eax, dword [ebp - 0x3e0]
mov cl, byte [eax]
mov byte [ebp - 0x3e1], cl
mov edx, dword [ebp - 0x3dc]
cmp cl, byte [edx]
jne 0x100f562
cmp byte [ebp - 0x3e1], 0
je 0x100f556
mov eax, dword [ebp - 0x3e0]
mov cl, byte [eax + 1]
mov byte [ebp - 0x3e2], cl
mov edx, dword [ebp - 0x3dc]
cmp cl, byte [edx + 1]
jne 0x100f562
add dword [ebp - 0x3e0], 2
add dword [ebp - 0x3dc], 2
cmp byte [ebp - 0x3e2], 0
jne 0x100f504
mov dword [ebp - 0x3e8], 0
jmp 0x100f56d
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x3e8], eax
mov ecx, dword [ebp - 0x3e8]
mov dword [ebp - 0x3ec], ecx
cmp dword [ebp - 0x3ec], 0
je 0x100f6f8
mov dword [ebp - 0x3f0], 0x1001e00
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x3f4], edx
mov eax, dword [ebp - 0x3f4]
mov cl, byte [eax]
mov byte [ebp - 0x3f5], cl
mov edx, dword [ebp - 0x3f0]
cmp cl, byte [edx]
jne 0x100f5fa
cmp byte [ebp - 0x3f5], 0
je 0x100f5ee
mov eax, dword [ebp - 0x3f4]
mov cl, byte [eax + 1]
mov byte [ebp - 0x3f6], cl
mov edx, dword [ebp - 0x3f0]
cmp cl, byte [edx + 1]
jne 0x100f5fa
add dword [ebp - 0x3f4], 2
add dword [ebp - 0x3f0], 2
cmp byte [ebp - 0x3f6], 0
jne 0x100f59c
mov dword [ebp - 0x3fc], 0
jmp 0x100f605
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x3fc], eax
mov ecx, dword [ebp - 0x3fc]
mov dword [ebp - 0x400], ecx
cmp dword [ebp - 0x400], 0
je 0x100f6f8
push 0x10c
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
je 0x100f6d4
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x154]
add eax, 4
push eax
push 0x1004f4c
push 0x105
mov ecx, dword [ebp - 0x378]
add ecx, 4
push ecx
call fcn.010053c0
add esp, 0x14
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
jne 0x100f69c
mov edx, dword [ebp - 0x378]
mov dword [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x378]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x100f6d2
cmp dword [ebp + 0x14], 0
je 0x100f6c0
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
push 0x1004f0c
push 3
call dword [ebp + 0x14]
add esp, 0x10
mov eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x100f6f8
jmp 0x100f6f8
cmp dword [ebp + 0x14], 0
je 0x100f6f8
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x154]
add edx, 4
push edx
push 0x1004edc
push 3
call dword [ebp + 0x14]
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100f4df
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 2
jne 0x100f784
cmp dword [ebp - 0x384], 0xa
jae 0x100f784
cmp dword [ebp + 0x14], 0
je 0x100f74e
cmp dword [ebp - 0x384], 0
jne 0x100f74e
push 0x1004f58
push 1
call dword [ebp + 0x14]
add esp, 8
mov edx, dword [ebp - 0x384]
add edx, 1
mov dword [ebp - 0x384], edx
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x100f782
jmp 0x100f4d5
jmp 0x100f729
mov edx, dword [ebp - 0x374]
push edx
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x378]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x100f11a
cmp dword [ebp - 0x154], 0
je 0x100f7f5
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x154]
mov eax, dword [edx]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x378]
push ecx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x100f7c0
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.kernel32.dll_SetErrorMode]
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0100dfd4
mov esp, ebp
pop ebp
ret 0x18