Function at 0x14000e6a0
Capabilities:
Check mutex on windows
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rsi, rcx
cmp byte [rcx + 0x260], 0
jne 0x14000e6ca
call fcn.14000e2f0
lea r8, str.GlobalKubotekLicenseService
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14000eab4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000eab4
mov rcx, rsi
call fcn.140007030
mov r8d, 4
lea rdx, str.KCFloatingServer_starting
mov rcx, rsi
call fcn.14001e270
mov byte [rsi + 0x71], 1
lea rax, [0x14000e030]
mov qword [rsi + 0xb8], rax
lea rcx, [rsi + 0x70]
call fcn.14002db68
lea rax, [rbp - 0x78]
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
lea r8d, [r14 + 0x11]
lea rdx, str.KeyCreatorLicServ
lea rcx, [rbp - 0x78]
call fcn.140011600
nop
lea rdx, [rbp - 0x78]
lea rcx, [rsi + 0x70]
call fcn.14002dd50
lea rax, [rbp - 0x58]
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
lea r8d, [r14 + 0x25]
lea rdx, str.https:__activation.kubotek3d.com_api_
lea rcx, [rbp - 0x58]
call fcn.140011600
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsi + 0x70]
call fcn.14001e8d8
lea rax, [rbp - 0x38]
mov qword [rbp + 0x80], rax
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], 7
lea r8d, [r14 + 0x1c]
lea rdx, str.licenseFloat.lic_license.lic
lea rcx, [rbp - 0x38]
call fcn.140011600
nop
lea rdx, [rbp - 0x38]
lea rcx, [rsi + 0x70]
call fcn.14002df58
lea ecx, [r14 + 0x1c]
call fcn.140076f90
mov rbx, rax
movzx ecx, word [rsi + 0x38]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], eax
mov eax, 2
mov word [rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov dword [rbx + 4], r14d
mov qword [rsi + 0x60], rbx
mov ecx, 0x98
call fcn.140076f90
mov qword [rbp + 0x88], rax
mov r8, qword [rsi + 0x60]
lea rdx, [rsi + 0x48]
mov rcx, rax
call fcn.140012c00
nop
mov qword [rsi + 0x68], rax
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14000e85c
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x14000e893
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14000e882
mov dword [rsp + 0x30], r14d
mov byte [rsp + 0x34], al
lea r15, [0x1400ccf38]
mov qword [rsp + 0x38], r15
jmp 0x14000e8aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
test eax, eax
setne byte [rsp + 0x34]
lea r15, [0x1400ccf38]
mov qword [rsp + 0x38], r15
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x30]
shr rax, 0x20
test al, al
jne 0x14000eb14
mov ecx, 0xf0
call fcn.140076f90
mov qword [rbp + 0x70], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsi + 0x70]
mov r8, qword [rsi + 0x68]
lea rdx, [rsi + 0x48]
mov rcx, rax
call fcn.140008490
mov rbx, rax
mov ecx, 0x98
call fcn.140076f90
mov rdi, rax
mov qword [rbp + 0x78], rax
lea r9, [rsi + 0x48]
mov rcx, rax
call fcn.140015dd0
nop
mov qword [rbx], rdi
lea rax, [0x14000de90]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rbx
mov rcx, qword [rsi + 0x68]
lea rax, [rcx + 0x68]
lea rdx, [rcx + 8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdi
mov rcx, qword [rcx]
call fcn.140018a70
cmp dword [rsi + 0x264], 0
jne 0x14000ea87
nop dword [rax]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], 0
mov qword [rsp + 0x48], r15
mov rbx, qword [rsi + 0x58]
mov eax, r14d
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x14000e996
mov rcx, rbx
call fcn.1400057b0
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], 0
mov qword [rsp + 0x58], r15
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x14000ea64
mov dword [rbp], r14d
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r14
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, r14
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x68], rax
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x60]
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, rbx
call fcn.140005b90
test rax, rax
je 0x14000ea28
nop word [rax + rax]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, rbx
call fcn.140005b90
test rax, rax
jne 0x14000ea10
mov rdx, qword [rsp + 0x70]
mov ecx, dword [0x140128a94]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x18]
mov edi, 3
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000ea50
call fcn.140077250
add rbx, 8
sub rdi, 1
jne 0x14000ea43
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
cmp byte [rsp + 0x44], 0
jne 0x14000eb09
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsi + 0x264], 0
je 0x14000e950
mov r8d, 4
lea rdx, str.KCFloatingServer_stopping
mov rcx, rsi
call fcn.14001e270
lea rcx, [rsi + 0x70]
call fcn.14002e7ec
mov rcx, qword [rsi + 0x268]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14000eaf5
mov r8d, 4
lea rdx, str.KCFloatingServer_could_not_start__another_running_instance_was_detected.
mov rcx, rsi
call fcn.14001e270
cmp byte [rsi + 0x260], 0
jne 0x14000eaf5
mov dword [rsi + 0x14], 1
mov dword [rsi + 0x1c], 0xb7
xor r14d, r14d
mov qword [rsi + 0x24], r14
lea rdx, [rsi + 0x10]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rsp + 0x40]
call fcn.1400049b0
int3
lea rdx, str.listen
lea rcx, [rsp + 0x30]
call fcn.140002b70
int3