Function at 0x140097090
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 [0x14022c040]
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 0x140097108
cmp byte [rdi + 0x1878], 0
je 0x140097119
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x1400970ed
call fcn.1401363f0
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.14001c6f0
cmp byte [rdi + 0x1878], 0
jne 0x1400970d3
cmp qword [0x14022e640], 0xffffffffffffffff
jne 0x14009719a
mov dword [rsp + 0x20], 0
movabs rdx, 0x800000000
xor ecx, ecx
mov r8, rdx
xor r9d, r9d
call fcn.140099930
mov qword [0x14022e640], rax
test rax, rax
je 0x1400974ae
movabs r14, 0x400000000
mov rcx, rax
add rcx, r14
mov qword [0x14022e648], rcx
lea r15, [0x14023e790]
mov rcx, r15
mov edx, 1
mov r8, rax
mov r9, r14
call fcn.140099ce0
mov r8, qword [0x14022e648]
mov rcx, r15
mov edx, 2
mov r9, r14
call fcn.140099ce0
cmp byte [rbx + 2], 1
sete byte [rdi + 2]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x14022e650], 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 0x140097307
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.1400a41b0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x90]
mov edx, 8
call fcn.1400a41b0
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 0x14009727b
mov byte [rdi + 0x1dc0], 0
lea r15, [rsp + 0x40]
mov rcx, r14
mov rdx, r15
call fcn.14009ff10
mov byte [rdi + 0x1dc0], 1
mov rcx, r15
call fcn.1400a0000
mov r14, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
jmp 0x1400972ba
add rax, 0xfffffffffffffff0
je 0x1400974ac
cmp rax, r14
jne 0x1400972b0
mov qword [rsp + 0x70], r14
test r14, r14
je 0x1400972d9
call fcn.14009ddc0
mov rcx, rax
mov rdx, r14
call fcn.140095b40
cmp byte [rbx + 0x1c], 1
movzx eax, byte [rdi + 2]
sete byte [rdi + 0x13]
test byte [rdi + 0x10], 1
jne 0x140097320
mov dword [rdi + 0x14], 0
test al, 1
je 0x14009732f
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x14009732f
cmp byte [rdi + 0x1dc0], 1
je 0x1400974b3
cmp byte [rbx + 0x1c], 1
sete byte [rdi + 0x13]
test cl, cl
je 0x1400972eb
test al, 1
jne 0x1400974b6
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, [0x1402144d8]
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, [0x140211630]
nop dword [rax]
cmp bpl, 1
sete r8b
mov rcx, r14
call fcn.14009de90
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x30
cmp rdx, 1
jne 0x140097380
cmp r15, 0x7f
ja 0x1400973d9
dec r15
nop dword [rax + rax]
cmp bpl, 1
sete r8b
mov rcx, r14
mov edx, 1
call fcn.14009de90
mov qword [r14], 0
inc r15
add r14, 0x30
cmp r15, 0x7f
jb 0x1400973b0
lea rcx, [0x14022e720]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140097492
cmp byte [0x14023e768], 0
jne 0x140097435
cmp qword [0x140244bd0], 0
jne 0x1400974b9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400974bc
mov dword [0x14023e710], eax
mov dword [0x140244bd8], eax
lea rax, [0x140097f60]
mov qword [0x140244bd0], rax
mov byte [0x14023e768], 1
lea rcx, [0x14022e720]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 1]
jne 0x140097453
mov rcx, rdi
call fcn.140098130
mov byte [rdi + 0x1878], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x14023e70c], cl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401363f0
nop
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14022e720]
call fcn.14001c6f0
cmp byte [0x14023e768], 0
jne 0x140097435
jmp 0x1400973f7
ud2
call fcn.140095640
int3
int3
int3
int3