Function at 0x4011f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
je 0x401211
cmp dword [ebp - 0x40], 2
je 0x4013d2
jmp 0x4013f8
call fcn.00401e30
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0
call fcn.004058a0
push 0
push 0x58000000
push str.ShockwaveFlash.ShockwaveFlash
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x10]
push eax
call fcn.004058a0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x41c8f0
call fcn.00402830
push 0x41c8ec
push 0x418478
mov ecx, 0x41c8f0
call fcn.004028f0
push 0
mov edx, dword [0x41c8ec]
mov eax, dword [edx]
mov ecx, dword [0x41c8ec]
push ecx
call dword [eax + 0x48]
push 0x418424
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
push 0x41c7e8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41c7e8
call fcn.00410ed0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x418428
mov ecx, dword [ebp - 0x1c]
add ecx, 0x41c7e8
push ecx
call fcn.00410dd0
add esp, 8
push str.WsTemp.swf
mov edx, dword [ebp - 0x1c]
add edx, 0x41c7e9
push edx
call fcn.00410dd0
add esp, 8
mov dword [ebp - 0x30], 0
jmp 0x401312
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x1c]
jae 0x401335
mov edx, dword [ebp - 0x30]
movsx eax, byte [edx + 0x41c7e8]
cmp eax, 0x5c
jne 0x401333
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x41c7e8], 0x2f
jmp 0x401309
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x41c7e8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x41c7e8
lea ecx, [ebp - 0x3c]
call fcn.00402590
mov ecx, eax
call fcn.00402640
push eax
mov eax, dword [0x41c8ec]
mov ecx, dword [eax]
mov edx, dword [0x41c8ec]
push edx
call dword [ecx + 0x58]
lea ecx, [ebp - 0x3c]
call fcn.00402620
mov ecx, dword [0x41c8ec]
call fcn.004027e0
jmp 0x4013f8
mov eax, dword [0x41c8ec]
mov ecx, dword [eax]
mov edx, dword [0x41c8ec]
push edx
call dword [ecx + 8]
mov ecx, 0x41c8f0
call fcn.00401e00
push 0x41c7e8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410224
mov esp, ebp
pop ebp
ret 0x10