Function at 0x404e80
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406e53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [ebp + 0x190], 1
call fcn.00405780
lea esi, [ebp + 0x80]
push str.ExactFit
mov ecx, esi
mov dword [esp + 0x3c], esi
call fcn.00404aa0
push 2
mov ecx, esi
call fcn.00404a00
mov al, byte [esp + 0x27]
xor esi, esi
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov byte [esp + 0x2c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14c], esi
push ecx
call fcn.00402870
add esp, 4
test al, al
jne 0x404f46
mov edi, 0x40b0d4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x2c]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x404f46
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov edx, ecx
mov esi, 0x40b0d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x404f54
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x40b28c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push esi
push str.Temp_d.swf
push ecx
mov byte [esp + 0x158], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp + 0xc0]
lea eax, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x30]
push str._sTemp_d.swf
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov dword [ebp + 0xc0], esi
call sub.MFC42.DLL_CString::CString
push esi
lea eax, [esp + 0x1c]
push str.IDR_SWF_d
push eax
mov byte [esp + 0x158], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add esp, 0xc
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x10]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
mov byte [esp + 0x15c], 5
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x3c]
push 0
push ecx
push esi
push 0
mov edi, eax
call ebx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x40512e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 4
call fcn.00406008
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.00406008
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.00406008
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call fcn.00406008
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0
call fcn.00406008
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4051d6
mov al, byte [ecx - 1]
test al, al
je 0x4051cc
cmp al, 0xff
je 0x4051cc
dec al
mov byte [ecx - 1], al
jmp 0x4051d6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call ebx
test eax, eax
jle 0x40515d
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00404a40
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0
call fcn.00404ad0
mov ecx, esi
call fcn.00404a20
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 4
call fcn.00406008
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.00406008
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.00406008
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call fcn.00406008
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0
call fcn.00406008
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4051d6
mov al, byte [ecx - 1]
test al, al
je 0x4051cc
cmp al, 0xff
je 0x4051cc
dec al
mov byte [ecx - 1], al
jmp 0x4051d6
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4