Function at 0x4055ed
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
mov eax, 0x410004
call fcn.004070f0
sub esp, 0x670
mov eax, dword [0x4150f0]
push ebx
push esi
push edi
push 0x41
mov dword [ebp - 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x358]
push eax
xor esi, esi
push 0x100
mov dword [ebp - 0x668], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x67c]
call fcn.0040402a
lea eax, [ebp - 0x150]
push eax
push 0x411be8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x66c], eax
mov ebx, str._s__s
je 0x405750
test byte [ebp - 0x150], 0x10
jne 0x4056a9
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4056a4
cmp byte [eax], 0
je 0x4056a4
lea ecx, [ebp - 0x124]
push ecx
push eax
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0040627d
mov ecx, dword [ebp + 0x10]
add esp, 0x10
lea eax, [ebp - 0x45c]
jmp 0x40571f
mov ecx, dword [ebp + 0x10]
jmp 0x405719
push 2
mov edi, 0x411364
lea esi, [ebp - 0x124]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405727
push 3
mov edi, 0x411360
lea esi, [ebp - 0x124]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405727
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x67c]
call fcn.00404078
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x405716
cmp byte [eax], 0
je 0x405716
lea ecx, [ebp - 0x124]
push ecx
push eax
lea eax, [ebp - 0x560]
push ebx
push eax
call fcn.0040627d
mov ecx, dword [ebp + 0x14]
add esp, 0x10
lea eax, [ebp - 0x560]
jmp 0x40571f
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x124]
push esi
push esi
push eax
call fcn.00404078
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor esi, esi
cmp eax, esi
jne 0x40566c
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x678]
test eax, eax
jne 0x40576b
xor ecx, ecx
jmp 0x405776
mov ecx, dword [ebp - 0x674]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jge 0x405800
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4057aa
cmp byte [ecx], 0
je 0x4057aa
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x254]
push ecx
push ebx
push eax
call fcn.0040627d
mov eax, dword [ebp - 0x678]
add esp, 0x10
jmp 0x4057c1
lea ecx, [eax + esi*4]
mov ecx, dword [ecx]
mov edi, dword [ecx]
lea ecx, [ebp - 0x254]
mov dl, byte [edi]
inc edi
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4057b7
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push ebx
push eax
call fcn.0040627d
push dword [ebp + 0x14]
lea eax, [ebp - 0x254]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.004055ed
add dword [ebp - 0x668], eax
add esp, 0x20
inc esi
jmp 0x40575d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x67c]
call fcn.00403e23
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x668]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004068c2
leave
ret