Function at 0x4062b9
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
push ebx
push esi
push edi
mov esi, ecx
push 0x400
call sub.MFC42.DLL_operatornew
and dword [ebp - 0x148], 0
push 0x4f
pop ecx
mov ebx, eax
push dword [ebp + 8]
xor eax, eax
and dword [ebp - 4], eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
push ebx
call sub.MSVCRT.dll_strcpy
push ebx
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp byte [eax + ebx - 1], 0x5c
je 0x406310
push 0x40e654
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
xor eax, eax
cmp dword [esi + 0x88], eax
mov dword [ebp - 8], eax
jbe 0x4064b1
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ebp + 8]
add eax, ecx
cmp dword [eax + 4], 0
je 0x40649b
cmp dword [eax], 2
jne 0x40649b
push dword [eax + 0x10]
push ebx
call sub.MSVCRT.dll_strcat
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
push ebx
call edi
cmp eax, 0xffffffff
je 0x40648c
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
and byte [eax + 1], 0
mov eax, dword [esi + 0xa4]
mov ecx, dword [ebp + 8]
push dword [eax + ecx + 0x10]
call sub.MSVCRT.dll_strlen
mov ecx, dword [esi + 0xa4]
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + edx + 0x10]
lea eax, [eax + ecx + 1]
push eax
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x14
push ebx
call edi
cmp eax, 0xffffffff
je 0x40645e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
mov dword [ebp - 4], 1
call edi
push dword [esi + 0xac]
mov ecx, esi
push dword [esi + 0xa8]
push 1
push ebx
call fcn.004054b0
test eax, eax
je 0x4063e9
push 7
push ebx
call edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40648c
jmp 0x40648a
and byte [ebp - 0x548], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x547]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x548]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x548]
push str..upt
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x548]
push dword [esi + 0xac]
mov ecx, esi
push dword [esi + 0xa8]
push 1
push eax
call fcn.004054b0
test eax, eax
je 0x40648c
push 4
lea eax, [ebp - 0x548]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x548]
push 7
push eax
jmp 0x40647b
push dword [esi + 0xac]
mov ecx, esi
push dword [esi + 0xa8]
push 1
push ebx
call fcn.004054b0
test eax, eax
je 0x40648c
push 7
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0xc], 0
je 0x40648c
mov eax, dword [ebp + 0xc]
inc dword [eax]
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
and byte [eax + 1], 0
pop ecx
pop ecx
inc dword [ebp - 8]
add dword [ebp + 8], 0x18
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x88]
jb 0x406324
push 0x40e648
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x148]
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jmp 0x406568
test byte [ebp - 0x148], 0x10
je 0x406558
lea eax, [ebp - 0x11c]
push 0x40e644
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406558
lea eax, [ebp - 0x11c]
push 0x40e640
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x406558
lea eax, [ebp - 0x11c]
push str.windows
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x406558
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
and byte [eax + 1], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x10
mov ecx, esi
push dword [ebp + 0xc]
push ebx
call fcn.004062b9
test eax, eax
je 0x406558
mov dword [ebp - 4], 1
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4064d6
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8