Function at 0x1400a1bc0
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 [0x1402b3040]
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 0x1400a1c38
cmp byte [rdi + 0x1878], 0
je 0x1400a1c49
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x1400a1c1d
call fcn.14019d280
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 0x1400a1c03
cmp qword [0x1402b5700], 0xffffffffffffffff
jne 0x1400a1cca
mov dword [rsp + 0x20], 0
movabs rdx, 0x800000000
xor ecx, ecx
mov r8, rdx
xor r9d, r9d
call fcn.1400a44f0
mov qword [0x1402b5700], rax
test rax, rax
je 0x1400a1fdc
movabs r14, 0x400000000
mov rcx, rax
add rcx, r14
mov qword [0x1402b5708], rcx
lea r15, [0x1402c5a30]
mov rcx, r15
mov edx, 1
mov r8, rax
mov r9, r14
call fcn.1400a48a0
mov r8, qword [0x1402b5708]
mov rcx, r15
mov edx, 2
mov r9, r14
call fcn.1400a48a0
cmp byte [rbx + 2], 1
sete byte [rdi + 2]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x1402b5710], 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 0x1400a1e30
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.140102fb0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x90]
mov edx, 8
call fcn.140102fb0
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 0x1400a1dab
mov byte [rdi + 0x1dc0], 0
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, r15
call fcn.1400c0ff0
mov byte [rdi + 0x1dc0], 1
mov rcx, r15
call fcn.1400c10e0
mov r14, qword [rsp + 0x68]
test r14, r14
je 0x1400a1e02
mov rax, qword [rsp + 0x70]
nop dword [rax]
cmp rax, r14
je 0x1400a1ded
add rax, 0xfffffffffffffff0
jne 0x1400a1de0
ud2
mov qword [rsp + 0x70], r14
call fcn.1400bef10
mov rcx, rax
mov rdx, r14
call fcn.1400a0760
cmp byte [rbx + 0x1c], 1
movzx eax, byte [rdi + 2]
sete byte [rdi + 0x13]
test byte [rdi + 0x10], 1
jne 0x1400a1e49
mov dword [rdi + 0x14], 0
test al, 1
je 0x1400a1e58
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x1400a1e58
cmp byte [rdi + 0x1dc0], 1
je 0x1400a1fe1
cmp byte [rbx + 0x1c], 1
sete byte [rdi + 0x13]
test cl, cl
je 0x1400a1e14
test al, 1
jne 0x1400a1fe4
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, [0x14028e198]
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, [0x14028b2d0]
nop word cs:[rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
call fcn.1400befe0
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x30
cmp rdx, 1
jne 0x1400a1eb0
cmp r15, 0x7f
ja 0x1400a1f09
dec r15
nop dword [rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
mov edx, 1
call fcn.1400befe0
mov qword [r14], 0
inc r15
add r14, 0x30
cmp r15, 0x7f
jb 0x1400a1ee0
lea rcx, [0x1402b57b0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a1fc2
cmp byte [0x1402c5a08], 0
jne 0x1400a1f65
cmp qword [0x1402cbf30], 0
jne 0x1400a1fe7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400a1fea
mov dword [0x1402c59b8], eax
mov dword [0x1402cbf38], eax
lea rax, [0x1400a2ad0]
mov qword [0x1402cbf30], rax
mov byte [0x1402c5a08], 1
lea rcx, [0x1402b57b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 1]
jne 0x1400a1f83
mov rcx, rdi
call fcn.1400a2ca0
mov byte [rdi + 0x1878], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x1402c59b4], cl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14019d280
nop
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1402b57b0]
call fcn.14001e950
cmp byte [0x1402c5a08], 0
jne 0x1400a1f65
jmp 0x1400a1f27
call fcn.14009c940
int3
int3
int3
int3