Function at 0x1400715e0
Capabilities:
Allocate thread local storage

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movapd xmmword [rsp + 0xa0], xmm7
movapd xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140140040]
xor rax, rsp
mov qword [rsp + 0x88], rax
add rcx, 0x40
mov qword [rsp + 0x28], rcx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140071b4a
cmp byte [rdi + 0x1470], 0
jne 0x140071b8c
call fcn.140007950
cmp byte [rsi + 2], 1
sete byte [rdi + 4]
sete al
cmp byte [rsi + 3], 1
sete dl
cmp qword [0x140142590], 0xffffffffffffffff
setne cl
and cl, dl
mov byte [rdi + 0x10], cl
cmp byte [rsi + 0x10], 1
sete byte [rdi + 0x11]
cmp byte [rsi + 4], 1
sete byte [rdi + 0x12]
je 0x140071741
cmp byte [rdi + 0x19b8], 0
jne 0x140071b47
cmp byte [rsi + 0x1c], 1
sete byte [rdi + 0x13]
test cl, cl
jne 0x14007172d
mov dword [rdi + 0x14], 0
test al, al
jne 0x140071719
mov qword [rsp + 0x30], rsi
cmp byte [rsi + 1], 0
setne byte [rdi]
xorps xmm2, xmm2
movaps xmmword [rdi + 0x1450], xmm2
movaps xmmword [rdi + 0x1460], xmm2
lea r9, [0x14012e907]
mov qword [rdi + 0x1448], r9
mov rax, rdi
not rax
mov qword [rdi + 0x1920], rax
lea r10, [rdi + 0x48]
mov r8d, 0x10
xor r11d, r11d
movabs rcx, 0x3ffffffffff
lea r14, [0x14011fb78]
movsd xmm3, qword [0x140116af8]
movq xmm0, qword [0x140123450]
movapd xmm1, xmmword [0x140123460]
jmp 0x140071953
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x1400716a6
test al, al
jne 0x140071b89
mov dword [rdi + 0x14], 0
jmp 0x1400716a6
movabs r13, 0xaaaaaaaaaaaaaaaa
mov rbx, rsi
mov rax, qword [rsi + 8]
mov qword [rdi + 0x1930], rax
lea rcx, [rdi + 0x1938]
mov qword [rdi + 0x1940], rax
lea r12, [rsp + 0x60]
mov qword [r12 - 0x28], rcx
mov byte [r12 - 0x20], 1
mov qword [r12 - 0x18], 0
lea r14, [rsp + 0x80]
mov qword [r14], r13
mov edx, 8
mov rcx, r14
call fcn.140007120
mov rax, qword [r14]
mov qword [r12 - 0x10], rax
mov qword [r14], r13
lea r14, [rsp + 0x80]
mov edx, 8
mov rcx, r14
call fcn.140007120
mov rax, qword [r14]
mov qword [r12 - 8], rax
xorpd xmm6, xmm6
movupd xmmword [r12], xmm6
movupd xmmword [r12 + 0x10], xmm6
cmp byte [rdi + 0x19b8], 0
jne 0x140071b7d
lea r14, [rsp + 0x38]
mov rax, qword [r14]
mov qword [rdi + 0x1970], rax
mov al, byte [r14 + 8]
mov byte [rdi + 0x1978], al
movapd xmmword [rdi + 0x1980], xmm6
xor ebp, ebp
mov qword [rdi + 0x1990], rbp
lea r15, [rsp + 0x80]
mov qword [r15], r13
mov edx, 8
mov rcx, r15
call fcn.140007120
mov rax, qword [r15]
mov qword [rdi + 0x1988], rax
mov qword [r15], r13
lea r15, [rsp + 0x80]
mov edx, 8
mov rcx, r15
call fcn.140007120
mov rax, qword [r15]
mov qword [rdi + 0x1990], rax
mov rax, qword [r14 + 0x28]
mov qword [rdi + 0x1998], rax
mov rax, qword [r14 + 0x30]
mov qword [rdi + 0x19a0], rax
mov rax, qword [r14 + 0x38]
mov qword [rdi + 0x19a8], rax
mov qword [r12 + 0x10], rbp
movupd xmmword [r12], xmm6
mov rax, qword [r14 + 0x40]
mov qword [rdi + 0x19b0], rax
mov qword [r14 + 0x40], rbp
mov byte [rdi + 0x19b8], 1
mov rcx, r14
call fcn.140007190
mov al, byte [rdi + 4]
mov cl, byte [rdi + 0x10]
mov rsi, rbx
jmp 0x14007168b
mov r8d, 0x3000
mov r13w, 3
xor ebp, ebp
movapd xmm4, xmm3
nop word cs:[rax + rax]
mov rax, r8
xor edx, edx
div r12
mov eax, r13d
and eax, 3
lea esi, [rax*8]
mov ebx, 0x20
sub ebx, esi
test eax, eax
cmove ebx, eax
add rbx, rdx
xorps xmm5, xmm5
cvtsi2sd xmm5, rbx
movq xmm6, r8
punpckldq xmm6, xmm0
subpd xmm6, xmm1
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
divsd xmm5, xmm7
ucomisd xmm4, xmm5
minsd xmm5, xmm4
cmova ebp, r13d
add r8, 0x1000
inc r13d
movapd xmm4, xmm5
cmp r8, 0x11000
jne 0x1400718c0
cmp bp, 0x10
ja 0x140071b3e
movzx r8d, bp
lea rax, [r10 + r15*8]
movzx edx, r8b
mov dword [rax + 0x1c], edx
mov r8, qword [r14 + r11*8 + 8]
inc r11
cmp r8, 1
je 0x1400719a4
lea r15, [r11 + r11*4]
mov dword [r10 + r15*8 + 0x18], r8d
mov r12d, r8d
mov rax, rcx
xor edx, edx
div r12
inc rax
mov qword [r10 + r15*8 + 0x20], rax
mov qword [r10 + r15*8], r9
movups xmmword [r10 + r15*8 + 8], xmm2
movzx eax, byte [r10 + r15*8 + 0x1c]
mov dword [r10 + r15*8 + 0x1c], eax
cmp r8d, 0x10000
jbe 0x1400718a4
test r8d, 0xff00000
jne 0x140071b41
shr r8d, 0xc
jmp 0x14007193a
cmp r11, 0x7f
ja 0x140071a75
movabs rax, 0x40000000000
xorps xmm2, xmm2
movsd xmm3, qword [0x140116af8]
lea rcx, [r11 + r11*4]
lea rcx, [r10 + rcx*8]
mov dword [rcx + 0x18], 1
mov qword [rcx + 0x20], rax
mov qword [rcx], r9
movups xmmword [rcx + 8], xmm2
movzx edx, byte [rcx + 0x1c]
mov dword [rcx + 0x1c], edx
mov r8d, 0x3000
mov bp, 3
xor edx, edx
movapd xmm4, xmm3
mov esi, ebp
and esi, 3
lea ebx, [rsi*8]
mov r14d, 0x20
sub r14d, ebx
test esi, esi
cmove r14d, esi
xorps xmm5, xmm5
cvtsi2sd xmm5, r14d
movq xmm6, r8
punpckldq xmm6, xmm0
subpd xmm6, xmm1
haddpd xmm6, xmm6
divsd xmm5, xmm6
ucomisd xmm4, xmm5
minsd xmm5, xmm4
cmova edx, ebp
add r8, 0x1000
inc ebp
movapd xmm4, xmm5
cmp r8, 0x11000
jne 0x1400719f4
cmp dx, 0x10
ja 0x140071b44
movzx edx, dx
mov dword [rcx + 0x1c], edx
mov qword [rcx], 0
lea rcx, [r11 + 1]
cmp r11, 0x7f
mov r11, rcx
jb 0x1400719c3
lea rcx, [0x140142630]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140071b59
cmp byte [0x140151f78], 0
mov rsi, qword [rsp + 0x30]
je 0x140071b03
lea rcx, [0x140142630]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rsi], 1
sete byte [rdi + 3]
je 0x140071b6a
mov bl, 1
mov byte [rdi + 0x1470], bl
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg byte [0x140151f24], bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a4d90
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [0x140157a18], 0
jne 0x140071b77
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140071b7a
mov dword [0x140151f28], eax
mov dword [0x140157a20], eax
lea rax, [0x140023580]
mov qword [0x140157a18], rax
mov byte [0x140151f78], 1
jmp 0x140071a98
int3
int3
int3
int3
mov rcx, qword [rsp + 0x28]
call fcn.1400622d0
jmp 0x140071634
lea rcx, [0x140142630]
call fcn.1400622d0
jmp 0x140071a8a
mov rcx, rdi
call fcn.1400581d0
jmp 0x140071ab2
int3
int3
mov byte [rdi + 0x19b8], 0
jmp 0x1400717de
int3
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a4d90
mov rcx, qword [rsp + 0x28]
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]