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

Disassembly:
push 0xffffffffffffffff
push 0x4029c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov al, byte [esp + 0x17]
push ebx
push ebp
push esi
mov dword [esp + 0x34], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebx
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], ebx
push ecx
call section..text
add esp, 4
test al, al
jne 0x401f0a
mov edi, 0x405124
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
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 0x401f0a
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x405124
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
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]
cmp edi, ebx
jne 0x401f18
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 0x405150
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
push 1
lea ecx, [esp + 0x18]
push str.Temp_d.swf
push ecx
mov byte [esp + 0x158], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x40]
lea eax, [esp + 0x1c]
push ebx
push edx
push str._sTemp_d.swf
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 1
lea edx, [esp + 0x1c]
mov bl, 4
push str.IDR_SWF_d
push edx
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
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 edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
mov byte [esp + 0x15c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 0x3c]
push 0
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4020e1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call fcn.004023e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.004023e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.004023e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call fcn.004023e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0
call fcn.004023e0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x402183
mov al, byte [ecx - 1]
test al, al
je 0x4020da
cmp al, 0xff
je 0x4020da
dec al
mov byte [ecx - 1], al
jmp 0x402183
dec ecx
push ecx
jmp 0x40217b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
lea esi, [ecx + 0x60]
mov ecx, esi
call fcn.00401430
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0
call fcn.00401450
mov ecx, esi
call fcn.00401410
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], bl
call fcn.004023e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.004023e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.004023e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call fcn.004023e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0
call fcn.004023e0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402183
mov cl, byte [eax - 1]
test cl, cl
je 0x402179
cmp cl, 0xff
je 0x402179
dec cl
mov byte [eax - 1], cl
jmp 0x402183
dec eax
push eax
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