Function at 0x40ef59
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x340], eax
xor edi, edi
lea eax, [ebp - 0x344]
mov dword [ebp - 0x344], 4
push eax
mov esi, ecx
mov dword [ebp - 0x33c], edi
push edi
push 0x1005
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x324]
cmp dword [esi + 0x2dc], edi
je 0x40f061
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40ecd7
call fcn.00420770
push 3
push dword [esi + 0x2dc]
mov dword [esi + 0x58], 3
call dword [sym.imp.aviplayer.dll_AVI_Play]
add esp, 8
mov ecx, esi
push dword [0x447d94]
call fcn.0040bda0
mov eax, dword [esi + 0x60]
mov dword [esi + 0x158], ebx
cmp eax, dword [ebx + 0x10]
je 0x40eeef
push dword [esi + 0x2dc]
call dword [sym.imp.aviplayer.dll_AVI_UnLoad]
push dword [ebx + 0x14]
lea eax, [ebp - 0x310]
push 0x43d0ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [esi + 0x130]
lea eax, [ebp - 0x310]
push dword [ebx]
push eax
push dword [esi + 0x2dc]
call dword [sym.imp.aviplayer.dll_AVI_Load]
add esp, 0x20
test eax, eax
jns 0x40ee35
push 0
push 0
push str.STRING
push str.IDS_WARN
cmp eax, 0xffffffff
mov ecx, 0x4482b8
push 0x104
lea eax, [ebp - 0x20c]
push eax
jne 0x40edd0
call fcn.00402e70
push 0
push 0
push str.STRING
push str.IDS_UPDATE_NEEED
mov ecx, 0x4482b8
call fcn.00402e40
push eax
lea eax, [ebp - 0x108]
push 0x43d0ac
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041c240
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp case.default.0x40ef46
call fcn.00402e70
lea eax, [ebp - 0x310]
mov dword [esi + 0x60], 0xffffffff
push eax
push 0
push 0
push str.STRING
push str.IDS_PLAY_FAIL
mov ecx, 0x4482b8
call fcn.00402e40
push eax
lea eax, [ebp - 0x108]
push str._s____s
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
call eax
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041c240
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp case.default.0x40ef46
push dword [esi + 0x2dc]
xorps xmm0, xmm0
mov dword [esi], 1
mov dword [esi + 0x1708], 1
movups xmmword [esi + 0x70], xmm0
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x60], eax
call dword [sym.imp.aviplayer.dll_AVI_GetMaxCamera]
mov edi, eax
add esp, 4
cmp dword [0x447db0], edi
je case.default.0x40eeb8
mov dword [0x447db0], eax
lea ecx, [esi + 0x3680]
mov dword [esi + 0x658c], eax
or edi, 0xffffffff
push dword [0x447db0]
call fcn.004068b0
push dword [0x447db0]
push str.main_max_camera___d_n
call fcn.00401740
push dword [0x447e24]
push str.property___d_n
call fcn.00401740
mov eax, dword [0x447db0]
add esp, 0x10
dec eax
cmp eax, 3
ja case.default.0x40eeb8
jmp dword [eax*4 + 0x40f074]
push 0
push 1
jmp 0x40eecf
push 0
push 4
jmp 0x40eecf
push 0
push 3
mov ecx, esi
call fcn.0040bb10
push dword [esi + 0x130]
push dword [ebx]
push dword [esi + 0x2dc]
call dword [sym.imp.aviplayer.dll_AVI_SetEventFilePos]
add esp, 0xc
jmp case.default.0x40ef46
push dword [esi + 0x130]
push dword [ebx]
push dword [esi + 0x2dc]
call dword [sym.imp.aviplayer.dll_AVI_SetEventFilePos]
push dword [esi + 0x2dc]
call dword [sym.imp.aviplayer.dll_AVI_GetMaxCamera]
mov edi, eax
add esp, 0x10
cmp dword [0x447db0], edi
je case.default.0x40ef46
mov dword [0x447db0], eax
lea ecx, [esi + 0x3680]
mov dword [esi + 0x658c], eax
or edi, 0xffffffff
push dword [0x447db0]
call fcn.004068b0
mov eax, dword [0x447db0]
dec eax
cmp eax, 3
ja case.default.0x40ef46
jmp dword [eax*4 + 0x40f084]
push 0
push 1
jmp 0x40ef5d
push 0
push 4
jmp 0x40ef5d
push 0
push 3
mov ecx, esi
call fcn.0040bb10
push dword [esi + 0x2dc]
mov ebx, dword [sym.imp.aviplayer.dll_AVI_GetMaxVideoFrame]
call ebx
add esp, 4
lea ecx, [esi + 0x6590]
push eax
push 0
call fcn.00420ed0
cmp dword [esi + 0x668c], 0
je 0x40efa5
push dword [esi + 0x2dc]
call ebx
add esp, 4
lea ecx, [esi + 0x6650]
push eax
push 0
call fcn.00412e20
cmp dword [esi + 0x6734], 0
je 0x40efc7
push dword [esi + 0x2dc]
call ebx
add esp, 4
lea ecx, [esi + 0x66f8]
push eax
push 0
call fcn.00425130
cmp edi, 0xffffffff
jne 0x40f017
cmp dword [0x447da8], 8
jne 0x40eff6
cmp dword [esi + 0x11c], 1
jne 0x40eff6
push 0
lea ecx, [esi + 0xfb0]
call fcn.00423220
push 5
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004150a0
push 0
push 0
push 5
lea ecx, [esi + 0x3680]
call fcn.00422600
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
jmp 0x40f01d
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1028
push dword [esi + 0x30]
call edi
push 0
push 0
push 0x1004
push dword [esi + 0x30]
call edi
push 0
push 0
push 5
push dword [esi + 0x188]
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], 0
call edi
mov dword [esi + 0x114], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4