Function at 0x46fc2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff960
mov ebx, eax
mov dword [esp + 0x34], 8
xor eax, eax
mov dword [esp + 0x10], eax
mov dl, 1
mov eax, dword [0x4203ec]
call fcn.004261c4
mov dword [esp + 8], eax
mov edx, ebx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov dl, 6
mov eax, dword [esp + 8]
call fcn.0042779c
lea eax, [esp + 8]
call fcn.0046e340
mov esi, eax
mov dword [esp + 0x14], 0xffffffd8
lea ebx, [esp + 0x48]
fild dword [esp + 0x14]
imul eax, dword [esp + 0x34], 0xb4
mov dword [esp + 0x69c], eax
fild dword [esp + 0x69c]
fdivp st(1)
fld xword [0x46ffa4]
fmulp st(1)
call fcn.00402b94
fmul dword [0x46ffb0]
call fcn.00402bc8
mov dword [ebx], eax
inc dword [esp + 0x14]
add ebx, 4
cmp dword [esp + 0x14], 0x29
jne 0x46fc83
mov dword [esp + 0x14], 0xffffffd8
lea ebx, [esp + 0x18c]
fild dword [esp + 0x14]
imul eax, dword [esp + 0x34], 0xb4
mov dword [esp + 0x69c], eax
fild dword [esp + 0x69c]
fdivp st(1)
fld xword [0x46ffa4]
fmulp st(1)
call fcn.00402b84
fmul dword [0x46ffb0]
call fcn.00402bc8
mov dword [ebx], eax
inc dword [esp + 0x14]
add ebx, 4
cmp dword [esp + 0x14], 0x29
jne 0x46fcd6
mov dword [esp + 0x14], 0x51
lea eax, [esp + 0x558]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [eax], edx
add dword [esp + 0x44], 4
dec dword [esp + 0x14]
jne 0x46fd2d
dec esi
test esi, esi
jl 0x46ff14
inc esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x44], 0x494be8
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
sub eax, dword [edx - 8]
inc eax
mov edx, dword [esp + 0x44]
mov edx, dword [edx - 4]
mov ecx, dword [esp + 0x44]
sub edx, dword [ecx - 0xc]
inc edx
cmp eax, 5
jl 0x46ff01
cmp eax, 0x64
jg 0x46ff01
cmp edx, 0x1e
jl 0x46ff01
mov esi, 0x51
lea ebx, [esp + 0x2d0]
mov eax, dword [esp + 8]
mov edx, dword [eax]
call dword [edx + 0x20]
imul eax, eax, 0x3e8
mov dword [ebx], eax
add ebx, 4
dec esi
jne 0x46fda2
mov esi, 0x51
lea ebx, [esp + 0x414]
mov eax, dword [esp + 8]
mov edx, dword [eax]
call dword [edx + 0x20]
neg eax
imul eax, eax, 0x3e8
mov dword [ebx], eax
add ebx, 4
dec esi
jne 0x46fdc5
mov eax, dword [esp + 0x44]
mov eax, dword [eax - 8]
mov edx, dword [esp + 0x44]
mov edx, dword [edx]
sub edx, eax
jl 0x46fed0
inc edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
call fcn.004268fc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax - 0xc]
mov edx, dword [esp + 0x44]
mov edx, dword [edx - 4]
sub edx, eax
jl 0x46fec2
inc edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
call fcn.0047058c
mov ebx, dword [esp + 0x18]
lea ebx, [ebx + ebx*2]
mov edx, dword [esp + 0x20]
cmp al, byte [edx + ebx]
jne 0x46feb4
mov eax, dword [esp + 0x14]
call fcn.00470590
mov edx, dword [esp + 0x20]
cmp al, byte [edx + ebx + 1]
jne 0x46feb4
mov eax, dword [esp + 0x14]
call fcn.004705a0
mov edx, dword [esp + 0x20]
cmp al, byte [edx + ebx + 2]
jne 0x46feb4
mov esi, 0x51
lea ecx, [esp + 0x18c]
lea edi, [esp + 0x48]
lea eax, [esp + 0x414]
lea edx, [esp + 0x2d0]
mov ebp, dword [ecx]
imul ebp, dword [esp + 0x1c]
mov ebx, dword [edi]
imul ebx, dword [esp + 0x18]
sub ebp, ebx
cmp ebp, dword [eax]
jle 0x46fe9f
mov dword [eax], ebp
cmp ebp, dword [edx]
jge 0x46fea5
mov dword [edx], ebp
add edx, 4
add eax, 4
add edi, 4
add ecx, 4
dec esi
jne 0x46fe89
inc dword [esp + 0x18]
dec dword [esp + 0x40]
jne 0x46fe2c
inc dword [esp + 0x1c]
dec dword [esp + 0x3c]
jne 0x46fdfc
mov esi, 0x51
lea ebx, [esp + 0x414]
lea ecx, [esp + 0x2d0]
lea edi, [esp + 0x558]
mov eax, dword [ebx]
sub eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
add dword [edi], eax
add edi, 4
add ecx, 4
add ebx, 4
dec esi
jne 0x46feea
inc dword [esp + 0x14]
add dword [esp + 0x44], 0x10
dec dword [esp + 0x38]
jne 0x46fd5e
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 0xffffffd8
add edx, dword [esp + eax*4 + 0x5f8]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 5
jne 0x46ff1c
mov esi, 0xffffffd8
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
add ecx, esi
add eax, dword [esp + ecx*4 + 0x5f8]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 5
jne 0x46ff42
cmp edx, eax
jl 0x46ff64
mov edx, eax
mov dword [esp + 0x10], esi
inc esi
cmp esi, 0x25
jne 0x46ff3a
mov eax, dword [esp + 8]
call fcn.00403904
mov eax, dword [esp + 0x10]
add eax, 2
neg eax
mov dword [esp + 0x69c], eax
fild dword [esp + 0x69c]
fild dword [esp + 0x34]
fdivp st(1)
fstp qword [esp]
wait
fld qword [esp]
add esp, 0x6a0
pop ebp
pop edi
pop esi
pop ebx
ret