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

Disassembly:
mov eax, 0x462dc7
call fcn.00451b80
sub esp, 0x184
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov al, byte [ebp + 0xb]
push 1
pop ebx
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], al
call fcn.004079c3
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov byte [ebp - 0x30], al
call fcn.004079c3
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov byte [ebp - 0x40], al
call fcn.004079c3
mov esi, 0x47cdfc
push esi
call fcn.004525b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040819b
test byte [0x47cd7a], bl
mov byte [ebp - 4], 4
jne 0x413d75
mov al, byte [ebp + 0xb]
or byte [0x47cd7a], bl
push 0x413f50
mov byte [0x47cd80], al
mov dword [0x47cd84], edi
mov dword [0x47cd88], edi
mov dword [0x47cd8c], edi
call fcn.00452cce
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x413d81
mov eax, 0x466500
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [0x47cd88]
mov ecx, 0x47cd80
push dword [0x47cd84]
call fcn.00411728
push dword [0x466504]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x30]
push edi
push eax
call fcn.004080af
mov esi, str..
push esi
call fcn.004525b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0040796c
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x413dd3
mov eax, 0x466500
lea ecx, [ebp - 0x190]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413dfd
mov ecx, dword [ebp + 8]
push 0x47cd80
call fcn.00418c87
mov dword [ebp - 0x10], ebx
jmp 0x413f0b
lea eax, [ebp - 0x164]
push 0x47506c
push eax
call fcn.004535bc
pop ecx
test eax, eax
pop ecx
je 0x413ede
lea eax, [ebp - 0x164]
push 0x475068
push eax
call fcn.004535bc
pop ecx
test eax, eax
pop ecx
je 0x413ede
push dword [0x466504]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push edi
push eax
call fcn.004080af
push 0x5c
push ebx
lea ecx, [ebp - 0x20]
call fcn.00408d95
lea eax, [ebp - 0x164]
push eax
call fcn.004525b0
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040796c
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x413e7a
mov eax, 0x466500
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test byte [ebp - 0x190], 0x10
je 0x413ede
test byte [ebp - 0x190], 6
jne 0x413ede
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.004079c3
lea eax, [ebp - 0x164]
push eax
call fcn.004525b0
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040819b
lea eax, [ebp - 0x50]
mov ecx, 0x47cd80
push eax
mov byte [ebp - 4], 5
call fcn.00418cef
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.004079c3
lea eax, [ebp - 0x190]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413dfd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push 0x47cd80
call fcn.00418c87
mov dword [ebp - 0x10], ebx
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004079c3
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004079c3
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004079c3
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004079c3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret