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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x6c0558]
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 0x40b443
mov ecx, dword [str.mfl.dat]
mov edx, dword [0x5999fc]
mov dword [eax], ecx
mov cl, byte [0x599a00]
mov dword [eax + 4], edx
lea edx, [ebp - 0x20c]
push 0x5999a0
push edx
mov byte [eax + 8], cl
call fcn.0057ac52
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40b49a
push eax
call fcn.0057a951
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ad52
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 0x40b4b3
mov ecx, dword [str.Resource.bin]
mov edx, dword [0x5999ec]
mov dword [eax], ecx
mov ecx, dword [0x5999f0]
mov dword [eax + 4], edx
mov edx, dword [0x5999f4]
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 0x40b500
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.0057bbe1
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.0057bbe1
add esp, 0x2c
lea ecx, [ebp - 0x35c]
push ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b500
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 0x40b590
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.0057bbe1
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.0057bbe1
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 0x40b5c0
push ebx
call fcn.0057a951
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0057ad52
mov esp, ebp
pop ebp
ret