Function at 0x456590
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4a5a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4bdcf8]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdcf8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
mov esi, ecx
push esi
mov edi, edx
mov dword [esp + 0x2c], ebp
call fcn.00457c50
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 0x54]
call fcn.004021d0
push 4
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
mov dword [esp + 0x34], 0x494e41
mov byte [esp + 0x23], 3
call fcn.00465fd6
mov ecx, 0x4b5ff8
lea eax, [esp + 0x2c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x456625
test dl, dl
je 0x456621
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x456625
add eax, 2
add ecx, 2
test dl, dl
jne 0x456605
xor eax, eax
jmp 0x45662a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x456647
push str.ani_format_error
push str.error
call fcn.00465616
add esp, 8
xor al, al
jmp 0x456973
push 1
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
call fcn.00465fd6
push 1
push esi
mov ecx, ebp
call fcn.00465fd6
lea eax, [esi + 1]
push 1
push eax
mov ecx, ebp
call fcn.00465fd6
lea eax, [esi + 2]
push 1
push eax
mov ecx, ebp
call fcn.00465fd6
lea eax, [esi + 3]
push 1
push eax
mov ecx, ebp
call fcn.00465fd6
cmp byte [esp + 0x1b], 6
jne 0x45669b
push 4
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00465fd6
push 2
lea edi, [esi + 6]
push edi
mov ecx, ebp
call fcn.00465fd6
push 2
lea eax, [esi + 8]
push eax
mov ecx, ebp
call fcn.00465fd6
push 2
lea ecx, [esi + 0xa]
push ecx
mov ecx, ebp
call fcn.00465fd6
push 1
lea edx, [esi + 4]
push edx
mov ecx, ebp
call fcn.00465fd6
push 0xe
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.00465fd6
movsx ecx, word [edi]
movzx edx, byte [esi]
push ecx
push edx
call fcn.00457b90
push 0x20
lea eax, [esi + 0xc]
push eax
mov ecx, ebp
call fcn.00465fd6
mov al, byte [esp + 0x1b]
cmp al, 3
jne 0x456716
movsx ecx, word [edi]
mov edx, dword [esi + 0x30]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
mov ecx, ebp
call fcn.00465fd6
jmp 0x45673b
cmp al, 4
jb 0x45673b
xor eax, eax
xor ebx, ebx
cmp ax, word [edi]
jge 0x45673b
mov ecx, dword [esi + 0x30]
lea eax, [ecx + ebx*8]
push 8
push eax
mov ecx, ebp
call fcn.00465fd6
movsx edx, word [edi]
inc ebx
cmp ebx, edx
jl 0x456723
xor eax, eax
xor ebx, ebx
cmp ax, word [edi]
jge 0x45675d
mov ecx, dword [esi + 0x30]
movzx edx, word [ecx + ebx*8 + 2]
push edx
call fcn.00457ee0
movsx eax, word [edi]
inc ebx
add esp, 4
cmp ebx, eax
jl 0x456744
cmp byte [esi], 0
mov dword [esp + 0x24], 0
jbe 0x4568c5
lea edi, [esi + 0x34]
mov dword [esp + 0x20], edi
cmp dword [edi - 0x28], 0
je 0x4568aa
xor ecx, ecx
xor ebx, ebx
cmp cx, word [esi + 6]
jge 0x4568aa
lea ecx, [ecx]
mov edx, dword [edi]
cmp dword [edx + ebx*4], 0
lea eax, [edx + ebx*4]
je 0x45683b
mov ebp, dword [eax]
test ebp, ebp
je 0x456837
xor ecx, ecx
xor eax, eax
mov word [ebp + 2], cx
xor edx, edx
mov word [ebp + 6], cx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov byte [ebp], al
mov word [ebp + 4], dx
mov word [ebp + 8], dx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x4567e7
call fcn.0046afa0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00476a7f
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x456809
call fcn.0046afa0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00476a7f
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
je 0x45682b
call fcn.0046afa0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00476a7f
add esp, 4
xor eax, eax
push ebp
mov dword [ebp + 0x10], eax
call fcn.00476a7f
add esp, 4
mov ebp, dword [esp + 0x28]
mov eax, dword [edi]
push 0x20
mov dword [eax + ebx*4], 0
call fcn.00476b22
add esp, 4
xor ecx, ecx
cmp eax, ecx
je 0x456879
xor edx, edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov byte [eax], cl
mov word [eax + 2], dx
mov word [eax + 4], dx
mov word [eax + 6], dx
mov word [eax + 8], dx
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
jmp 0x45687b
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov ecx, dword [edi]
mov dword [ecx + ebx*4], eax
movzx edx, byte [esi + 1]
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
push edx
mov edi, ebp
call fcn.00458930
movsx ecx, word [esi + 6]
mov edi, dword [esp + 0x20]
inc ebx
cmp ebx, ecx
jl 0x456790
mov eax, dword [esp + 0x24]
movzx edx, byte [esi]
inc eax
add edi, 4
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jl 0x456775
cmp byte [esp + 0x1b], 4
jb 0x456903
push 4
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00465fd6
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jge 0x456903
mov edx, 0x14ad
lea esp, [esp]
mov ecx, dword [esi + 0x30]
xor dword [ecx + eax*8 + 4], edx
lea ecx, [ecx + eax*8]
movsx ecx, word [esi + 6]
inc eax
cmp eax, ecx
jl 0x4568f0
mov al, byte [esi + 3]
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x45694e
jbe 0x456971
movsx ebx, word [esi + 6]
movzx edi, byte [esi + 2]
jmp 0x456920
cmp ecx, ebx
jge 0x456941
mov eax, dword [esi + 0x30]
lea eax, [eax + ecx*8 + 4]
jmp 0x456930
mov ebp, dword [eax]
add dword [esi + 0x2c], ebp
movsx ebp, word [esi + 6]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x456930
movzx eax, byte [esi + 3]
inc edx
cmp edx, eax
mov ecx, edi
jl 0x456920
jmp 0x456971
cmp dx, word [esi + 6]
jge 0x456971
mov eax, dword [esi + 0x30]
add eax, 4
lea ebx, [ebx]
mov edx, dword [eax]
add dword [esi + 0x2c], edx
movsx edx, word [esi + 6]
inc ecx
add eax, 8
cmp ecx, edx
jl 0x456960
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004768b9
add esp, 0x3c
ret 4