Function at 0x140151cc0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
lea ecx, [r12 + 0x30]
call fcn.14011c364
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [r15], rax
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], r12
mov dword [r15 + 0x20], r12d
lea rbx, [r15 + 0x28]
mov qword [rsp + 0x70], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
lea ecx, [r12 + 0x38]
call fcn.14011c364
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 [r15 + 0x38], r12d
lea rbx, [r15 + 0x40]
mov qword [rsp + 0x70], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
lea ecx, [r12 + 0x30]
call fcn.14011c364
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, [r15 + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
lea ecx, [r12 + 0x60]
call fcn.14011c364
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 [r15 + 0x68], r12
mov qword [r15 + 0x70], r12
mov byte [r15 + 0x78], r12b
mov qword [r15 + 0x80], r12
mov qword [r15 + 0x88], r12
mov qword [r15 + 0x90], r12
mov dword [r15 + 0x98], r12d
mov byte [r15 + 0x9c], r12b
mov qword [r15 + 0xa0], r12
lea rbx, [r15 + 0xa8]
mov qword [rsp + 0x70], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
lea ecx, [r12 + 0x30]
call fcn.14011c364
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, [r15 + 0xb8]
call fcn.140156da0
nop
call fcn.140155350
mov rcx, rax
call fcn.14012d79c
call fcn.14012d770
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140189cd8]
mulsd xmm0, qword [0x140189cd0]
cvttsd2si eax, xmm0
mov ecx, 1
sub ecx, eax
mov dword [r15 + 0x20], ecx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r15 + 0x10], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r15 + 0x18], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r15 + 0x90], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [r15 + 0x38], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r15 + 0x50], rax
lea ecx, [r12 + 0x40]
call fcn.14011c364
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140151f9c
mov qword [rax], r12
mov qword [rax + 8], r12
lea ecx, [r12 + 0x18]
call fcn.14011c364
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi], rax
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x20], r12
mov dword [rsi + 0x28], 0x400
mov ecx, 0xc00
mov qword [rsi + 0x2c], rcx
mov rbp, qword [rsi + 0x18]
mov rdx, rbp
sar rdx, 4
cmp rdx, rcx
jbe 0x140151f53
mov r13d, 0xc000
mov edi, r13d
cmp r13, rbp
je 0x140151f4d
nop dword [rax]
mov rcx, qword [rdi]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x140151f37
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.14011c3a0
mov rcx, rbx
test rbx, rbx
jne 0x140151f22
mov edx, 0x18
mov rcx, qword [rdi]
call fcn.14011c3a0
add rdi, 0x10
cmp rdi, rbp
jne 0x140151f10
mov qword [rsi + 0x18], r13
jmp 0x140151f90
jae 0x140151f90
mov rax, r12
sar rax, 4
cmp rax, rcx
jae 0x140151f74
lea r8, [rsp + 0x68]
mov rdx, rcx
lea rcx, [rsi + 0x10]
call fcn.1401519a0
jmp 0x140151f90
sub rcx, rdx
movzx r9d, byte [rsp + 0x68]
mov r8, rcx
mov rdx, rbp
lea rcx, [rsi + 0x10]
call fcn.140152790
mov qword [rsi + 0x18], rax
lea rcx, [rsi + 0x38]
call fcn.1401545d0
nop
jmp 0x140151f9f
mov rsi, r12
mov qword [r15 + 0x70], rsi
mov rax, r15
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret