Function at 0x462c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
push edi
mov edi, edx
test eax, eax
jne 0x462c30
push 0xffffffffffffff9a
pop eax
jmp 0x462e4b
push esi
mov esi, dword [eax + 0x9c]
test esi, esi
jne 0x462c3f
push 0xffffffffffffff9a
jmp 0x462c45
cmp dword [esi], ebx
jne 0x462c4b
push 0xffffffffffffff9c
pop eax
jmp 0x462e4a
mov edx, dword [ebp + 8]
test edx, edx
jne 0x462c59
xor eax, eax
jmp 0x462e4a
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edx
cmp edx, eax
jbe 0x462c71
cmp dword [esi + 0x8c], ebx
jne 0x462c71
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x58]
add eax, dword [esi + 8]
cmp edx, eax
jbe 0x462c86
cmp dword [esi + 0x8c], ebx
je 0x462c86
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], ebx
jbe 0x462e48
cmp dword [esi + 8], 0
jne 0x462d66
mov eax, dword [esi + 0x58]
test eax, eax
je 0x462d66
mov edi, 0x4000
cmp eax, edi
push 0
cmovb edi, eax
mov eax, dword [esi + 0x88]
add eax, dword [esi + 0x3c]
push eax
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x70]
add esp, 0x10
test eax, eax
jne 0x462e51
push edi
push dword [esi]
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x64]
add esp, 0x10
cmp eax, edi
jne 0x462e51
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa0], 0
je 0x462d58
and dword [ebp - 4], 0
test edi, edi
je 0x462d58
mov ebx, eax
mov ecx, dword [ebx + 0xac]
mov edx, dword [esi]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 4]
movsx eax, byte [edx + eax]
xor ecx, eax
mov eax, dword [ebp - 4]
mov byte [edx + eax], cl
mov edx, dword [ebx + 0xb0]
movsx eax, cl
lea ecx, [ebx + 0xa4]
push eax
call fcn.0046212b
mov edx, dword [ebp - 4]
pop ecx
mov ecx, dword [esi]
mov byte [edx + ecx], al
inc edx
mov dword [ebp - 4], edx
cmp edx, edi
jb 0x462d01
mov ebx, dword [ebp - 8]
add dword [esi + 0x3c], edi
mov eax, dword [esi]
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x84], 0
je 0x462ddc
cmp dword [esi + 0x8c], 0
jne 0x462ddc
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.0046386d
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x462da1
cmp dword [esi + 0x1c], 0
push 0xfffffffffffffffd
pop eax
cmovne edi, eax
mov eax, dword [esi + 0x18]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebp - 8], eax
test edx, edx
jne 0x462db5
xor ecx, ecx
jmp 0x462dc4
mov ecx, dword [esi + 0x50]
push eax
call fcn.00464db7
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
sub dword [esi + 0x5c], eax
add ebx, eax
mov dword [esi + 0x50], ecx
mov dword [ebp - 8], ebx
cmp edi, 1
je 0x462e48
test edi, edi
je 0x462e3e
mov eax, edi
jmp 0x462e4a
mov edi, dword [esi + 8]
test edi, edi
jne 0x462de8
cmp dword [esi + 0x58], edi
je 0x462e48
cmp dword [esi + 0x14], edi
cmovb edi, dword [esi + 0x14]
xor edx, edx
test edi, edi
je 0x462e06
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
cmp edx, edi
jb 0x462df5
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x462e11
xor ecx, ecx
jmp 0x462e22
mov ecx, dword [esi + 0x50]
mov edx, eax
push edi
call fcn.00464db7
pop ecx
mov ecx, eax
mov eax, dword [esi + 0x10]
sub dword [esi + 0x5c], edi
add eax, edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add ebx, edi
mov dword [esi + 0x50], ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 8], ebx
cmp dword [esi + 0x14], 0
ja 0x462c8f
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
jmp 0x462e4a