Function at 0x46e3a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4b900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
push ebx
push esi
push edi
mov ecx, dword [edx + 0x24]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x46e477
nop dword [eax + eax]
mov edi, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
sub ebx, 4
mov esi, dword [edi]
cmp esi, edi
je 0x46e460
test ebx, ebx
js 0x46e420
mov ecx, dword [edx + 8]
mov eax, dword [edx]
push 0
push 0
push dword [ecx + 8]
lea eax, [eax + ebx*8]
push dword [ecx + 4]
push eax
mov eax, dword [esi + 0x10]
shl eax, 3
push eax
movzx eax, byte [esi + 0x14]
push 8
push 8
push 0
shl eax, 3
push eax
push dword [ecx + 0x50]
mov ecx, dword [edx + 4]
add ecx, 0x58
call fcn.00448e60
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x46e446
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x46e442
cmp esi, dword [eax + 8]
jne 0x46e442
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x46e432
mov esi, eax
jmp 0x46e45c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x46e45c
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x46e450
cmp esi, edi
jne 0x46e3e3
lea ecx, [ebp - 8]
call fcn.0040ac00
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x46e3d0
mov edi, dword [edx + 0x2c]
mov dword [ebp - 0x3c], edi
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x46e5f8
nop word [eax + eax]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], esi
mov ecx, dword [esi]
mov dword [ebp - 0x18], ecx
cmp ecx, esi
je 0x46e5e5
nop dword [eax]
test edx, edx
jle 0x46e592
mov edi, dword [ebp - 0x10]
mov bl, byte [ecx + 0x14]
shl edx, 5
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
add edx, dword [edi]
shl eax, 5
mov dword [ebp - 8], eax
mov al, bl
and al, 3
mov byte [ebp - 0x14], al
lea edi, [edx - 0x20]
mov al, bl
shr al, 2
and al, 3
mov byte [ebp - 0x13], al
mov al, bl
shr al, 4
shr bl, 6
and al, 3
mov byte [ebp - 0x11], bl
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x12], al
mov eax, dword [ebx + 4]
imul eax, edi
add eax, dword [ebx + 0x50]
add eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp edi, edx
jge 0x46e592
mov esi, dword [ebp - 8]
lea ecx, [esi + 0x20]
mov dword [ebp - 0x30], ecx
xor ecx, ecx
sub edx, edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
lea edi, [esi + 0x20]
mov ebx, eax
cmp esi, edi
jge 0x46e577
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, eax
xor edi, edi
mov dword [ebp - 0x2c], eax
mov esi, eax
lea ecx, [edi + 0x20]
mov eax, edi
lea ebx, [ebx + 1]
cdq
inc edi
and edx, 0xf
add eax, edx
sar eax, 4
add eax, esi
mov al, byte [ebp + eax - 0x14]
shl al, 2
xor al, byte [ebx - 1]
and al, 0xc
xor byte [ebx - 1], al
sub ecx, 1
jne 0x46e543
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x24], ecx
add eax, dword [ebx + 4]
sub edx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jne 0x46e526
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x46e5bb
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x46e5b4
cmp ecx, dword [eax + 8]
jne 0x46e5b4
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x46e5a4
mov ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x46e5d7
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ecx]
cmp byte [edx + 0xd], 0
jne 0x46e5d7
mov eax, dword [edx]
mov ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x46e5c8
mov edx, dword [ebp - 0x38]
cmp ecx, esi
jne 0x46e4b0
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.0040ac00
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x46e490
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e577
mov esp, ebp
pop ebp
ret