Function at 0x6da587e5
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 [0x6da6df10]
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 - 0x78], eax
test eax, eax
jne 0x6da58822
xor eax, eax
jmp 0x6da58a63
push dword [0x6da6df68]
push edi
push esi
call fcn.6da5a856
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
je 0x6da5881b
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 0x6da5887d
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 0x6da58a5c
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 0x6da588a1
test al, 0x10
jne 0x6da588ad
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x6da58a5c
call ebx
pop ecx
lea ecx, [edi + eax*2 - 2]
jmp 0x6da588ba
dec eax
sub ecx, 2
cmp word [ecx], 0x20
je 0x6da588b6
xor ecx, ecx
mov word [edi + eax*2], cx
xor ebx, ebx
cmp word [edi], 0x5c
jne 0x6da588d4
cmp word [edi + 2], bx
je 0x6da588ef
cmp word [edi + 2], 0x3a
jne 0x6da588f6
movzx eax, word [edi + 4]
cmp ax, bx
je 0x6da588ef
cmp eax, 0x5c
jne 0x6da588f6
cmp word [edi + 6], bx
jne 0x6da588f6
push 0x6da65990
jmp 0x6da588fb
push 0x6da65988
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 - 0x7c], eax
call dword [sym.imp.msvcr100.dll_free]
cmp dword [ebp - 0x7c], 0xffffffff
pop ecx
jne 0x6da58942
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x6da58a5c
mov eax, dword [esi]
push ebx
push dword [ebp - 0x78]
push ebx
push esi
call dword [eax + 0x2b0]
jmp 0x6da58a62
mov ecx, dword [esi]
push 0x10
pop eax
push ebx
push dword [ebp - 0x78]
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 0x6da58a5c
mov edi, dword [sym.imp.msvcr100.dll_wcscmp]
lea eax, [ebp - 0x40]
push 0x6da65984
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x6da58a0d
lea eax, [ebp - 0x40]
push 0x6da6597c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x6da58a0d
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 0x6da58a5c
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x70]
jne 0x6da589f1
shl dword [ebp - 0x70], 1
mov eax, dword [esi]
push 0
push dword [ebp - 0x78]
mov edi, ebx
push dword [ebp - 0x70]
push esi
call dword [eax + 0x2b0]
mov ebx, eax
test ebx, ebx
je 0x6da58a5c
push dword [ebp - 0x74]
push edi
push ebx
push esi
call fcn.6da5e020
test eax, eax
js 0x6da58a5c
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 - 0x7c]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x6da58963
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x6da58a5c
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esi]
push 0
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push esi
call dword [eax + 0x2b0]
mov edi, eax
test edi, edi
je 0x6da58a5c
push dword [ebp - 0x74]
push ebx
push edi
push esi
call fcn.6da5e020
test eax, eax
jns 0x6da58a60
xor eax, eax
jmp 0x6da58a62
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x1e4]
pop edi
xor ecx, ebp
pop esi
call fcn.6da62890
add ebp, 0x1e8
leave
ret 0xc