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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x69ff0c]
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 0x4014a3
mov ecx, dword [str.mfl.dat]
mov edx, dword [0x5826d4]
mov dword [eax], ecx
mov cl, byte [0x5826d8]
mov dword [eax + 4], edx
lea edx, [ebp - 0x20c]
push 0x582678
push edx
mov byte [eax + 8], cl
call fcn.005644f0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4014fa
push eax
call fcn.005642a6
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056411e
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 0x401513
mov ecx, dword [str.Resource.bin]
mov edx, dword [0x5826c4]
mov dword [eax], ecx
mov ecx, dword [0x5826c8]
mov dword [eax + 4], edx
mov edx, dword [0x5826cc]
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 0x401560
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.0056412d
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.0056412d
add esp, 0x2c
lea ecx, [ebp - 0x35c]
push ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401560
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 0x4015f0
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.0056412d
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.0056412d
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 0x401620
push ebx
call fcn.005642a6
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0056411e
mov esp, ebp
pop ebp
ret