Function at 0x4021a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405b19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x40221f
push 0x80
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402270
push 0x40
push 0x406a10
push 0x406a00
mov ecx, dword [ebp - 0x10]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004053aa
mov eax, dword [ebp - 0x4c]
jmp 0x4023c9
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4022c6
push 0x40
push 0x406a10
push 0x4069f0
mov ecx, dword [ebp - 0x10]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004053aa
mov eax, dword [ebp - 0x50]
jmp 0x4023c9
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40230d
push 0x40
push 0x406a10
push 0x4069c0
mov ecx, dword [ebp - 0x10]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004053aa
mov eax, dword [ebp - 0x54]
jmp 0x4023c9
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40236e
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x402393
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004053aa
mov eax, dword [ebp - 0x58]
jmp 0x4023c9
mov eax, dword [ebp - 0x18]
push eax
call fcn.004023e0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004053aa
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc