Function at 0x460e24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jle 0x460e48
inc dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x460ebc
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
shl eax, 5
mov edx, dword [ebp - 0x28]
movzx edx, byte [edx + 2]
xor eax, edx
and eax, 0x3fff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
and edx, dword [ecx + 0x58]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x28]
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x460e76
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x460f1c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x460f58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jb 0x460f58
mov eax, dword [ebp - 4]
call fcn.00461438
jmp 0x460f58
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x5c]
jl 0x460f58
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x460f9f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
test dword [eax + 0x10], 0xfff
jne 0x460f9f
mov eax, dword [ebp - 4]
fild dword [eax + 0x10]
fmul dword [0x460fbc]
mov eax, dword [ebp - 4]
fild dword [eax + 0x50]
fdivp st(1)
call fcn.00402be0
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jb 0x460fb5
mov eax, dword [ebp - 4]
call fcn.00461438
pop ebx
mov esp, ebp
pop ebp
ret