Function at 0x1400b9670
Capabilities:
Allocate thread local storage

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movapd xmmword [rsp + 0x40], xmm7
movapd xmmword [rsp + 0x30], xmm6
mov rbx, rdx
mov rdi, rcx
lea rsi, [rcx + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b9a4b
cmp byte [rdi + 0x1470], 0
jne 0x1400b9a61
call fcn.1400058b0
cmp byte [rbx], 1
sete byte [rdi + 4]
mov al, byte [rbx + 3]
cmp al, 1
sete byte [rdi + 5]
cmp byte [rbx + 4], 1
je 0x1400b9774
mov byte [rdi + 6], 0
mov qword [rdi + 8], 0
cmp al, 1
je 0x1400b9752
mov qword [rsp + 0x28], rsi
cmp byte [rbx + 2], 0
setne byte [rdi]
xorps xmm2, xmm2
movaps xmmword [rdi + 0x1450], xmm2
movaps xmmword [rdi + 0x1460], xmm2
lea r9, [0x1401f3b1e]
mov qword [rdi + 0x1448], r9
mov rax, rdi
not rax
mov qword [rdi + 0x1920], rax
mov r8d, 0x10
xor r10d, r10d
movabs rcx, 0x3ffffffffff
lea r11, [0x1401f3b40]
movsd xmm3, qword [0x1401e1fc8]
movdqa xmm0, xmmword [0x1401f3950]
movapd xmm1, xmmword [0x1401f3960]
jmp 0x1400b9848
mov rcx, qword [rbx + 8]
test rcx, rcx
mov eax, 4
cmovne rax, rcx
cmp rax, 3
jbe 0x1400b9a5e
mov dword [rdi + 8], eax
jmp 0x1400b96e3
cmp qword [0x140219dd0], 0xffffffffffffffff
setne byte [rdi + 6]
je 0x1400b96d7
cmp al, 1
je 0x1400b9a85
mov qword [rdi + 8], 0
jmp 0x1400b96e3
mov r8d, 0x3000
mov r12w, 3
xor ebp, ebp
movapd xmm4, xmm3
nop dword [rax]
mov rax, r8
xor edx, edx
div r15
mov eax, r12d
and eax, 3
lea r13d, [rax*8]
mov esi, 0x20
sub esi, r13d
test eax, eax
cmove esi, eax
add rsi, rdx
xorps xmm5, xmm5
cvtsi2sd xmm5, rsi
movq xmm6, r8
punpckldq xmm6, xmm0
subpd xmm6, xmm1
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
divsd xmm5, xmm7
ucomisd xmm4, xmm5
minsd xmm5, xmm4
cmova ebp, r12d
add r8, 0x1000
inc r12d
movapd xmm4, xmm5
cmp r8, 0x11000
jne 0x1400b97b0
cmp bp, 0x10
ja 0x1400b9a42
movzx r8d, bp
lea rax, [rdi + r14*8]
add rax, 0x64
movzx edx, r8b
mov dword [rax], edx
mov r8, qword [r11 + r10*8 + 8]
inc r10
cmp r8, 1
je 0x1400b989a
lea r14, [r10 + r10*4]
mov dword [rdi + r14*8 + 0x60], r8d
mov r15d, r8d
mov rax, rcx
xor edx, edx
div r15
inc rax
mov qword [rdi + r14*8 + 0x68], rax
mov qword [rdi + r14*8 + 0x48], r9
movups xmmword [rdi + r14*8 + 0x50], xmm2
movzx eax, byte [rdi + r14*8 + 0x64]
mov dword [rdi + r14*8 + 0x64], eax
cmp r8d, 0x10000
jbe 0x1400b979b
test r8d, 0xff00000
jne 0x1400b9a45
shr r8d, 0xc
jmp 0x1400b982c
cmp r10, 0x7f
ja 0x1400b997c
movabs rax, 0x40000000000
xorps xmm2, xmm2
movsd xmm3, qword [0x1401e1fc8]
lea rcx, [r10 + r10*4]
lea rcx, [rdi + rcx*8]
add rcx, 0x48
mov dword [rcx + 0x18], 1
mov qword [rcx + 0x20], rax
mov qword [rcx], r9
movups xmmword [rcx + 8], xmm2
movzx edx, byte [rcx + 0x1c]
mov dword [rcx + 0x1c], edx
mov r8d, 0x3000
mov r11w, 3
xor edx, edx
movapd xmm4, xmm3
nop
mov esi, r11d
and esi, 3
lea ebp, [rsi*8]
mov r14d, 0x20
sub r14d, ebp
test esi, esi
cmove r14d, esi
xorps xmm5, xmm5
cvtsi2sd xmm5, r14d
movq xmm6, r8
punpckldq xmm6, xmm0
subpd xmm6, xmm1
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
divsd xmm5, xmm7
ucomisd xmm4, xmm5
minsd xmm5, xmm4
cmova edx, r11d
add r8, 0x1000
inc r11d
movapd xmm4, xmm5
cmp r8, 0x11000
jne 0x1400b98f0
cmp dx, 0x10
ja 0x1400b9a48
movzx edx, dx
mov dword [rcx + 0x1c], edx
mov qword [rcx], 0
lea rcx, [r10 + 1]
cmp r10, 0x7f
mov r10, rcx
jb 0x1400b98b9
lea rcx, [0x140225e00]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b9a31
cmp byte [0x14022aea8], 0
mov rsi, qword [rsp + 0x28]
je 0x1400b99ec
lea rcx, [0x140225e00]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx + 1], 1
sete byte [rdi + 3]
je 0x1400b9a27
mov bl, 1
mov byte [rdi + 0x1470], bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg byte [0x14022ae30], bl
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [0x14022c908], 0
jne 0x1400b9a58
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400b9a5b
mov dword [0x14022ae58], eax
mov dword [0x14022c910], eax
lea rax, [0x14011a470]
mov qword [0x14022c908], rax
mov byte [0x14022aea8], 1
jmp 0x1400b999f
mov rcx, rdi
call fcn.1400865e0
jmp 0x1400b99b6
lea rcx, [0x140225e00]
call fcn.1400bd7f0
jmp 0x1400b9991
int3
int3
int3
mov rcx, rsi
call fcn.1400bd7f0
jmp 0x1400b96a7
int3
int3
int3
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
int3