Function at 0x40aeb0
Capabilities:
Check for unmoving mouse cursor
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x1c
sub eax, 1
push ebx
push ebp
push esi
push edi
je 0x40aefa
sub eax, 1
jne 0x40b0f2
mov eax, dword [0x424058]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x40aee3
mov dword [0x424058], 0
push 0x423f20
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.0040b4a6
call fcn.0040ad10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push 0
push 0x58000000
push str.ShockwaveFlash.ShockwaveFlash
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x30], esp
lea edx, [esp + 0x34]
push esi
mov ecx, 0x424058
mov dword [eax], edx
call fcn.00401300
push 0x424024
push 0x41b49c
mov ecx, 0x424058
call fcn.00401760
mov eax, dword [0x424024]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push 0
push eax
call edx
push 0x41be74
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x423f20
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, 0x423f20
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40afb0
mov edx, dword [str.WsTemp.swf]
sub eax, ecx
mov ecx, 0x2f
mov word [eax + 0x423f20], cx
mov ecx, dword [0x41be6c]
mov dword [eax + 0x423f21], edx
mov dx, word [0x41be70]
mov dword [eax + 0x423f25], ecx
mov cl, byte [0x41be72]
mov word [eax + 0x423f29], dx
mov byte [eax + 0x423f2b], cl
mov ecx, 0
je 0x40b014
mov dl, 0x5c
cmp byte [ecx + 0x423f20], dl
jne 0x40b00f
mov byte [ecx + 0x423f20], 0x2f
inc ecx
cmp ecx, eax
jb 0x40b000
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x423f20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
mov esi, eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x423f20
lea ecx, [esp + 0x14]
call fcn.00401690
mov eax, dword [eax]
test eax, eax
je 0x40b07a
mov eax, dword [eax]
jmp 0x40b07c
xor eax, eax
mov ecx, dword [0x424024]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x58]
push ecx
call eax
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40b0d3
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40b0cb
test esi, esi
je 0x40b0cb
mov eax, dword [esi]
test eax, eax
je 0x40b0b2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b0c2
push eax
call fcn.0040c77b
add esp, 4
push esi
call fcn.0040c250
add esp, 4
mov dword [esp + 0x10], 0
mov eax, dword [0x424024]
mov edx, dword [eax]
mov esi, eax
push eax
mov eax, dword [edx + 0x70]
call eax
test eax, eax
jge 0x40b0f2
push 0x41b49c
push esi
push eax
call fcn.0040c0c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.0040b4a6