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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5757e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x774
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x368], 0
lea ecx, [ebp - 0x14]
call fcn.00401420
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x67c4], 9
push str.Preload_into_Hidden
mov ecx, dword [ebp + 8]
add ecx, 0x5ea4
push ecx
call fcn.0054c6e3
add esp, 8
cmp dword [0x5ea000], 0
jle 0x4fb3d3
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7188], 0
je 0x4fb3d3
mov eax, dword [0x5ea000]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x59dc]
push edx
push 6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7188]
call fcn.00417fc6
mov ecx, dword [ebp + 8]
add ecx, 0x5ea4
push ecx
mov edx, dword [0x5ea000]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x59dc]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x7188]
call fcn.0041805c
push 0x5c8ad8
mov eax, dword [ebp + 8]
add eax, 0x5bcc
push eax
call fcn.0054cf00
add esp, 8
test eax, eax
jne 0x4fb411
mov dword [ebp - 0x76c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0x76c]
jmp 0x4fb6b6
mov ecx, dword [ebp + 8]
add ecx, 0x5bcc
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4fb449
mov dword [ebp - 0x770], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0x770]
jmp 0x4fb6b6
lea edx, [ebp - 0x160]
push edx
push 0x5c8adc
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0xffffffff
jne 0x4fb48e
mov dword [ebp - 0x774], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0x774]
jmp 0x4fb6b6
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4fb68a
mov eax, dword [ebp + 8]
add eax, 0x5bcc
push eax
lea ecx, [ebp - 0x568]
push ecx
call fcn.0054be90
add esp, 8
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x568]
push eax
call fcn.0054bea0
add esp, 8
lea ecx, [ebp - 0x568]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
and edx, 0x10
test edx, edx
je 0x4fb4ec
jmp 0x4fb65b
mov eax, dword [ebp + 8]
add eax, 0x5bcc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp + 8]
add ecx, 0x5bcc
push ecx
lea edx, [ebp - 0x768]
push edx
call fcn.0054be90
add esp, 8
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x768]
push ecx
call fcn.0054bea0
add esp, 8
cmp dword [0x5ea000], 0
jle 0x4fb5ba
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7188], 0
je 0x4fb5ba
push 0x200
push 0
lea eax, [ebp - 0x360]
push eax
call fcn.0054bf90
add esp, 0xc
lea ecx, [ebp - 0x134]
push ecx
push str.Preload_into_Hidden___s_
lea edx, [ebp - 0x360]
push edx
call fcn.0054c6e3
add esp, 0xc
mov eax, dword [0x5ea000]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x59dc]
push edx
push 6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7188]
call fcn.00417fc6
lea ecx, [ebp - 0x360]
push ecx
mov edx, dword [0x5ea000]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x59dc]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x7188]
call fcn.0041805c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5974], 0x3ff
jl 0x4fb61c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5974], 0x421
jg 0x4fb61c
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x768]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005168f0
add esp, 0xc
test eax, eax
jne 0x4fb61a
mov dword [ebp - 0x778], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0x778]
jmp 0x4fb6b6
jmp 0x4fb65b
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x768]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fa4c4
add esp, 0xc
test eax, eax
jne 0x4fb65b
mov dword [ebp - 0x77c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0x77c]
jmp 0x4fb6b6
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4fb685
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4fb685
mov dword [ebp - 0x10], 1
jmp 0x4fb495
mov ecx, dword [ebp - 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x780], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0056206c
mov eax, dword [ebp - 0x780]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret