Function at 0x1400b0670
Capabilities:
Allocate thread local storage

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rsi, [rcx + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b06e8
cmp byte [rdi + 0x1878], 0
je 0x1400b06f9
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x1400b06cd
call fcn.1401ac870
int3
mov rcx, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rsi
call fcn.14001e950
cmp byte [rdi + 0x1878], 0
jne 0x1400b06b3
cmp qword [0x1402dd740], 0xffffffffffffffff
jne 0x1400b077a
mov dword [rsp + 0x20], 0
movabs rdx, 0x800000000
xor ecx, ecx
mov r8, rdx
xor r9d, r9d
call fcn.1400b2fa0
mov qword [0x1402dd740], rax
test rax, rax
je 0x1400b0a8c
movabs r14, 0x400000000
mov rcx, rax
add rcx, r14
mov qword [0x1402dd748], rcx
lea r15, [0x14032e920]
mov rcx, r15
mov edx, 1
mov r8, rax
mov r9, r14
call fcn.1400b3350
mov r8, qword [0x1402dd748]
mov rcx, r15
mov edx, 2
mov r9, r14
call fcn.1400b3350
cmp byte [rbx + 2], 1
sete byte [rdi + 2]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x1402dd750], 0xffffffffffffffff
setne cl
and cl, dl
mov byte [rdi + 0x10], cl
cmp byte [rbx + 0x10], 1
sete byte [rdi + 0x11]
cmp byte [rbx + 4], 1
sete byte [rdi + 0x12]
jne 0x1400b08e0
mov r15, qword [rbx + 8]
mov qword [rdi + 0x1d38], r15
lea r14, [rdi + 0x1d70]
lea rax, [rdi + 0x1d40]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x90]
mov edx, 8
call fcn.140111a60
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x90]
mov edx, 8
call fcn.140111a60
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], r15
cmp byte [rdi + 0x1dc0], 1
jne 0x1400b085b
mov byte [rdi + 0x1dc0], 0
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, r15
call fcn.1400cfaa0
mov byte [rdi + 0x1dc0], 1
mov rcx, r15
call fcn.1400cfb90
mov r14, qword [rsp + 0x68]
test r14, r14
je 0x1400b08b2
mov rax, qword [rsp + 0x70]
nop dword [rax]
cmp rax, r14
je 0x1400b089d
add rax, 0xfffffffffffffff0
jne 0x1400b0890
ud2
mov qword [rsp + 0x70], r14
call fcn.1400cd9c0
mov rcx, rax
mov rdx, r14
call fcn.1400af210
cmp byte [rbx + 0x1c], 1
movzx eax, byte [rdi + 2]
sete byte [rdi + 0x13]
test byte [rdi + 0x10], 1
jne 0x1400b08f9
mov dword [rdi + 0x14], 0
test al, 1
je 0x1400b0908
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x1400b0908
cmp byte [rdi + 0x1dc0], 1
je 0x1400b0a91
cmp byte [rbx + 0x1c], 1
sete byte [rdi + 0x13]
test cl, cl
je 0x1400b08c4
test al, 1
jne 0x1400b0a94
mov dword [rdi + 0x14], 0
xorps xmm0, xmm0
movaps xmmword [rdi + 0x1860], xmm0
movaps xmmword [rdi + 0x1850], xmm0
mov qword [rdi + 0x1870], 0
lea rax, [0x1402b52d8]
mov qword [rdi + 0x1848], rax
mov rax, rdi
not rax
mov qword [rdi + 0x1d28], rax
movzx ebp, byte [rbx + 0x1d]
lea r14, [rdi + 0x48]
mov edx, 0x10
xor r15d, r15d
lea r12, [0x1402b23f8]
nop word cs:[rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
call fcn.1400cda90
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x30
cmp rdx, 1
jne 0x1400b0960
cmp r15, 0x7f
ja 0x1400b09b9
dec r15
nop dword [rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
mov edx, 1
call fcn.1400cda90
mov qword [r14], 0
inc r15
add r14, 0x30
cmp r15, 0x7f
jb 0x1400b0990
lea rcx, [0x1402dd7f0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b0a72
cmp byte [0x14032e8f8], 0
jne 0x1400b0a15
cmp qword [0x140334df0], 0
jne 0x1400b0a97
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400b0a9a
mov dword [0x14032e8a8], eax
mov dword [0x140334df8], eax
lea rax, [0x1400b1580]
mov qword [0x140334df0], rax
mov byte [0x14032e8f8], 1
lea rcx, [0x1402dd7f0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 1]
jne 0x1400b0a33
mov rcx, rdi
call fcn.1400b1750
mov byte [rdi + 0x1878], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x14032e8a4], cl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401ac870
nop
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1402dd7f0]
call fcn.14001e950
cmp byte [0x14032e8f8], 0
jne 0x1400b0a15
jmp 0x1400b09d7
call fcn.1400ab3f0
int3
int3
int3
int3