Function at 0x14014eb50
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r14, rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
lea ecx, [rbp + 0x30]
call fcn.14011b0e4
mov qword [rsp + 0x68], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [r14], rax
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], rbp
mov dword [r14 + 0x20], ebp
lea rbx, [r14 + 0x28]
mov qword [rsp + 0x68], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea ecx, [rbp + 0x38]
call fcn.14011b0e4
mov qword [rsp + 0x68], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov dword [r14 + 0x38], ebp
lea rbx, [r14 + 0x40]
mov qword [rsp + 0x68], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea ecx, [rbp + 0x30]
call fcn.14011b0e4
mov qword [rsp + 0x68], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rbx, [r14 + 0x58]
mov qword [rsp + 0x68], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea ecx, [rbp + 0x60]
call fcn.14011b0e4
mov qword [rsp + 0x68], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [r14 + 0x68], rbp
mov qword [r14 + 0x70], rbp
mov byte [r14 + 0x78], bpl
mov qword [r14 + 0x80], rbp
mov qword [r14 + 0x88], rbp
mov qword [r14 + 0x90], rbp
mov dword [r14 + 0x98], ebp
mov byte [r14 + 0x9c], bpl
mov qword [r14 + 0xa0], rbp
lea rbx, [r14 + 0xa8]
mov qword [rsp + 0x68], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea ecx, [rbp + 0x30]
call fcn.14011b0e4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rcx, [r14 + 0xb8]
call fcn.140153da0
nop
call fcn.140152330
mov rcx, rax
call fcn.14012a548
call fcn.14012a51c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140187c40]
mulsd xmm0, qword [0x140187c38]
cvttsd2si eax, xmm0
mov ecx, 1
sub ecx, eax
mov dword [r14 + 0x20], ecx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14 + 0x10], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14 + 0x18], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14 + 0x90], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [r14 + 0x38], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14 + 0x50], rax
lea ecx, [rbp + 0x40]
call fcn.14011b0e4
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14014edfd
mov qword [rax], rbp
mov qword [rax + 8], rbp
lea ecx, [rbp + 0x18]
call fcn.14011b0e4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi], rax
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rbp
mov qword [rsi + 0x20], rbp
mov dword [rsi + 0x28], 0x400
mov ecx, 0xc00
mov qword [rsi + 0x2c], rcx
mov byte [rsp + 0x68], bpl
mov rdx, qword [rsi + 0x18]
mov r9, qword [rsi + 0x10]
mov r8, rdx
sub r8, r9
sar r8, 4
cmp r8, rcx
jbe 0x14014edb7
lea rbx, [r9 + 0xc000]
lea r8, [rsi + 0x10]
mov rcx, rbx
call fcn.14014dce0
mov qword [rsi + 0x18], rbx
jmp 0x14014edf1
jae 0x14014edf1
mov rax, rbp
sub rax, r9
sar rax, 4
cmp rax, rcx
jae 0x14014eddb
lea r8, [rsp + 0x68]
mov rdx, rcx
lea rcx, [rsi + 0x10]
call fcn.14014e7f0
jmp 0x14014edf1
sub rcx, r8
xor r9d, r9d
mov r8, rcx
lea rcx, [rsi + 0x10]
call fcn.14014f6e0
mov qword [rsi + 0x18], rax
lea rcx, [rsi + 0x38]
call fcn.1401515b0
nop
jmp 0x14014ee00
mov rsi, rbp
mov qword [r14 + 0x70], rsi
mov rax, r14
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret