Function at 0x494db0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x118
mov ecx, 0xc931b8
push ebx
push ebp
push esi
xor ebx, ebx
push edi
xor eax, eax
cmp dword [ecx], ebx
je 0x494de0
add ecx, 0x194
inc eax
cmp ecx, 0xc93808
jl 0x494dc3
push 0x4c6c04
jmp 0x495077
lea ecx, [eax + eax*4]
mov edi, eax
cmp eax, 0xffffffff
mov dword [esp + 0x10], edi
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
lea ebp, [edx*4 + 0xc931b8]
jne 0x494e05
push 0x4c6c04
jmp 0x495077
call sub.AVIFIL32.dll_AVIFileInit
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x18]
push eax
lea esi, [ebp + 8]
push 0x40
push ecx
push esi
mov dword [esp + 0x28], 0x20000
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], bx
mov byte [esp + 0x30], 0xc0
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0x46
call sub.AVIFIL32.dll_AVIFileOpenA
cmp eax, 0x8004406d
jg 0x494e9c
je 0x494e92
cmp eax, 0x80040154
je 0x494e88
cmp eax, 0x80044066
je 0x494e7e
cmp eax, 0x80044067
jne 0x494eab
push 0x4c6bd4
jmp 0x495077
push 0x4c6b78
jmp 0x495077
push str.AVIFileOpen
jmp 0x495077
push 0x4c6adc
jmp 0x495077
cmp eax, 0x8004406f
je 0x495072
cmp eax, ebx
je 0x494ec8
push eax
push 0x4c6aa4
push ebx
call fcn.00494d50
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov eax, dword [esi]
lea edx, [esp + 0x30]
push 0x6c
push edx
push eax
mov dword [esp + 0x48], ebx
call sub.AVIFIL32.dll_AVIFileInfoA
test eax, eax
je 0x494ee9
push 0x4c6a84
jmp 0x495077
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x28], esi
jle 0x494f87
mov edx, dword [ebp + 8]
push esi
lea ecx, [esp + 0x30]
push ebx
push ecx
push edx
call sub.AVIFIL32.dll_AVIFileGetStream
test eax, eax
jne 0x494f87
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x9c]
push 0x8c
push eax
push ecx
call sub.AVIFIL32.dll_AVIStreamInfoA
test eax, eax
jne 0x494f67
mov eax, dword [esp + 0x9c]
cmp eax, 0x73646976
jne 0x494f60
mov edx, dword [esp + 0x2c]
lea edi, [ebp + 0x9c]
mov ecx, 0x23
lea esi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov dword [ebp + 0x128], edx
jmp 0x494f67
cmp eax, 0x73647561
je 0x494f76
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x494efb
jmp 0x494f87
push 0x4c6a68
mov byte [ebp + 0x190], bl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x130]
push ebx
push eax
push ecx
push edx
push edi
mov dword [ebp], 1
call fcn.004951d0
add esp, 0x14
sub eax, ebx
je 0x494fd8
dec eax
je 0x494fcd
push 0x4c69e0
push ebx
call fcn.00494d50
add esp, 8
mov byte [ebp + 0x191], bl
jmp 0x494fdf
push 0x4c6998
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp + 0x191], 1
mov eax, dword [ebp + 0x12c]
push ebx
push eax
call sub.AVIFIL32.dll_AVIStreamGetFrame
cmp eax, ebx
jne 0x494ffd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov ecx, dword [eax]
add ecx, eax
mov dword [ebp + 0x130], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x134], edx
mov dword [ebp + 4], ebx
mov dword [ebp + 0x174], ebx
mov dword [ebp + 0x178], 0xffffffff
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp + 0x184], eax
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0xb0]
mov ecx, dword [ebp + 0xb4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov eax, edi
pop edi
fmul dword [0x4bc610]
pop esi
fidiv dword [esp + 8]
fstp dword [ebp + 0x18c]
pop ebp
pop ebx
add esp, 0x118
ret
push 0x4c6960
push ebx
call fcn.00494d50
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret