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

Disassembly:
sub esp, 0x754
push ebx
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x558]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x558]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x760]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x10]
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x10]
push edx
push 0x4090ac
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
mov dword [esp + 8], eax
je 0x40194c
push ebp
mov ebp, dword [esp + 0x768]
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
jne 0x40180b
mov esi, 0x409078
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401750
test cl, cl
je 0x40174c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401750
add eax, 2
add esi, 2
test cl, cl
jne 0x40172c
xor eax, eax
jmp 0x401755
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40192b
mov esi, 0x4090a8
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40178a
test cl, cl
je 0x401786
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40178a
add eax, 2
add esi, 2
test cl, cl
jne 0x401766
xor eax, eax
jmp 0x40178f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40192b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x358]
lea edx, [esp + 0x358]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x45c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x768]
lea eax, [esp + 0x44]
push eax
push ecx
push str._s_s
push edx
call fcn.004024a4
lea eax, [esp + 0x54]
lea ecx, [esp + 0x46c]
push eax
push ebp
push str._s_s
push ecx
call fcn.004024a4
add esp, 0x20
lea edx, [esp + 0x45c]
lea eax, [esp + 0x358]
mov ecx, ebx
push edx
push eax
call fcn.004016a0
jmp 0x40192b
lea ecx, [esp + 0x158]
lea edx, [esp + 0x258]
push ecx
lea eax, [esp + 0x668]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.0040235d
lea eax, [esp + 0x16c]
push str..exe
push eax
call fcn.00406e60
add esp, 0x1c
test eax, eax
jne 0x4018ab
lea ecx, [esp + 0x258]
push str.java
push ecx
call fcn.00406e60
add esp, 8
test eax, eax
je 0x401881
lea edx, [esp + 0x258]
push str.javaw
push edx
call fcn.00406e60
add esp, 8
test eax, eax
jne 0x40192b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x4004]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40192b
lea ecx, [esp + 0x158]
push str..jar
push ecx
call fcn.00406e60
add esp, 8
test eax, eax
jne 0x4018d5
lea edx, [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401916
jmp 0x401900
lea edx, [esp + 0x158]
push str..war
push edx
call fcn.00406e60
add esp, 8
test eax, eax
jne 0x40192b
lea edx, [ebx + 0x2004]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401916
lea eax, [esp + 0x44]
push eax
push ebp
push str._s_s
push edx
call fcn.004024a4
add esp, 0x10
jmp 0x40192b
lea ecx, [esp + 0x44]
push ecx
push ebp
push edx
push str._s__s_s
push edx
call fcn.004024a4
add esp, 0x14
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40170d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
lea eax, [esp + 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop ebx
add esp, 0x754
ret 8