Function at 0x4e9459
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa78
lea ecx, [ebp - 0x14]
call fcn.00401420
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x560], ecx
push 0x5c85e0
mov edx, dword [ebp + 0x10]
push edx
call fcn.0054cf00
add esp, 8
test eax, eax
jne 0x4e94ca
mov dword [ebp - 0xa6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa6c]
jmp 0x4e986e
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4e94fc
mov dword [ebp - 0xa70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa70]
jmp 0x4e986e
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0054ce70
add esp, 4
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
jne 0x4e952f
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5c85e4
lea edx, [ebp - 0x664]
push edx
call fcn.0054c6e3
add esp, 0xc
jmp 0x4e9547
mov eax, dword [ebp + 0x10]
push eax
push str._s.
lea ecx, [ebp - 0x664]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x55c], eax
cmp dword [ebp - 0x55c], 0xffffffff
jne 0x4e958e
mov dword [ebp - 0xa74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa74]
jmp 0x4e986e
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4e9842
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x864]
push edx
call fcn.0054be90
add esp, 8
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x864]
push ecx
call fcn.0054bea0
add esp, 8
lea edx, [ebp - 0x864]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004dece1
add esp, 4
test eax, eax
je 0x4e960f
mov dword [ebp - 0xa78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa78]
jmp 0x4e986e
mov ecx, dword [ebp - 0x218]
and ecx, 0x10
test ecx, ecx
je 0x4e9710
push 0x5c85f4
lea edx, [ebp - 0x32c]
push edx
call fcn.0054cf00
add esp, 8
test eax, eax
je 0x4e970b
push 0x5c85f8
lea eax, [ebp - 0x32c]
push eax
call fcn.0054cf00
add esp, 8
test eax, eax
je 0x4e970b
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x560]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ee3e2
add esp, 0x10
mov dword [ebp - 0xa68], eax
cmp dword [ebp - 0xa68], 0
je 0x4e9701
push 0x5c85fc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xa68]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004e9459
add esp, 0xc
test eax, eax
jne 0x4e9701
mov dword [ebp - 0xa7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa7c]
jmp 0x4e986e
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4e9813
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xa64]
push ecx
call fcn.0054be90
add esp, 8
lea edx, [ebp - 0x32c]
push edx
lea eax, [ebp - 0xa64]
push eax
call fcn.0054bea0
add esp, 8
cmp dword [0x5ea000], 0
jle 0x4e97d4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x7188], 0
je 0x4e97d4
push 0x200
push 0
lea edx, [ebp - 0x558]
push edx
call fcn.0054bf90
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
push str.Preload______s____
lea ecx, [ebp - 0x558]
push ecx
call fcn.0054c6e3
add esp, 0xc
mov edx, dword [0x5ea000]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x59dc]
push ecx
push 6
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x7188]
call fcn.00417fc6
lea eax, [ebp - 0x558]
push eax
mov ecx, dword [0x5ea000]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x59dc]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7188]
call fcn.0041805c
lea edx, [ebp - 0xa64]
push edx
lea eax, [ebp - 0x560]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e987c
add esp, 0xc
test eax, eax
jne 0x4e9813
mov dword [ebp - 0xa80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa80]
jmp 0x4e986e
lea edx, [ebp - 0x358]
push edx
mov eax, dword [ebp - 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4e983d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4e983d
mov dword [ebp - 0x10], 1
jmp 0x4e9595
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa84], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0xa84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret