Function at 0x46c01f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x46c037
push 0xffffffffffffff9a
pop eax
jmp 0x46c091
push esi
mov esi, dword [eax + 0x9c]
cmp esi, ebx
jne 0x46c046
push 0xffffffffffffff9a
jmp 0x46c04c
cmp dword [esi], ebx
jne 0x46c04f
push 0xffffffffffffff9c
pop eax
jmp 0x46c090
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x10], eax
mov eax, 0x8000
mov dword [esi + 0x14], eax
cmp ecx, eax
jae 0x46c06f
cmp dword [esi + 0x8c], ebx
jne 0x46c06f
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x58]
add ecx, edx
cmp ecx, eax
jae 0x46c086
cmp dword [esi + 0x8c], ebx
je 0x46c086
mov dword [esi + 0x14], ecx
push edi
cmp dword [esi + 0x14], ebx
ja 0x46c096
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x46c167
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x46c167
mov edi, 0x4000
mov dword [ebp - 8], edi
cmp eax, edi
jae 0x46c0bb
mov dword [ebp - 8], eax
mov edi, eax
mov eax, dword [esi + 0x88]
add eax, dword [esi + 0x3c]
push ebx
push eax
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x70]
add esp, 0x10
test eax, eax
jne 0x46c23c
push edi
push dword [esi]
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x64]
add esp, 0x10
cmp eax, edi
jne 0x46c23c
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], ebx
je 0x46c159
test edi, edi
jbe 0x46c157
mov ecx, eax
add ecx, 0xa4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xac]
mov edx, dword [esi]
and eax, 0xfffd
or eax, 2
lea edi, [edx + ebx]
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor byte [edi], dl
mov eax, dword [esi]
movsx eax, byte [eax + ebx]
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xb0]
call fcn.0046b56f
mov edx, dword [esi]
add esp, 4
mov byte [ebx + edx], al
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x46c10e
mov edi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x84], ebx
je 0x46c1d3
cmp dword [esi + 0x8c], ebx
jne 0x46c1d3
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.0046e560
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
jl 0x46c1a0
cmp dword [esi + 0x1c], ebx
je 0x46c1a0
mov dword [ebp - 8], 0xfffffffd
mov ebx, dword [esi + 0x18]
sub ebx, edi
push ebx
push dword [ebp - 0xc]
push dword [esi + 0x50]
call fcn.0046f83e
sub dword [esi + 0x5c], ebx
add dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, 1
je 0x46c08c
test eax, eax
jne 0x46c08f
jmp 0x46c22d
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x46c1e3
cmp dword [esi + 0x58], ebx
je 0x46c08c
mov ebx, dword [esi + 0x14]
cmp ebx, eax
jb 0x46c1ec
mov ebx, eax
xor eax, eax
test ebx, ebx
jbe 0x46c203
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, ebx
jb 0x46c1f2
mov edi, dword [esi + 0x10]
push ebx
push edi
push dword [esi + 0x50]
call fcn.0046f83e
sub dword [esi + 0x5c], ebx
sub dword [esi + 8], ebx
sub dword [esi + 0x14], ebx
add dword [esi + 4], ebx
add dword [esi + 0x18], ebx
add edi, ebx
add esp, 0xc
add dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0
ja 0x46c094
jmp 0x46c08c
or eax, 0xffffffff
jmp 0x46c08f