Function at 0x536392
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov dword [ebp - 4], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x14c], 0
push 0x104
push 0
lea eax, [ebp - 0x358]
push eax
call fcn.0054bfb0
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x250]
push ecx
call fcn.0054bfb0
add esp, 0xc
lea edx, [ebp - 0x358]
push edx
call fcn.0053534c
add esp, 4
lea eax, [ebp - 0x358]
push eax
call fcn.0054c3e0
add esp, 4
movsx ecx, byte [ebp + eax - 0x359]
cmp ecx, 0x5c
je 0x53642b
push 0x5b8880
lea edx, [ebp - 0x358]
push edx
call fcn.0054bed0
add esp, 8
push str.ISO_List.idx
lea eax, [ebp - 0x358]
push eax
call fcn.0054bed0
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x5365bd
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x250]
push edx
call fcn.0054bec0
add esp, 8
push 0x5b8894
lea eax, [ebp - 0x250]
push eax
call fcn.0054bed0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x536485
xor eax, eax
jmp 0x536651
lea edx, [ebp - 0x358]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5365bb
push 0x5b8898
lea eax, [ebp - 0x358]
push eax
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x5364c5
xor eax, eax
jmp 0x536651
lea ecx, [ebp - 0x144]
push ecx
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x536508
mov eax, dword [ebp - 0x254]
push eax
call fcn.0054d1f9
add esp, 4
mov dword [ebp - 0x254], 0
xor eax, eax
jmp 0x536651
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x5365ae
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
and edx, 0x10
test edx, edx
jne 0x536556
mov eax, dword [ebp - 0x254]
push eax
push 0x104
push 1
lea ecx, [ebp - 0x250]
push ecx
call fcn.0054d3d1
add esp, 0x10
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x536580
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x536580
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x250]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x250]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x53650f
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x53662a
push 0x5b889c
lea eax, [ebp - 0x358]
push eax
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x5365e4
xor eax, eax
jmp 0x536651
push 0x104
push 0
lea ecx, [ebp - 0x250]
push ecx
call fcn.0054bfb0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.0054bec0
add esp, 8
mov ecx, dword [ebp - 0x254]
push ecx
push 0x104
push 1
lea edx, [ebp - 0x250]
push edx
call fcn.0054d3d1
add esp, 0x10
cmp dword [ebp - 0x254], 0
je 0x53664c
mov eax, dword [ebp - 0x254]
push eax
call fcn.0054d1f9
add esp, 4
mov dword [ebp - 0x254], 0
mov eax, 1
mov esp, ebp
pop ebp
ret