Function at 0x4c87c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx + 0x70]
push edi
mov edi, dword [ebp + 8]
or esi, 0x200
push edi
mov dword [ebx + 0x70], esi
call fcn.00504880
test eax, eax
jne 0x4c87ff
mov eax, dword [ebx + 0x80]
lea ecx, [ebx + 0x80]
push edi
call dword [eax + 8]
test eax, eax
je 0x4c8882
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x108]
cmp eax, ecx
jl 0x4c8824
mov esi, eax
sub esi, ecx
add esi, str.BasePosition
mov dl, byte [esi]
cmp dl, byte [edi + eax + 8]
jne 0x4c8874
dec eax
dec esi
cmp eax, ecx
jge 0x4c8816
movss xmm0, dword [ebx + 0x40]
lea eax, [ebx + 0x1a0]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebx + 0x44]
mov edx, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ebx + 0x48]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
movss dword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0xc], edx
mov cl, byte [ebx + 0x76]
mov byte [eax + 0x10], cl
mov dl, byte [ebx + 0x77]
mov byte [eax + 0x11], dl
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x108]
cmp eax, ecx
jl 0x4c88b2
mov esi, eax
sub esi, ecx
add esi, str.RenderInstAnim
lea esp, [esp]
mov dl, byte [esi]
cmp dl, byte [edi + eax + 8]
jne 0x4c895b
dec eax
dec esi
cmp eax, ecx
jge 0x4c88a0
cmp dword [edi], 0
je 0x4c890c
movsx eax, word [ebx + 0xb0]
cmp eax, 0xffffffff
jne 0x4c88e3
mov eax, 0x70a557
push edi
mov esi, 0x80
mov edx, eax
call fcn.00502b40
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x8cf1b4]
imul eax, eax, 0x98
add eax, ecx
push edi
mov esi, 0x80
mov edx, eax
call fcn.00502b40
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x158]
cmp byte [eax], 0
je 0x4c894d
push eax
lea edi, [ebx + 0xb0]
push edi
mov ecx, 0x8ce750
call fcn.0043b1a0
mov edx, edi
call fcn.0042fa70
test eax, eax
je 0x4c894d
lea esi, [ebx + 0xc0]
mov ecx, edi
call fcn.00573c60
push 0
mov eax, 1
call fcn.00573d30
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.AnimSurfaceAudio_Package
call fcn.00502c40
test eax, eax
je 0x4c8a12
cmp dword [edi], 0
je 0x4c8998
lea eax, [ebx + 0xb4]
call fcn.0042eb50
push edi
mov esi, 0x80
mov edx, eax
call fcn.00502b40
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [edi + 0x158]
cmp byte [edi], 0
je 0x4c8a04
push edi
lea ecx, [esp + 0x30]
call fcn.00626ac0
mov esi, 0x70c7fc
call fcn.00627210
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.006176f0
test esi, esi
je 0x4c89e4
push 0x70a557
lea ecx, [ebx + 0xb4]
call fcn.00401320
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ebx + 0xb4]
push edi
mov ecx, esi
call fcn.00401320
mov eax, esi
call fcn.0042eb70
test eax, eax
jne 0x4c8a04
mov edx, esi
call fcn.0042fa70
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.AnimSurfacePlayAnim
call fcn.00502c40
test eax, eax
je 0x4c8b3c
cmp dword [edi], 0
je 0x4c8ac1
lea esi, [ebx + 0xb0]
mov edx, esi
call fcn.0042fa70
test eax, eax
je 0x4c8a99
mov edx, esi
call fcn.0042fa70
mov ecx, dword [ebx + 0xc8]
cmp ecx, 0xffffffff
je 0x4c8a70
mov edx, dword [eax + 0x78]
lea ecx, [ecx + ecx*4]
shl ecx, 5
lea edx, [ecx + edx + 0x3c]
call fcn.00502b90
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movsx eax, word [ebx + 0x190]
mov ecx, dword [0x91a2c0]
mov edx, dword [ecx + eax*8]
add edx, dword [0x91a2d4]
call fcn.00502b90
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movsx edx, word [ebx + 0x190]
mov eax, dword [0x91a2c0]
mov edx, dword [eax + edx*8]
add edx, dword [0x91a2d4]
call fcn.00502b90
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebx + 0xb0]
call fcn.0042fa70
test eax, eax
mov eax, dword [edi + 0x158]
je 0x4c8b1d
lea esi, [ebx + 0xc0]
push eax
mov eax, esi
call fcn.00532130
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4c8b2e
mov eax, dword [edi + 0x158]
mov ecx, 0x91a2c0
call fcn.00504000
mov word [ebx + 0x190], ax
mov ebx, dword [esp + 0xc]
mov eax, esi
call fcn.00573cd0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x91a2c0
call fcn.00504000
mov word [ebx + 0x190], ax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.AnimSurfaceIsAnimDone
call fcn.00502c40
test eax, eax
je 0x4c8b70
cmp dword [edi], 0
je 0x4c8b62
lea eax, [ebx + 0xc0]
call fcn.00475a20
mov ecx, dword [edi + 0x158]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.AnimSurfaceFrameCount
call fcn.00502c40
test eax, eax
je 0x4c8b9f
cmp dword [edi], 0
je 0x4c8b91
mov edx, dword [edi + 0x158]
mov eax, dword [ebx + 0xd0]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.AnimSurfaceIsActive
call fcn.00502c40
test eax, eax
je 0x4c8beb
cmp dword [edi], 0
mov edx, dword [ebx]
je 0x4c8bcf
mov ecx, ebx
call dword [edx + 0x78]
mov ecx, dword [edi + 0x158]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x158]
mov ecx, dword [eax]
push ecx
mov ecx, ebx
call dword [edx + 0x3c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4