Function at 0x408934
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
push esi
push edi
xor esi, esi
push 5
push dword [0x47ef28]
mov ecx, 0x90
xor eax, eax
lea edi, [ebp - 0x26c]
mov dword [ebp - 0x270], esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x408990
push esi
push str.fenrir
push str._dir
push dword [0x47ef28]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408b95
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x478]
push eax
call edi
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x680]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x478]
mov esi, 0x47da04
push eax
push esi
call edi
lea eax, [ebp - 0x244]
push 0x40d86c
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
je 0x408a47
push esi
call ebx
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x408a47
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, dword [0x47eed4]
push esi
push eax
mov dword [ebp - 4], 1
call edi
push 1
call fcn.004078b6
pop ecx
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x244]
imul eax, eax, 0x210
add eax, dword [0x47eed4]
inc dword [ebp - 4]
push ecx
push eax
call edi
push dword [ebp - 4]
call fcn.004078b6
pop ecx
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x408ab8
cmp dword [ebp - 4], 1
jne 0x408a9c
lea eax, [ebp - 0x244]
push 0x40dab4
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x408a6c
mov eax, dword [ebp - 0x270]
and eax, 0x10
cmp al, 0x10
jne 0x408a47
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
jmp 0x408a47
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x408aca
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
push dword [0x47eed4]
call edi
push esi
call ebx
mov dword [0x47da00], 1
call fcn.00405536
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1009
push dword [0x47d9c8]
call esi
push 2
pop edi
push edi
push dword [ebp - 4]
push 0x102f
push dword [0x47d9c8]
call esi
push ebx
push 0x24
push 0x100
push dword [0x47d9c8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
push eax
push ebx
push ebx
push 0x1042
push dword [0x47d9c8]
mov dword [ebp - 0x20], ebx
call esi
mov ebx, 0x102b
push eax
push ebx
push dword [0x47d9c8]
call esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
push edi
push ebx
push dword [0x47d9c8]
call esi
push edi
push edi
push 0x1043
push dword [0x47d9c8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 8
push dword [0x47eee0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x47d9dc]
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
pop esi
leave
ret