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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c709
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c0
mov dword [ebp - 0x8b8], ecx
mov eax, dword [ebp + 8]
push eax
push str.SearchAllInf:_s
call fcn.004025fd
add esp, 8
mov ecx, dword [ebp - 0x8b8]
add ecx, 0xa4
call fcn.004085e0
mov ecx, dword [ebp + 8]
push ecx
push str._s
lea edx, [ebp - 0x550]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x550]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x406be6
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x554]
call fcn.0040a15c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x554]
call sub.MFC42.DLL_CString::MakeUpper
push 0x411194
push 3
lea edx, [ebp - 0x8a8]
push edx
lea ecx, [ebp - 0x554]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x8bc], eax
mov eax, dword [ebp - 0x8bc]
mov dword [ebp - 0x8c0], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c0]
push ecx
call fcn.00408630
mov byte [ebp - 0x8a4], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a8]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x8a4]
and edx, 0xff
test edx, edx
je 0x406a64
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x411198
lea edx, [ebp - 0x554]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x554]
push eax
mov ecx, dword [ebp - 0x8b8]
add ecx, 0xa4
call fcn.00408600
jmp 0x406bcf
push 0x4111a0
push 3
lea ecx, [ebp - 0x8b0]
push ecx
lea ecx, [ebp - 0x554]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x8c4], eax
mov edx, dword [ebp - 0x8c4]
mov dword [ebp - 0x8c8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x8c8]
push eax
call fcn.00408630
mov byte [ebp - 0x8ac], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b0]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x8ac]
and ecx, 0xff
test ecx, ecx
je 0x406bcf
push 4
push 0
lea edx, [ebp - 0x760]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 4
push 0
lea eax, [ebp - 0x65c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x760]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x760]
push eax
push str._sdrivers_s
lea ecx, [ebp - 0x65c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x65c]
push edx
push str.COPY_SYS_FILE:_s
call fcn.004025fd
add esp, 8
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x65c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x558], eax
cmp dword [ebp - 0x558], 0xffffffff
jne 0x406bc2
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s
lea ecx, [ebp - 0x554]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x8b4], esp
lea edx, [ebp - 0x554]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x8cc], eax
mov ecx, dword [ebp - 0x8b8]
call fcn.00406d95
lea eax, [ebp - 0x65c]
push eax
push str.ENTER_COPY_SYS_FILE:_s
call fcn.004025fd
add esp, 8
mov ecx, dword [ebp - 0x558]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406bcf
mov edx, dword [ebp - 0x558]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x554]
call sub.MFC42.DLL_CString::CString
jmp 0x40698b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4