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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5716d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa84
lea ecx, [ebp - 0x14]
call fcn.004013e0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x560], ecx
push 0x5b2554
mov edx, dword [ebp + 0x10]
push edx
call fcn.0054d7f0
add esp, 8
test eax, eax
jne 0x5064c6
mov dword [ebp - 0xa6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa6c]
jmp 0x506960
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x5064f8
mov dword [ebp - 0xa70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa70]
jmp 0x506960
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0054c3e0
add esp, 4
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
jne 0x50652b
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5b2558
lea edx, [ebp - 0x664]
push edx
call fcn.0054c45b
add esp, 0xc
jmp 0x506543
mov eax, dword [ebp + 0x10]
push eax
push 0x5b2560
lea ecx, [ebp - 0x664]
push ecx
call fcn.0054c45b
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 0x50658a
mov dword [ebp - 0xa74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa74]
jmp 0x506960
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x506934
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x864]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x864]
push ecx
call fcn.0054bed0
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.004ec99d
add esp, 4
test eax, eax
je 0x50660b
mov dword [ebp - 0xa78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa78]
jmp 0x506960
mov ecx, dword [ebp - 0x218]
and ecx, 0x10
test ecx, ecx
je 0x5067f8
push 0x5b2568
lea edx, [ebp - 0x32c]
push edx
call fcn.0054d7f0
add esp, 8
test eax, eax
je 0x5067f3
push 0x5b256c
lea eax, [ebp - 0x32c]
push eax
call fcn.0054d7f0
add esp, 8
test eax, eax
je 0x5067f3
cmp dword [ebp + 0x14], 0
je 0x50670e
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.004ecb50
add esp, 0x10
mov dword [ebp - 0xa68], eax
cmp dword [ebp - 0xa68], 0
je 0x506709
push 0x5b2570
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xa68]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00506455
add esp, 0x10
test eax, eax
jne 0x506709
mov dword [ebp - 0xa7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa7c]
jmp 0x506960
jmp 0x5067e9
lea ecx, [ebp - 0x32c]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xa68]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x560]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0050696e
add esp, 0x10
cmp eax, 1
jne 0x5067c5
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]
push 0x5b2574
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xa68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00506455
add esp, 0x10
test eax, eax
jne 0x5067c3
mov dword [ebp - 0xa80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa80]
jmp 0x506960
jmp 0x5067e9
mov dword [ebp - 0xa84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa84]
jmp 0x506960
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x506905
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0xa64]
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x32c]
push ecx
lea edx, [ebp - 0xa64]
push edx
call fcn.0054bed0
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x50684e
lea eax, [ebp - 0x32c]
push eax
push str.Preload______s____
lea ecx, [ebp - 0x558]
push ecx
call fcn.0054c45b
add esp, 0xc
jmp 0x506869
lea edx, [ebp - 0x32c]
push edx
push str.Preload_Compare______s____
lea eax, [ebp - 0x558]
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [ebp - 0x558]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005031b7
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x5068c6
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0x560]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f031e
add esp, 0xc
test eax, eax
jne 0x5068c4
mov dword [ebp - 0xa88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa88]
jmp 0x506960
jmp 0x506905
lea eax, [ebp - 0xa64]
push eax
mov ecx, dword [ebp - 0x560]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005073e0
add esp, 0xc
test eax, eax
jne 0x506905
mov dword [ebp - 0xa8c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa8c]
jmp 0x506960
lea eax, [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x50692f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x50692f
mov dword [ebp - 0x10], 1
jmp 0x506591
mov edx, dword [ebp - 0x55c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0xa90], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00560ea1
mov eax, dword [ebp - 0xa90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret