Function at 0x10008191
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push esi
mov esi, dword [ebp + 0x1f0]
push edi
mov edi, dword [ebp + 0x1f8]
push esi
call sym.java.dll__JNU_ClassString_4
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x100081ce
xor eax, eax
jmp 0x1000841c
push dword [0x1001cf68]
push edi
push esi
call fcn.1000a207
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
je 0x100081c7
push ebx
mov ebx, dword [sym.imp.msvcr100.dll_wcslen]
push eax
call ebx
lea eax, [eax + eax + 6]
push eax
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
mov edi, eax
pop ecx
push dword [ebp - 0x70]
test edi, edi
jne 0x10008229
call dword [sym.imp.msvcr100.dll_free]
call dword [sym.imp.msvcr100.dll__errno]
mov dword [esp], str.native_memory_allocation_faiuled
push esi
mov dword [eax], 0xc
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x1000840a
push edi
call dword [sym.imp.msvcr100.dll_wcscpy]
push dword [ebp - 0x70]
call dword [sym.imp.msvcr100.dll_free]
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push edi
cmp eax, 0xffffffff
je 0x1000824d
test al, 0x10
jne 0x10008259
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x1000840a
call ebx
pop ecx
lea ecx, [edi + eax*2 - 2]
jmp 0x10008266
dec eax
sub ecx, 2
cmp word [ecx], 0x20
je 0x10008262
xor ecx, ecx
mov word [edi + eax*2], cx
xor ebx, ebx
cmp word [edi], 0x5c
jne 0x10008280
cmp word [edi + 2], bx
je 0x1000829b
cmp word [edi + 2], 0x3a
jne 0x100082a2
movzx eax, word [edi + 4]
cmp ax, bx
je 0x1000829b
cmp eax, 0x5c
jne 0x100082a2
cmp word [edi + 6], bx
jne 0x100082a2
push 0x10014980
jmp 0x100082a7
push 0x10014978
push edi
call dword [sym.imp.msvcr100.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
push edi
mov dword [ebp - 0x78], eax
call dword [sym.imp.msvcr100.dll_free]
cmp dword [ebp - 0x78], 0xffffffff
pop ecx
jne 0x100082ee
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1000840a
mov eax, dword [esi]
push ebx
push dword [ebp - 0x7c]
push ebx
push esi
call dword [eax + 0x2b0]
jmp 0x1000841b
mov ecx, dword [esi]
push 0x10
pop eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x74], ebx
push eax
push esi
mov dword [ebp - 0x70], eax
call dword [ecx + 0x2b0]
mov ebx, eax
test ebx, ebx
je 0x1000840e
mov edi, dword [sym.imp.msvcr100.dll_wcscmp]
lea eax, [ebp - 0x40]
push 0x10014974
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x100083b9
lea eax, [ebp - 0x40]
push 0x1001496c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x100083b9
mov edi, dword [esi]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.msvcr100.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call dword [edi + 0x28c]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1000840e
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x70]
jne 0x1000839d
shl dword [ebp - 0x70], 1
mov eax, dword [esi]
push 0
push dword [ebp - 0x7c]
mov edi, ebx
push dword [ebp - 0x70]
push esi
call dword [eax + 0x2b0]
mov ebx, eax
test ebx, ebx
je 0x1000840e
push dword [ebp - 0x74]
push edi
push ebx
push esi
call fcn.10010b70
test eax, eax
js 0x1000840e
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x5c]
push dword [ebp - 0x80]
mov eax, dword [esi]
push dword [ebp - 0x74]
push ebx
push esi
call dword [eax + 0x2b8]
push dword [ebp - 0x80]
mov eax, dword [esi]
inc dword [ebp - 0x74]
push esi
call dword [eax + 0x5c]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x1000830f
call dword [sym.imp.kernel32.dll_GetLastError]
push dword [ebp - 0x78]
mov edi, eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp edi, 0x12
jne 0x1000840a
mov eax, dword [esi]
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push esi
call dword [eax + 0x2b0]
mov edi, eax
test edi, edi
je 0x1000840a
push dword [ebp - 0x74]
push ebx
push edi
push esi
call fcn.10010b70
test eax, eax
jns 0x10008419
xor eax, eax
jmp 0x1000841b
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x1000840a
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x1e4]
pop edi
xor ecx, ebp
pop esi
call fcn.100122d0
add ebp, 0x1e8
leave
ret 0xc