Function at 0x511ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov eax, dword [ecx + 0xfc]
test eax, eax
jne 0x511de0
cmp byte [ecx + 0xd1], 0
jne 0x5120a4
fld qword [ecx + 0xc0]
cmp byte [ebx + 0xd2], 0
jne 0x512185
fld st(0)
fstp qword [ebp - 0x58]
fdivr qword [ebx + 0xe8]
fstp qword [esp]
call fcn.00571030
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp qword [ebp - 0x50]
fldcw word [ebp - 0x42]
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
fld qword [ebp - 0x58]
fdivr qword [ebx + 0xf0]
fstp qword [esp]
call fcn.00570ffc
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
mov ecx, 0
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp qword [ebp - 0x50]
fldcw word [ebp - 0x42]
mov eax, dword [ebp - 0x50]
add eax, 1
sub eax, esi
cmovs eax, ecx
lea ecx, [ebx + 0x120]
mov dword [esp], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x6c], ecx
call fcn.005b00f0
mov ecx, dword [ebp - 0x58]
sub esp, 4
test ecx, ecx
je 0x511dd5
mov eax, esi
mov edx, edi
mov dword [ebp - 0x54], 0
add eax, 1
adc edx, 0
sub ecx, 1
mov dword [ebp - 0x58], ecx
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x6c]
call fcn.005b0080
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
fild qword [ebp - 0x68]
mov eax, dword [ebx + 0x120]
mov edx, dword [ebp - 0x60]
fmul qword [ebx + 0xc0]
add eax, dword [eax + 0xc]
fstp qword [eax + edx]
add edx, 8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 0x54]
add esi, 1
adc edi, 0
xor eax, esi
xor edx, edi
or edx, eax
jne 0x511d85
jmp 0x511dd5
fstp st(0)
jmp 0x511dd5
fstp st(0)
jmp 0x511dd5
fstp st(0)
jmp 0x511dd5
fstp st(0)
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
fld qword [ecx + 0xe8]
fldz
fxch st(1)
fucomi st(1)
jbe 0x511ed0
fld qword [ecx + 0xf0]
fucompi st(2)
fxch st(1)
fstp qword [ebp - 0x58]
jbe 0x511ed2
fstp qword [esp]
lea edi, [ebx + 0x120]
lea esi, [ebp - 0x30]
call fcn.005715d0
fmul qword [ebx + 0x108]
fstp qword [esp]
call fcn.00571030
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp dword [ebp - 0x60]
fldcw word [ebp - 0x42]
fild dword [ebp - 0x60]
fstp qword [esp + 8]
fld qword [ebx + 0x100]
fstp qword [esp]
call fcn.00571740
mov ecx, edi
mov dword [esp], 0
fstp qword [ebp - 0x30]
call fcn.005b00f0
sub esp, 4
mov ecx, edi
mov dword [esp], esi
call fcn.005affe0
fld qword [ebp - 0x30]
sub esp, 4
fld qword [ebx + 0xf0]
fucompi st(1)
jbe 0x511dc7
fld qword [ebp - 0x58]
fxch st(1)
fucomi st(1)
fstp st(1)
ja 0x511ea1
fstp st(0)
jmp 0x511dd5
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x511dcb
fmul qword [ebx + 0x100]
mov ecx, edi
mov dword [esp], esi
fstp qword [ebp - 0x30]
call fcn.005affe0
fld qword [ebp - 0x30]
sub esp, 4
fld qword [ebx + 0xf0]
fucompi st(1)
ja 0x511e93
fstp st(0)
jmp 0x511dd5
fstp st(1)
fldz
fucomi st(1)
ja 0x511fc3
fstp st(0)
fstp st(0)
jmp 0x511ee6
fstp st(0)
fstp st(0)
lea ecx, [ebx + 0x120]
mov dword [esp], 0
call fcn.005b00f0
fld qword [ebx + 0xf0]
lea eax, [ebp - 0x30]
sub esp, 4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0
fstp qword [ebp - 0x58]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x5f7540
fld qword [ebx + 0xe8]
mov dword [esp], eax
fstp qword [ebp - 0x60]
call dword [0x67a128]
lea ecx, [ebp - 0x34]
sub esp, 4
mov dword [esp], str.virtual_void_QCPAxis::generateAutoTicks__
call fcn.005ad160
sub esp, 4
mov ecx, eax
mov dword [esp], str.Invalid_range_for_logarithmic_plot:
call fcn.005ad160
fld qword [ebp - 0x60]
sub esp, 4
mov ebx, eax
mov esi, dword [0x679e14]
fstp qword [esp]
mov ecx, dword [eax]
call esi
mov ecx, dword [ebx]
sub esp, 8
cmp byte [ecx + 0x14], 0
jne 0x512170
mov dword [esp], 0x5f83a1
mov ecx, ebx
call fcn.005ad160
fld qword [ebp - 0x58]
sub esp, 4
mov ebx, eax
fstp qword [esp]
mov ecx, dword [eax]
call esi
mov ecx, dword [ebx]
sub esp, 8
cmp byte [ecx + 0x14], 0
jne 0x512150
lea ecx, [ebp - 0x34]
call dword [0x679ee8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
fld qword [ebx + 0xf0]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x511ee2
fstp qword [ebp - 0x60]
lea edi, [ebx + 0x120]
lea esi, [ebp - 0x30]
fchs
fstp qword [esp]
call fcn.005715d0
fmul qword [ebx + 0x108]
fstp qword [esp]
call fcn.00570ffc
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp dword [ebp - 0x58]
fldcw word [ebp - 0x42]
fild dword [ebp - 0x58]
fstp qword [esp + 8]
fld qword [ebx + 0x100]
fstp qword [esp]
call fcn.00571740
fchs
mov ecx, edi
mov dword [esp], 0
fstp qword [ebp - 0x30]
call fcn.005b00f0
sub esp, 4
mov ecx, edi
mov dword [esp], esi
call fcn.005affe0
fld qword [ebp - 0x30]
sub esp, 4
fld qword [ebx + 0xf0]
fucompi st(1)
jbe 0x511dcf
fld qword [ebp - 0x60]
fucompi st(1)
ja 0x51207a
fstp st(0)
jmp 0x511dd5
fldz
fucompi st(1)
jbe 0x511dd3
fdiv qword [ebx + 0x100]
mov ecx, edi
mov dword [esp], esi
fstp qword [ebp - 0x30]
call fcn.005affe0
fld qword [ebp - 0x30]
sub esp, 4
fld qword [ebx + 0xf0]
fucompi st(1)
ja 0x512070
fstp st(0)
jmp 0x511dd5
fld qword [ecx + 0xf0]
fld qword [ecx + 0xe8]
fsubp st(1)
fild dword [ecx + 0xcc]
fadd qword [0x5fbf30]
fdivp st(1)
fst qword [ecx + 0xc0]
fstp qword [esp]
call fcn.005715d0
fdiv qword [0x5fbec0]
fstp qword [esp]
call fcn.00571030
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp dword [ebp - 0x58]
fldcw word [ebp - 0x42]
fild dword [ebp - 0x58]
fstp qword [esp + 8]
fld dword [0x5fbe94]
fstp qword [esp]
call fcn.00571740
fld st(0)
fdivr qword [ebx + 0xc0]
fld dword [0x5fbe24]
fucompi st(1)
jbe 0x5121a3
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
fadd st(0)
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp dword [ebp - 0x58]
fldcw word [ebp - 0x42]
fild dword [ebp - 0x58]
fmul dword [0x5fbe08]
fmulp st(1)
fst qword [ebx + 0xc0]
jmp 0x511ccc
mov dword [esp], 0x20
call dword [0x679e10]
sub esp, 4
lea ecx, [ebp - 0x34]
call dword [0x679ee8]
jmp 0x511fbb
mov dword [esp], 0x20
call dword [0x679e10]
sub esp, 4
jmp 0x511f86
mov eax, dword [ebx]
fstp qword [esp]
mov ecx, ebx
call dword [eax + 0x58]
sub esp, 8
mov dword [ebx + 0xc8], eax
fld qword [ebx + 0xc0]
jmp 0x511cd9
fnstcw word [ebp - 0x42]
fmul dword [0x5fbe08]
movzx eax, word [ebp - 0x42]
mov ah, 0xc
mov word [ebp - 0x44], ax
fldcw word [ebp - 0x44]
fistp dword [ebp - 0x58]
fldcw word [ebp - 0x42]
fild dword [ebp - 0x58]
fadd st(0)
fmulp st(1)
fst qword [ebx + 0xc0]
jmp 0x511ccc