Function at 0x1400a3bd0
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 [0x1402b7040]
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 0x1400a3c48
cmp byte [rdi + 0x1878], 0
je 0x1400a3c59
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400a3c2d
call fcn.14019f290
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 0x1400a3c13
cmp qword [0x1402b9700], 0xffffffffffffffff
jne 0x1400a3cda
mov dword [rsp + 0x20], 0
movabs rdx, 0x800000000
xor ecx, ecx
mov r8, rdx
xor r9d, r9d
call fcn.1400a6500
mov qword [0x1402b9700], rax
test rax, rax
je 0x1400a3fec
movabs r14, 0x400000000
mov rcx, rax
add rcx, r14
mov qword [0x1402b9708], rcx
lea r15, [0x1402c9a30]
mov rcx, r15
mov edx, 1
mov r8, rax
mov r9, r14
call fcn.1400a68b0
mov r8, qword [0x1402b9708]
mov rcx, r15
mov edx, 2
mov r9, r14
call fcn.1400a68b0
cmp byte [rbx + 2], 1
sete byte [rdi + 2]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x1402b9710], 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 0x1400a3e40
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.140104fc0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x90]
mov edx, 8
call fcn.140104fc0
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 0x1400a3dbb
mov byte [rdi + 0x1dc0], 0
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, r15
call fcn.1400c3000
mov byte [rdi + 0x1dc0], 1
mov rcx, r15
call fcn.1400c30f0
mov r14, qword [rsp + 0x68]
test r14, r14
je 0x1400a3e12
mov rax, qword [rsp + 0x70]
nop dword [rax]
cmp rax, r14
je 0x1400a3dfd
add rax, 0xfffffffffffffff0
jne 0x1400a3df0
ud2
mov qword [rsp + 0x70], r14
call fcn.1400c0f20
mov rcx, rax
mov rdx, r14
call fcn.1400a2770
cmp byte [rbx + 0x1c], 1
movzx eax, byte [rdi + 2]
sete byte [rdi + 0x13]
test byte [rdi + 0x10], 1
jne 0x1400a3e59
mov dword [rdi + 0x14], 0
test al, 1
je 0x1400a3e68
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x1400a3e68
cmp byte [rdi + 0x1dc0], 1
je 0x1400a3ff1
cmp byte [rbx + 0x1c], 1
sete byte [rdi + 0x13]
test cl, cl
je 0x1400a3e24
test al, 1
jne 0x1400a3ff4
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, [0x140291338]
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, [0x14028e480]
nop word cs:[rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
call fcn.1400c0ff0
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x30
cmp rdx, 1
jne 0x1400a3ec0
cmp r15, 0x7f
ja 0x1400a3f19
dec r15
nop dword [rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
mov edx, 1
call fcn.1400c0ff0
mov qword [r14], 0
inc r15
add r14, 0x30
cmp r15, 0x7f
jb 0x1400a3ef0
lea rcx, [0x1402b97b0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a3fd2
cmp byte [0x1402c9a08], 0
jne 0x1400a3f75
cmp qword [0x1402cff30], 0
jne 0x1400a3ff7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400a3ffa
mov dword [0x1402c99b8], eax
mov dword [0x1402cff38], eax
lea rax, [0x1400a4ae0]
mov qword [0x1402cff30], rax
mov byte [0x1402c9a08], 1
lea rcx, [0x1402b97b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 1]
jne 0x1400a3f93
mov rcx, rdi
call fcn.1400a4cb0
mov byte [rdi + 0x1878], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x1402c99b4], cl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14019f290
nop
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1402b97b0]
call fcn.14001e950
cmp byte [0x1402c9a08], 0
jne 0x1400a3f75
jmp 0x1400a3f37
call fcn.14009e950
int3
int3
int3
int3