Function at 0x416d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548a9f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
call fcn.004160f0
lea ecx, [ebx + 0x6c]
cmp ecx, edi
je 0x416d9f
push 0xffffffffffffffff
push 0
push edi
call fcn.00404820
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x494e41
push eax
mov ecx, esi
call fcn.005228ff
mov ecx, 0x553ce4
lea eax, [ebp - 0x30]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416de0
test dl, dl
je 0x416ddc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416de0
add eax, 2
add ecx, 2
test dl, dl
jne 0x416dc0
xor eax, eax
jmp 0x416de5
sbb eax, eax
or eax, 1
test eax, eax
je 0x416e02
push str.ani_format_error
push str.error
call fcn.00521c77
add esp, 8
xor al, al
jmp 0x417074
push 1
lea edi, [ebx + 0xc]
mov ecx, esi
push edi
call fcn.005228ff
push 1
push ebx
mov ecx, esi
call fcn.005228ff
lea eax, [ebx + 1]
mov ecx, esi
push 1
push eax
mov dword [ebp - 0x3c], eax
call fcn.005228ff
lea eax, [ebx + 2]
mov ecx, esi
push 1
push eax
call fcn.005228ff
lea eax, [ebx + 3]
mov ecx, esi
push 1
push eax
call fcn.005228ff
cmp byte [edi], 6
jb 0x416e55
push 4
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.005228ff
lea edi, [ebx + 6]
mov ecx, esi
push 2
push edi
mov dword [ebp - 0x34], edi
call fcn.005228ff
push 2
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.005228ff
push 2
lea eax, [ebx + 0xa]
mov ecx, esi
push eax
call fcn.005228ff
push 1
lea eax, [ebx + 4]
mov ecx, esi
push eax
call fcn.005228ff
push 0xe
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.005228ff
movsx eax, word [edi]
mov ecx, ebx
push 0x64
push eax
movzx eax, byte [ebx]
push eax
call fcn.004161d0
push 0x20
lea eax, [ebx + 0x10]
mov ecx, esi
push eax
call fcn.005228ff
mov al, byte [ebx + 0xc]
cmp al, 3
jne 0x416ed1
movsx eax, word [edi]
mov ecx, esi
shl eax, 3
push eax
push dword [ebx + 0x34]
call fcn.005228ff
jmp 0x416ef9
cmp al, 4
jb 0x416ef9
xor eax, eax
xor esi, esi
cmp ax, word [edi]
jge 0x416ef9
nop
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x28]
push 8
lea eax, [eax + esi*8]
push eax
call fcn.005228ff
movsx eax, word [edi]
inc esi
cmp esi, eax
jl 0x416ee0
xor eax, eax
xor esi, esi
cmp ax, word [edi]
jge 0x416f1b
mov eax, dword [ebx + 0x34]
movzx eax, word [eax + esi*8 + 2]
push eax
call fcn.00417590
movsx eax, word [edi]
inc esi
add esp, 4
cmp esi, eax
jl 0x416f02
xor ecx, ecx
mov dword [ebp - 0x24], ecx
cmp byte [ebx], cl
jbe 0x416fcf
lea esi, [ebx + 0x38]
nop dword [eax + eax]
cmp dword [esi - 0x28], 0
je 0x416fbd
xor eax, eax
cmp ax, word [edi]
jge 0x416fbd
mov ebx, eax
mov eax, dword [esi]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x416f5e
mov ecx, edi
call fcn.004363b0
push 0x20
push edi
call fcn.0052389d
add esp, 8
mov eax, dword [esi]
push 0x20
mov dword [eax + ebx*4], 0
call fcn.00523854
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x416f8a
mov ecx, eax
call fcn.00436380
mov ecx, eax
jmp 0x416f8c
xor ecx, ecx
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + ebx*4], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi]
movzx eax, byte [eax]
mov ecx, dword [ecx + ebx*4]
push eax
push dword [ebp - 0x28]
call fcn.00436b40
mov edi, dword [ebp - 0x34]
inc ebx
movsx eax, word [edi]
cmp ebx, eax
jl 0x416f43
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
movzx eax, byte [ebx]
inc ecx
add esi, 4
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x416f30
cmp byte [ebx + 0xc], 4
jb 0x417003
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push 4
push eax
call fcn.005228ff
xor eax, eax
xor ecx, ecx
cmp ax, word [edi]
jge 0x417003
nop dword [eax]
mov eax, dword [ebx + 0x34]
xor dword [eax + ecx*8 + 4], 0x14ad
inc ecx
movsx eax, word [edi]
cmp ecx, eax
jl 0x416ff0
mov al, byte [ebx + 3]
xor esi, esi
mov dword [ebx + 0x30], esi
test al, al
je 0x417056
movzx eax, al
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x417072
movzx ecx, byte [ebx + 2]
movsx edi, word [edi]
mov dword [ebp - 0x2c], ecx
cmp esi, edi
jge 0x41704a
mov eax, dword [ebx + 0x34]
mov edx, edi
mov ecx, dword [ebx + 0x30]
lea eax, [eax + esi*8]
add eax, 4
sub edx, esi
add ecx, dword [eax]
lea eax, [eax + 8]
mov dword [ebx + 0x30], ecx
sub edx, 1
jne 0x417037
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
sub eax, 1
mov esi, ecx
mov dword [ebp - 0x24], eax
jne 0x417023
jmp 0x417072
movsx edx, word [edi]
test edx, edx
jle 0x417072
mov eax, dword [ebx + 0x34]
xor ecx, ecx
add eax, 4
add ecx, dword [eax]
lea eax, [eax + 8]
mov dword [ebx + 0x30], ecx
sub edx, 1
jne 0x417065
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8