Function at 0x455040
Capabilities:
Packed with generic packer

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x840]
test eax, eax
mov ecx, dword [edi + 0x820]
mov ecx, dword [ecx + 8]
je 0x4552e1
movzx ebp, ax
cmp ebp, dword [ecx + 8]
jae 0x4552e1
lea ebp, [ebp + ebp*4]
shl ebp, 5
add ebp, dword [ecx]
cmp dword [ebp + 0x9c], eax
jne 0x4552e1
mov eax, dword [edi + 0x844]
cmp eax, 1
je 0x4550d5
cmp eax, 4
je 0x4550d5
cmp eax, 5
jne 0x4550c3
cmp dword [ebp + 0x5c], 0
jle 0x455102
fld dword [0x679388]
push ecx
fstp dword [esp]
push 0
push str.anim_idle_handing
mov eax, 0x14
mov esi, ebp
call fcn.00473bf0
mov dword [edi + 0x844], 6
jmp 0x455102
cmp eax, 2
jne 0x455102
cmp dword [ebp + 0x5c], 0
jle 0x455102
call fcn.004542f0
jmp 0x455102
cmp dword [ebp + 0x5c], 0
jle 0x455102
fld dword [0x679388]
push ecx
fstp dword [esp]
push 0
push str.anim_idle
mov eax, 0x14
mov esi, ebp
call fcn.00473bf0
jmp 0x7c86fc
mov eax, dword [edi + 0x844]
cmp eax, 3
je 0x455116
cmp eax, 6
jne 0x4551c7
push 0x11
push str.MOUTH_BIG_SMILE
lea esi, [edi + 0x854]
push esi
xor eax, eax
call fcn.004419a0
cmp eax, 0xffffffff
je 0x455151
mov esi, dword [0x6a7508]
push str.Dave_mouths
mov ebx, ebp
call fcn.00472f30
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x58]
shl edx, 5
mov dword [edx + eax + 0x44], esi
jmp 0x4551c7
push 0x13
push str.MOUTH_SMALL_SMILE
push esi
xor eax, eax
call fcn.004419a0
cmp eax, 0xffffffff
je 0x455186
mov esi, dword [0x6a75f4]
push str.Dave_mouths
mov ebx, ebp
call fcn.00472f30
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*2]
shl ecx, 5
mov dword [ecx + edx + 0x44], esi
jmp 0x4551c7
push 0xe
push str.MOUTH_BIG_OH
push esi
xor eax, eax
call fcn.004419a0
cmp eax, 0xffffffff
je 0x4551a2
mov eax, dword [0x6a7234]
push eax
jmp 0x4551bb
push 0
push esi
mov edx, str.MOUTH_SMALL_OH
call fcn.00441970
cmp eax, 0xffffffff
je 0x4551c7
mov ecx, dword [0x6a7294]
push ecx
mov eax, str.Dave_mouths
mov ecx, ebp
call fcn.00473490
mov eax, dword [edi + 0x844]
cmp eax, 3
je 0x4551e5
cmp eax, 4
je 0x4551e5
cmp eax, 5
je 0x4551e5
cmp eax, 6
jne 0x455284
add dword [edi + 0x848], 0xffffffff
cmp dword [edi + 0x848], 0
jg 0x455284
mov eax, 0x191
call fcn.005af400
fldz
add eax, 0x190
push 0
sub esp, 8
mov dword [edi + 0x848], eax
fst dword [esp + 4]
mov ebx, 0x61
fstp dword [esp]
mov eax, edi
call fcn.00453c30
mov esi, eax
push str.anim_blink
mov ecx, esi
call fcn.00473280
fld dword [0x67967c]
mov edx, str.Dave_head
fstp dword [esi + 8]
mov eax, ebp
mov dword [esi + 0x10], 5
call fcn.00472f80
mov edx, dword [ebp + 0x48]
mov dword [esi + 0x48], edx
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0x4c], eax
mov ecx, dword [ebp + 0x50]
mov dword [esi + 0x50], ecx
mov edx, dword [ebp + 0x54]
push 0xffffffffffffffff
push str.Dave_eye
mov ebx, ebp
mov dword [esi + 0x54], edx
call fcn.004739e0
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x84c], eax
mov ecx, dword [edi + 0x84c]
test ecx, ecx
mov edx, dword [edi + 0x820]
mov edx, dword [edx + 8]
je 0x4552da
movzx eax, cx
cmp eax, dword [edx + 8]
jae 0x4552da
lea eax, [eax + eax*4]
shl eax, 5
add eax, dword [edx]
cmp dword [eax + 0x9c], ecx
jne 0x4552da
cmp dword [eax + 0x5c], 0
jle 0x4552da
push 0
push str.Dave_eye
mov ebx, ebp
call fcn.004739e0
mov edx, dword [edi + 0x84c]
mov eax, edi
call fcn.00453cf0
mov dword [edi + 0x84c], 0
mov ecx, ebp
call fcn.00471bc0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret