Function at 0x43f060
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push str.RC_EXE
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x43f0a2
xor eax, eax
jmp 0x43f22d
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43f0be
xor eax, eax
jmp 0x43f22d
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x43f0da
xor eax, eax
jmp 0x43f22d
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43f0f4
xor eax, eax
jmp 0x43f22d
push 0x46ccf8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46ccfc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46cd00
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x24]
call fcn.0045890c
mov dword [ebp - 4], 0
push 0
push 0x1021
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Open
test eax, eax
jne 0x43f1ea
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Close
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::CFile
mov eax, dword [ebp - 0x3c]
jmp 0x43f22d
lea ecx, [ebp - 0x24]
call fcn.00401d30
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Close
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::CFile
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret