Function at 0x46ebd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, edx
mov dword [ebp - 8], ecx
push esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x18], eax
and dword [eax], 0
push edi
movzx eax, byte [esi + 0xdfc]
movzx edx, byte [esi + 0xdfd]
mov ebx, dword [esi + 0x3c]
mov edi, dword [eax*4 + 0x5243d0]
mov eax, edi
shr eax, 8
xor edx, eax
shl edi, 8
movzx eax, di
movzx ecx, word [edx*4 + 0x5243d0]
xor ecx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
call fcn.0046ef61
test eax, eax
je 0x46ef5a
mov eax, dword [ebx]
cmp dword [eax], 2
je 0x46ef55
mov edx, dword [ebx + 4]
mov ecx, ebx
push dword [edx + 0x478]
mov edx, dword [edx + 0x470]
call fcn.0046db35
pop ecx
test eax, eax
je 0x46ef5a
mov eax, dword [ebx + 4]
xor edi, edi
mov esi, edi
cmp dword [eax + 0x478], edi
jbe 0x46ecc8
mov ecx, dword [eax + 0x480]
mov eax, dword [eax + 0x47c]
sub eax, 1
je 0x46ec96
sub eax, 1
je 0x46ec8a
sub eax, 1
jne 0x46ec9c
cmp esi, 1
jmp 0x46ec8c
test esi, esi
lea eax, [ecx + 1]
cmovne eax, ecx
mov ecx, eax
jmp 0x46ec9c
cmp esi, 1
jne 0x46ec9c
inc ecx
push ecx
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0046f5f9
pop ecx
pop ecx
test eax, eax
je 0x46ef5a
mov eax, dword [ebx]
cmp dword [eax], 2
je 0x46ef55
mov eax, dword [ebx + 4]
inc esi
cmp esi, dword [eax + 0x478]
jb 0x46ec6a
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx + 0x14]
and edx, 7
je 0x46ed03
push 8
pop eax
sub eax, edx
mov dword [ebp - 4], edi
push eax
lea edx, [ebp - 4]
call fcn.00473714
pop ecx
test eax, eax
je 0x46ef5a
cmp dword [ebp - 4], edi
je 0x46ed03
xor edx, edx
mov ecx, ebx
call fcn.004701dc
mov eax, dword [ebx]
mov dword [eax], 2
mov eax, dword [ebx]
cmp dword [eax], 2
je 0x46ef55
mov esi, dword [ebx + 4]
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46ed79
mov ecx, dword [edx + 0x10]
mov eax, dword [edx]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x1c]
cmp eax, dword [edx + 0x14]
jae 0x46ed79
mov ebx, dword [edx + 0x18]
mov edx, eax
mov esi, dword [ebp - 0xc]
push 0x18
pop ecx
sub ecx, edx
mov eax, esi
shr eax, cl
add edx, 8
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
xor ebx, dword [ecx*4 + 0x5243d0]
cmp edx, dword [ebp - 0x10]
jb 0x46ed3c
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0x18], ebx
mov ebx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
mov esi, dword [ebx + 4]
movzx eax, word [edx + 0x18]
lea edx, [ebp - 0x10]
mov ecx, dword [esi + 0x3c]
push 0x10
mov dword [ebp - 0x14], eax
call fcn.00473714
pop ecx
test eax, eax
je 0x46ef5a
mov eax, dword [ebp - 0x14]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
jne 0x46ee66
mov ecx, dword [ebx + 4]
mov eax, ecx
mov edx, dword [ecx + 0x47c]
sub edx, 1
je 0x46ee3c
sub edx, 1
je 0x46ee11
sub edx, 1
jne 0x46eeaf
cmp dword [ecx + 0x470], edi
jbe 0x46eeaf
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x44]
mov ecx, dword [ecx + 0x40]
mov edx, dword [eax + edi*4]
mov eax, edx
mov esi, dword [ecx + edi*4]
and eax, 1
add esi, esi
or esi, eax
lea eax, [edx + esi]
sub esi, edx
sar eax, 1
mov dword [ecx + edi*4], eax
mov eax, dword [ebx + 4]
sar esi, 1
mov eax, dword [eax + 0x44]
mov dword [eax + edi*4], esi
inc edi
mov eax, dword [ebx + 4]
cmp edi, dword [eax + 0x470]
jb 0x46edd3
jmp 0x46eeaf
mov eax, ecx
cmp dword [ecx + 0x470], edi
jbe 0x46eeaf
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edi*4]
add dword [ecx + edi*4], eax
inc edi
mov eax, dword [ebx + 4]
cmp edi, dword [eax + 0x470]
jb 0x46ee1f
jmp 0x46eeaf
mov eax, ecx
cmp dword [ecx + 0x470], edi
jbe 0x46eeaf
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + edi*4]
sub eax, dword [ecx + edi*4]
mov dword [ecx + edi*4], eax
inc edi
mov eax, dword [ebx + 4]
cmp edi, dword [eax + 0x470]
jb 0x46ee46
jmp 0x46eeaf
push 2
pop edx
mov ecx, ebx
call fcn.004701dc
mov eax, dword [ebx + 4]
mov dword [ebp - 8], edi
cmp dword [eax + 0x478], edi
jbe 0x46eeaf
push 0x40
pop esi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x470]
shl eax, 2
push eax
push edi
push dword [ecx + esi]
call fcn.004b6620
mov ecx, dword [ebp - 8]
lea esi, [esi + 4]
mov eax, dword [ebx + 4]
add esp, 0xc
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [eax + 0x478]
jb 0x46ee81
mov ecx, dword [ebp - 0x18]
xor esi, esi
inc esi
mov dword [ecx], esi
mov ecx, dword [eax + 0xec]
test ecx, ecx
je 0x46eeca
mov dword [eax + 0xe8], ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x478]
mov ecx, dword [ebx]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x47c]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x480]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x474]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x470]
mov dword [ecx + 0x14], eax
xor ecx, ecx
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x470]
add eax, dword [edx + 0x488]
adc ecx, dword [edx + 0x48c]
mov dword [edx + 0xf0], eax
mov dword [edx + 0xf4], ecx
mov ecx, ebx
mov edx, dword [ebx + 4]
lea eax, [edx + 0x40]
add edx, 0x470
push eax
call fcn.00470084
pop ecx
test eax, eax
jne 0x46ef5a
mov ecx, dword [ebx]
mov eax, esi
mov dword [ecx], 2
jmp 0x46ef5c
xor eax, eax
inc eax
jmp 0x46ef5c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret