Function at 0x50b160
Capabilities:
Terminate process

Disassembly:
mov al, byte [0xac0ba0]
sub esp, 0x610
push ebx
xor ebx, ebx
push ebp
push esi
cmp al, bl
push edi
jne 0x50b19a
mov eax, dword [0x6b7920]
mov ecx, dword [sym.imp.binkw32.dll__BinkOpenDirectSound_4]
push eax
push ecx
call dword [sym.imp.binkw32.dll__BinkSetSoundSystem_8]
push 0x100
call dword [sym.imp.binkw32.dll__BinkSetIOSize_4]
mov byte [0xac0ba0], 1
mov eax, dword [0xac0ba4]
cmp eax, ebx
je 0x50b1d5
push eax
call dword [sym.imp.binkw32.dll__BinkClose_4]
mov eax, dword [0xac0bac]
cmp eax, ebx
je 0x50b1cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0xac0ba8]
mov dword [0xac0bac], ebx
push edx
call fcn.00518883
add esp, 4
mov dword [0xac0ba4], ebx
mov eax, dword [esp + 0x628]
push str.Request_to_play_a_non_full_screen_movie_
cmp eax, ebx
setne al
push eax
call fcn.004015b0
mov edi, str.movie_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x62c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str._t_tMOVIE_PLAYING__s_r_n
call fcn.004015b0
mov eax, dword [0xac0ba8]
add esp, 0x10
cmp eax, ebx
je 0x50b425
lea edi, [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x420]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x124]
push ecx
call fcn.0052a200
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x58]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
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 + 0x3c]
push ecx
call fcn.0052a200
mov byte [eax + 1], bl
mov edi, str.data_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xfc]
and ecx, 3
push eax
mov eax, dword [0xac0ba8]
lea edx, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
push ecx
push edx
push eax
call fcn.00518c88
add esp, 0x20
test al, al
jne 0x50b3c2
lea ecx, [esp + 0x220]
push ecx
call fcn.0051a2ad
add esp, 4
test al, al
je 0x50b3a7
lea edx, [esp + 0x220]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push str.PKR_t:__s_s____s_r_n
call fcn.004015b0
add esp, 0x10
push ebp
push str._t_tUnable_to_open_movie_file__s_r_n
call fcn.004015b0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x610
ret
mov eax, dword [esp + 0x114]
cmp eax, 0xffffffff
mov esi, eax
je 0x50b3a7
mov edx, dword [0xac0ba8]
push edx
call fcn.005188d4
add esp, 4
lea eax, [esp + 0x420]
push ebx
push 1
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0xac0bac], eax
jne 0x50b41b
mov ecx, dword [0xac0ba8]
push ecx
call fcn.00518883
add esp, 4
mov dword [0xac0bac], ebx
jmp 0x50b3a7
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0xac0bac]
cmp eax, ebx
je 0x50b435
push 0x1800000
jmp 0x50b498
mov edi, str.datamovie_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x124]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.binkw32.dll__BinkOpen_8]
cmp eax, ebx
mov dword [0xac0ba4], eax
je 0x50b3a7
push 1
push eax
call dword [sym.imp.binkw32.dll__BinkSetVideoOnOff_8]
mov ecx, dword [0xac0ba4]
push 0xac0ab8
push ecx
call dword [sym.imp.binkw32.dll__BinkGetSummary_8]
mov edx, dword [0xac0ab8]
mov esi, dword [0xac0abc]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x70]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x6b7900]
lea ecx, [esp + 0x74]
mov dword [0xac0b90], ebx
mov dword [0xac0b94], ebx
mov dword [0xac0b98], edx
mov dword [0xac0b9c], esi
mov dword [esp + 0x74], 0x7c
mov dword [esp + 0x78], 7
mov dword [esp + 0xdc], 0x40
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], esi
mov edx, dword [eax]
push 0xac0a3c
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
cmp esi, ebx
je 0x50b55c
push 0x2a5
push str.C:_backupSpideyPCSpideyPCD3dPCMovie.cpp
push esi
call fcn.004fc820
add esp, 0xc
cmp esi, ebx
jge 0x50b55c
call fcn.005001b0
push esi
call fcn.0052a101
mov edx, dword [0xac0a3c]
push edx
call dword [sym.imp.binkw32.dll__BinkDDSurfaceType_4]
cmp eax, 0xffffffff
mov dword [0xac0b68], eax
je 0x50b577
cmp eax, ebx
jne 0x50b585
push eax
push str.Bink:_Unsupported_primary_surface_format__d.
call fcn.004015b0
add esp, 8
call fcn.00515480
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x610
ret