Function at 0x436e2a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45c39a
call fcn.004423d0
sub esp, 0x28
push ebx
push esi
mov esi, ecx
call fcn.0043765e
mov ebx, dword [ebp + 8]
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
mov byte [ebp - 0xd], 3
call fcn.00458a6d
lea eax, [ebp - 0x20]
push 0x468164
push eax
call fcn.00442c00
test eax, eax
pop ecx
pop ecx
je 0x436e80
push str.not_an_animation_file
push str.Fatal_Error
call fcn.00457f48
pop ecx
pop ecx
xor eax, eax
jmp 0x437116
push edi
push 1
pop edi
push edi
lea eax, [ebp - 0xd]
push eax
mov ecx, ebx
call fcn.00458a6d
push edi
push esi
mov ecx, ebx
call fcn.00458a6d
lea eax, [esi + 1]
push edi
push eax
mov ecx, ebx
call fcn.00458a6d
lea eax, [esi + 2]
push edi
push eax
mov ecx, ebx
call fcn.00458a6d
lea eax, [esi + 3]
push edi
push eax
mov ecx, ebx
call fcn.00458a6d
cmp byte [ebp - 0xd], 6
jne 0x436ed0
push 4
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.00458a6d
push 2
lea edi, [esi + 6]
push edi
mov ecx, ebx
call fcn.00458a6d
push 2
lea eax, [esi + 8]
push eax
mov ecx, ebx
call fcn.00458a6d
push 2
lea eax, [esi + 0xa]
push eax
mov ecx, ebx
call fcn.00458a6d
push 1
lea eax, [esi + 4]
push eax
mov ecx, ebx
call fcn.00458a6d
push 0xe
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.00458a6d
push 0x20
lea eax, [esi + 0xc]
push eax
mov ecx, ebx
call fcn.00458a6d
movsx eax, word [edi]
push 0x64
push eax
movzx eax, byte [esi]
push eax
mov ecx, esi
call fcn.004375cd
cmp byte [ebp - 0xd], 3
jne 0x436f48
movsx eax, word [edi]
shl eax, 3
push eax
push dword [esi + 0x30]
mov ecx, ebx
call fcn.00458a6d
jmp 0x436f76
cmp byte [ebp - 0xd], 4
jb 0x436f76
and dword [ebp - 0x14], 0
cmp word [edi], 0
jle 0x436f76
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*8]
push 8
push eax
mov ecx, ebx
call fcn.00458a6d
movsx eax, word [edi]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
jl 0x436f58
and dword [ebp - 0x14], 0
cmp word [edi], 0
jle 0x436f9d
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + ecx*8 + 2]
push eax
call fcn.00437831
movsx eax, word [edi]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
pop ecx
jl 0x436f80
and dword [ebp - 0x1c], 0
cmp byte [esi], 0
jbe 0x43705d
lea eax, [esi + 0x34]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp dword [ecx - 0x28], eax
je 0x43704a
cmp word [edi], ax
mov dword [ebp - 0x14], eax
jle 0x43704a
mov eax, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
shl ebx, 2
add eax, ebx
cmp dword [eax], 0
je 0x436ff7
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x436ff7
mov ecx, eax
call fcn.00437afe
push dword [ebp - 0x24]
call fcn.004423ef
pop ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
and dword [eax + ebx], 0
push 0x20
call fcn.00442735
pop ecx
mov dword [ebp - 0x24], eax
and dword [ebp - 4], 0
test eax, eax
je 0x43701c
mov ecx, eax
call fcn.00437ae7
jmp 0x43701e
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
or dword [ebp - 4], 0xffffffff
mov dword [edx + ebx], eax
movzx eax, byte [esi + 1]
push eax
mov eax, dword [ecx]
push dword [ebp + 8]
mov ecx, dword [eax + ebx]
call fcn.00437d68
movsx eax, word [edi]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
jl 0x436fca
mov ebx, dword [ebp + 8]
movzx eax, byte [esi]
inc dword [ebp - 0x1c]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x1c], eax
jl 0x436fb0
cmp byte [ebp - 0xd], 4
jb 0x4370bf
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00458a6d
xor eax, eax
cmp word [edi], ax
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
jle 0x4370bf
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x30]
movzx edx, word [eax + ecx*8 + 2]
movzx ebx, byte [eax + ecx*8]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 4]
xor edx, 0x4728
mov dword [ebp - 0x24], ecx
add ecx, edx
xor ebx, 0x1381
add ebx, ecx
mov ecx, dword [ebp - 0x24]
add dword [ebp + 8], ebx
xor ecx, 0x14ad
inc dword [ebp - 0x14]
mov dword [eax + 4], ecx
movsx eax, word [edi]
cmp dword [ebp - 0x14], eax
jl 0x43707d
mov al, byte [esi + 3]
xor edx, edx
test al, al
mov dword [esi + 0x2c], edx
je 0x4370fa
movzx eax, al
cmp eax, edx
jle 0x437112
movsx edi, word [edi]
mov ebx, eax
cmp edx, edi
jge 0x4370f1
mov eax, dword [esi + 0x30]
lea ecx, [eax + edx*8 + 4]
mov eax, edi
sub eax, edx
mov edx, dword [ecx]
add dword [esi + 0x2c], edx
add ecx, 8
dec eax
jne 0x4370e6
dec ebx
movzx edx, byte [esi + 2]
jne 0x4370d7
jmp 0x437112
movsx ecx, word [edi]
cmp ecx, edx
jle 0x437112
mov eax, dword [esi + 0x30]
add eax, 4
mov edx, dword [eax]
add dword [esi + 0x2c], edx
add eax, 8
dec ecx
jne 0x437107
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4