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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
push ebx
push esi
push edi
mov edi, 0x105
xor esi, esi
push edi
lea eax, [ebp - 0x45c]
push esi
push eax
call fcn.00402250
mov ebx, 0x104
lea eax, [ebp - 0x560]
push ebx
push esi
push eax
call fcn.00402250
add esp, 0x18
lea eax, [ebp - 0x560]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00402250
add esp, 0xc
lea eax, [ebp - 0x10c]
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call fcn.00402420
pop ecx
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40129f
push str.Program
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
call fcn.004023a0
pop ecx
test eax, eax
pop ecx
jne 0x401296
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
call fcn.004023a0
pop ecx
test eax, eax
pop ecx
jne 0x401296
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.00402250
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call fcn.004022b0
add esp, 0x14
lea eax, [ebp - 0x45c]
push eax
call esi
cmp byte [ebp + eax - 0x45d], 0x5c
je 0x40125d
lea eax, [ebp - 0x45c]
push 0x40a070
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x45c]
push eax
call fcn.0040107d
pop ecx
lea eax, [ebp - 0x354]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011c0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x103
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call esi
cmp byte [ebp + eax - 0x10d], 0x5c
lea eax, [ebp - 0x10c]
push eax
jne 0x4012de
call esi
mov ecx, ebx
sub ecx, eax
push ecx
push 0x40a06c
jmp 0x4012ea
call esi
mov ecx, ebx
sub ecx, eax
push ecx
push 0x40a068
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp + eax - 0x10c]
push eax
call edi
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401446
lea eax, [ebp - 0x328]
push 0x40a064
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401425
lea eax, [ebp - 0x328]
push 0x40a060
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401425
test byte [ebp - 0x354], 0x10
je 0x401425
push 0x103
lea eax, [ebp - 0x214]
push dword [ebp + 8]
push eax
call edi
lea eax, [ebp - 0x214]
push eax
call esi
cmp byte [ebp + eax - 0x215], 0x5c
jne 0x401392
lea eax, [ebp - 0x214]
push eax
call esi
mov ecx, 0x103
jmp 0x4013af
lea eax, [ebp - 0x214]
push 0x40a070
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x214]
push eax
call esi
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x328]
push ecx
push eax
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp + eax - 0x214]
push eax
call edi
push str.Program
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
call fcn.004023a0
pop ecx
test eax, eax
pop ecx
jne 0x401425
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push eax
call fcn.004023a0
pop ecx
test eax, eax
pop ecx
jne 0x401425
lea eax, [ebp - 0x214]
push eax
call fcn.00401129
pop ecx
lea eax, [ebp - 0x354]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40131d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret