Function at 0x1400aa9a0
Capabilities:
Allocate thread local storage

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rsi, [rcx + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400aaa08
cmp byte [rdi + 0x1878], 0
je 0x1400aaa19
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140149190
mov rcx, rsi
add rsp, 0x80
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.14001f0b0
cmp byte [rdi + 0x1878], 0
jne 0x1400aa9e0
call fcn.1400a8200
cmp byte [rbx + 2], 1
sete byte [rdi + 4]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x140262690], 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 0x1400aab77
mov r15, qword [rbx + 8]
mov qword [rdi + 0x1d38], r15
lea r14, [rdi + 0x1d70]
lea rax, [rdi + 0x1d40]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], 0
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], r12
lea rcx, [rsp + 0x70]
mov edx, 8
call fcn.1400bb920
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x70], r12
lea rcx, [rsp + 0x70]
mov edx, 8
call fcn.1400bb920
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
cmp byte [rdi + 0x1dc0], 1
jne 0x1400aaaea
mov byte [rdi + 0x1dc0], 0
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.1400b2960
mov byte [rdi + 0x1dc0], 1
mov rcx, r15
call fcn.1400b2a50
mov r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
jmp 0x1400aab2a
add rax, 0xfffffffffffffff0
je 0x1400aad29
cmp rax, r14
jne 0x1400aab20
mov qword [rsp + 0x50], r14
test r14, r14
je 0x1400aab49
call fcn.1400b04b0
mov rcx, rax
mov rdx, r14
call fcn.1400a8910
cmp byte [rbx + 0x1c], 1
movzx eax, byte [rdi + 4]
sete byte [rdi + 0x13]
test byte [rdi + 0x10], 1
jne 0x1400aab90
mov dword [rdi + 0x14], 0
test al, 1
je 0x1400aab9f
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x1400aab9f
cmp byte [rdi + 0x1dc0], 1
je 0x1400aad2b
cmp byte [rbx + 0x1c], 1
sete byte [rdi + 0x13]
test cl, cl
je 0x1400aab5b
test al, 1
jne 0x1400aad2e
mov dword [rdi + 0x14], 0
cmp byte [rbx + 1], 0
setne byte [rdi]
xorps xmm0, xmm0
movaps xmmword [rdi + 0x1850], xmm0
movaps xmmword [rdi + 0x1860], xmm0
mov qword [rdi + 0x1870], 0
lea rax, [0x140246820]
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, [0x1402438e0]
nop word cs:[rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
call fcn.1400b0b20
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x30
cmp rdx, 1
jne 0x1400aac00
cmp r15, 0x7f
ja 0x1400aac59
dec r15
nop dword [rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
mov edx, 1
call fcn.1400b0b20
mov qword [r14], 0
inc r15
add r14, 0x30
cmp r15, 0x7f
jb 0x1400aac30
lea rcx, [0x140262710]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400aad0f
cmp byte [0x140272798], 0
jne 0x1400aacb5
cmp qword [0x140278c90], 0
jne 0x1400aad31
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400aad34
mov dword [0x140272740], eax
mov dword [0x140278c98], eax
lea rax, [0x1400abb00]
mov qword [0x140278c90], rax
mov byte [0x140272798], 1
lea rcx, [0x140262710]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 3]
jne 0x1400aacd3
mov rcx, rdi
call fcn.1400abcd0
mov byte [rdi + 0x1878], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x14027273c], cl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140149190
nop
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140262710]
call fcn.14001f0b0
cmp byte [0x140272798], 0
jne 0x1400aacb5
jmp 0x1400aac77
ud2
int3
int3
int3
int3