Function at 0x40ae40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x20c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40ae73
mov ecx, dword [str.mfl.dat]
mov edx, dword [0x58b9f4]
mov dword [eax], ecx
mov cl, byte [0x58b9f8]
mov dword [eax + 4], edx
lea edx, [ebp - 0x20c]
push 0x58b998
push edx
mov byte [eax + 8], cl
call fcn.0056d8d2
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40aeca
push eax
call fcn.0056d5d1
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40aee3
mov ecx, dword [str.Resource.bin]
mov edx, dword [0x58b9e4]
mov dword [eax], ecx
mov ecx, dword [0x58b9e8]
mov dword [eax + 4], edx
mov edx, dword [0x58b9ec]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
jmp 0x40af30
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [ebp - 0x330]
push ecx
push edi
push str._d__s_t
push ebx
call fcn.0056e861
movzx edx, word [ebp - 0x212]
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x216]
push edx
movzx edx, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push ecx
push edx
push eax
push str._4d__02d__02d__02d__02d_n
push ebx
call fcn.0056e861
add esp, 0x2c
lea ecx, [ebp - 0x35c]
push ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40af30
lea edx, [ebp - 0x108]
push edx
push 0x104
mov dword [ebp - 0x360], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [ebp - 0x108]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40afc0
mov ecx, 6
mov esi, str.ResourceSkillArea.bsad
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x108]
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [ecx]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edi, dword [ebp - 0x360]
lea ecx, [ebp - 0x330]
push ecx
push edi
push str._d__s_t
push ebx
call fcn.0056e861
movzx edx, word [ebp - 0x212]
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x216]
push edx
movzx edx, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push ecx
push edx
push eax
push str._4d__02d__02d__02d__02d_n
push ebx
call fcn.0056e861
add esp, 0x2c
lea ecx, [ebp - 0x35c]
push ecx
inc edi
push esi
mov dword [ebp - 0x360], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40aff0
push ebx
call fcn.0056d5d1
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret