Function at 0x14001c0c0
Capabilities:
Allocate thread local storage

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140114040]
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
jne 0x14001c109
mov rcx, rsi
call fcn.14007a5f0
cmp byte [rdi + 0x1470], 0
je 0x14001c144
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400941a0
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
call fcn.14004a7f0
cmp byte [rbx + 2], 1
sete byte [rdi + 4]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x140116590], 0xffffffffffffffff
setne cl
and cl, dl
mov byte [rdi + 0x10], cl
cmp byte [rbx + 0x18], 1
sete byte [rdi + 0x11]
cmp byte [rbx + 4], 1
sete byte [rdi + 0x12]
je 0x14001c18f
cmp byte [rdi + 0x19c0], 0
je 0x14001c2e4
jmp 0x14001c47e
movabs r12, 0xaaaaaaaaaaaaaaaa
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x1938], rax
mov rax, qword [rbx + 8]
mov qword [rdi + 0x1930], rax
lea r15, [rdi + 0x1940]
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x1948], rax
mov r13, qword [rbx + 8]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r13
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x40], 0
lea r14, [rsp + 0x70]
mov qword [r14], r12
mov edx, 8
mov rcx, r14
call fcn.14000d6a0
mov rax, qword [r14]
mov qword [rsp + 0x48], rax
mov qword [r14], r12
lea r14, [rsp + 0x70]
mov edx, 8
mov rcx, r14
call fcn.14000d6a0
mov rax, qword [r14]
mov qword [rsp + 0x50], rax
call fcn.1400843d0
mov rdx, r13
shl rdx, 4
mov rcx, rax
xor r8d, r8d
call fcn.140010c00
test r13, r13
je 0x14001c47b
mov r14, rax
cmp byte [rdi + 0x19c0], 0
je 0x14001c24a
mov byte [rdi + 0x19c0], 0
mov qword [rdi + 0x1978], r15
mov qword [rdi + 0x1980], r13
mov r13b, 1
mov byte [rdi + 0x1988], r13b
xorps xmm6, xmm6
movaps xmmword [rdi + 0x1990], xmm6
xor ebp, ebp
mov qword [rdi + 0x19a0], rbp
lea r15, [rsp + 0x70]
mov qword [r15], r12
mov edx, 8
mov rcx, r15
call fcn.14000d6a0
mov rax, qword [r15]
mov qword [rdi + 0x1998], rax
mov qword [r15], r12
lea r15, [rsp + 0x70]
mov edx, 8
mov rcx, r15
call fcn.14000d6a0
mov rax, qword [r15]
mov qword [rdi + 0x19a0], rax
mov qword [rdi + 0x19a8], r14
movaps xmmword [rdi + 0x19b0], xmm6
lea rax, [rsp + 0x58]
mov qword [rax + 0x10], rbp
movups xmmword [rax], xmm6
mov byte [rdi + 0x19c0], r13b
lea rcx, [rsp + 0x28]
call fcn.140015310
mov al, byte [rdi + 4]
mov cl, byte [rdi + 0x10]
test cl, cl
je 0x14001c409
test al, al
jne 0x14001c478
mov dword [rdi + 0x14], 0
cmp byte [rbx + 1], 0
setne byte [rdi]
xorps xmm0, xmm0
movaps xmmword [rdi + 0x1450], xmm0
movaps xmmword [rdi + 0x1460], xmm0
lea rax, [0x1400fe760]
mov qword [rdi + 0x1448], rax
mov rax, rdi
not rax
mov qword [rdi + 0x1920], rax
lea r14, [rdi + 0x48]
mov edx, 0x10
xor r15d, r15d
lea r12, [0x1400f4c88]
mov rcx, r14
call fcn.140091bf0
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x28
cmp rdx, 1
jne 0x14001c341
cmp r15, 0x7f
ja 0x14001c385
dec r15
mov rcx, r14
mov edx, 1
call fcn.140091bf0
mov qword [r14], 0
inc r15
add r14, 0x28
cmp r15, 0x7f
jb 0x14001c364
lea rcx, [0x140116648]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001c467
cmp byte [0x140126238], 0
je 0x14001c42c
lea rcx, [0x140116648]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 3]
jne 0x14001c3c5
mov rcx, rdi
call fcn.14004e160
mov bl, 1
mov byte [rdi + 0x1470], bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg byte [0x1401261e4], bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400941a0
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rdi + 0x14], 0
test al, al
je 0x14001c2fb
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x14001c2fb
cmp qword [0x14012bc08], 0
jne 0x14001c481
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001c484
mov dword [0x1401261e8], eax
mov dword [0x14012bc10], eax
lea rax, [0x140015210]
mov qword [0x14012bc08], rax
mov byte [0x140126238], 1
jmp 0x14001c3a7
lea rcx, [0x140116648]
call fcn.14007a5f0
jmp 0x14001c39a
int3
int3
int3
int3
int3