Function at 0x10129b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
vxorps xmm0, xmm0, xmm0
vcvtsi2sd xmm0, xmm0, dword [ebp + 8]
vmulsd xmm0, xmm0, qword [0x101b7978]
push ebx
vcvttsd2si eax, xmm0
push esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
push 8
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], 0
call fcn.10193644
push eax
mov dword [ebp - 0x34], eax
call fcn.10193638
xor ebx, ebx
mov dword [ebp - 0x50], eax
add esp, 0x10
mov dword [ebp - 0x30], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
test eax, eax
jle 0x10129e02
push edi
push 2
push ebx
push dword [ebp - 0x34]
call fcn.1019363e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.10193674
push 2
push ebx
push dword [ebp - 0x1c]
call fcn.101936aa
push 1
push 8
push 4
push eax
mov dword [ebp - 0x3c], eax
call fcn.101936d4
push eax
mov dword [ebp + 8], eax
call fcn.101934be
add esp, 0x40
mov edi, eax
push dword [ebp + 8]
call fcn.101934dc
push dword [ebp + 8]
mov ebx, eax
call fcn.101935b4
push dword [ebp + 8]
mov dword [ebp - 0x38], eax
call fcn.101935c6
add esp, 0xc
xor esi, esi
mov edx, eax
test ebx, ebx
jle 0x10129c4f
mov eax, dword [ebp - 0x38]
shl eax, 2
mov dword [ebp - 0x38], eax
xor ecx, ecx
test edi, edi
jle 0x10129c48
nop word [eax + eax]
lea eax, [ecx + edx]
xor eax, 3
movzx eax, byte [eax]
cmp eax, esi
cmovle eax, esi
inc ecx
mov esi, eax
cmp ecx, edi
jl 0x10129c30
mov eax, dword [ebp - 0x38]
add edx, eax
sub ebx, 1
jne 0x10129c24
lea eax, [ebp + 8]
push eax
call fcn.101934d6
lea eax, [ebp - 0x3c]
push eax
lea ebx, [esi + esi]
call fcn.101934d6
mov ecx, dword [ebp - 0x28]
add esp, 8
cmp ecx, 0xc
jl 0x10129c8b
mov eax, dword [ebp - 0x2c]
cmp eax, 0xc
jl 0x10129c8b
mov edx, dword [ebp - 0x40]
cmp ecx, edx
jge 0x10129c8b
cmp eax, edx
jge 0x10129c8b
cmp ebx, 0xc
jg 0x10129dcb
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10129cdd
push 0
push dword [ebp - 0x10]
push eax
call fcn.101934e8
push 8
push 0
push eax
mov dword [ebp - 0x44], eax
call fcn.10193644
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
push eax
call fcn.101934d6
mov eax, dword [ebp - 0x20]
add esp, 0x1c
test eax, eax
je 0x10129cdd
push eax
call fcn.10193638
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call fcn.1019362c
add esp, 8
cmp esi, 2
jge 0x10129de2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.10193674
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push eax
cmp ecx, edx
jle 0x10129d38
mov esi, dword [ebp - 8]
add esi, edx
add esi, ebx
call fcn.101934dc
mov ecx, dword [ebp - 8]
mov edx, eax
mov edi, dword [ebp - 0x14]
add esp, 4
cmp esi, edx
cmovl edx, esi
sub ecx, ebx
xor eax, eax
test ecx, ecx
cmovle ecx, eax
mov eax, dword [ebp - 4]
sub edx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], edx
jmp 0x10129d68
mov esi, dword [ebp - 4]
add esi, ecx
add esi, ebx
call fcn.101934be
mov edx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 4]
add esp, 4
cmp esi, edi
cmovl edi, esi
sub eax, ebx
xor ecx, ecx
test eax, eax
cmovle eax, ecx
mov ecx, dword [ebp - 8]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
push edx
push edi
push ecx
push eax
call fcn.101934c4
push 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
call fcn.101934e8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
call fcn.101934ca
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
call fcn.1019369e
lea eax, [ebp - 0x24]
push eax
call fcn.101934d6
mov eax, dword [ebp - 0x28]
add esp, 0x30
imul eax, dword [ebp - 0x2c]
vxorps xmm0, xmm0, xmm0
vxorps xmm1, xmm1, xmm1
vcvtsi2sd xmm1, xmm1, dword [ebp - 0x4c]
vcvtsi2sd xmm0, xmm0, eax
vmulsd xmm0, xmm0, qword [0x101b0b10]
vcomisd xmm1, xmm0
jbe 0x10129de2
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.10193662
mov esi, dword [ebp - 0xc]
add esp, 8
dec esi
mov dword [ebp - 0xc], esi
jmp 0x10129de5
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.101934ca
mov ebx, dword [ebp - 0x30]
add esp, 4
inc ebx
mov dword [ebp - 0x30], ebx
cmp ebx, dword [ebp - 0x50]
jl 0x10129ba7
pop edi
lea eax, [ebp - 0x1c]
push eax
call fcn.1019359c
lea eax, [ebp - 0x34]
push eax
call fcn.1019362c
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret