Function at 0x14001c060
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 [0x14010c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rsi, [rcx + 0x40]
mov rcx, rsi
call qword [sym.imp.progwrp.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14001c0a9
mov rcx, rsi
call fcn.1400731b0
cmp byte [rdi + 0x1470], 0
je 0x14001c0e4
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400909a0
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.progwrp.dll_ReleaseSRWLockExclusive]
call fcn.140049610
cmp byte [rbx + 2], 1
sete byte [rdi + 4]
sete al
cmp byte [rbx + 3], 1
sete dl
cmp qword [0x14010e590], 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 0x14001c12f
cmp byte [rdi + 0x19c0], 0
je 0x14001c284
jmp 0x14001c41e
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.14000d270
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.14000d270
mov rax, qword [r14]
mov qword [rsp + 0x50], rax
call fcn.140081b30
mov rdx, r13
shl rdx, 4
mov rcx, rax
xor r8d, r8d
call fcn.140010b70
test r13, r13
je 0x14001c41b
mov r14, rax
cmp byte [rdi + 0x19c0], 0
je 0x14001c1ea
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.14000d270
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.14000d270
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.1400154d0
mov al, byte [rdi + 4]
mov cl, byte [rdi + 0x10]
test cl, cl
je 0x14001c3a9
test al, al
jne 0x14001c418
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, [0x1400f7bf9]
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, [0x1400f7118]
mov rcx, r14
call fcn.14008e510
mov rdx, qword [r12 + r15*8 + 8]
inc r15
add r14, 0x28
cmp rdx, 1
jne 0x14001c2e1
cmp r15, 0x7f
ja 0x14001c325
dec r15
mov rcx, r14
mov edx, 1
call fcn.14008e510
mov qword [r14], 0
inc r15
add r14, 0x28
cmp r15, 0x7f
jb 0x14001c304
lea rcx, [0x14010e5d8]
call qword [sym.imp.progwrp.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001c407
cmp byte [0x14011f3d8], 0
je 0x14001c3cc
lea rcx, [0x14010e5d8]
call qword [sym.imp.progwrp.dll_ReleaseSRWLockExclusive]
cmp byte [rbx], 1
sete byte [rdi + 3]
jne 0x14001c365
mov rcx, rdi
call fcn.14004c160
mov bl, 1
mov byte [rdi + 0x1470], bl
mov rcx, rsi
call qword [sym.imp.progwrp.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg byte [0x14011f37c], bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400909a0
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 0x14001c29b
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x14001c29b
cmp qword [0x140120290], 0
jne 0x14001c421
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001c424
mov dword [0x14011f380], eax
mov dword [0x140120298], eax
lea rax, [0x1400153d0]
mov qword [0x140120290], rax
mov byte [0x14011f3d8], 1
jmp 0x14001c347
lea rcx, [0x14010e5d8]
call fcn.1400731b0
jmp 0x14001c33a
int3
int3
int3
int3
int3