Function at 0x14007e040
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 [0x14013a028]
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 0x14007e5ae
cmp byte [rdi + 0x1470], 0
jne 0x14007e5f0
call fcn.140007680
cmp byte [rsi + 2], 1
sete byte [rdi + 4]
sete al
cmp byte [rsi + 3], 1
sete dl
cmp qword [0x14013c510], 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 0x14007e199
cmp byte [rdi + 0x19b8], 0
jne 0x14007e5ab
test cl, cl
jne 0x14007e185
mov dword [rdi + 0x14], 0
test al, al
jne 0x14007e171
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, [0x140128d57]
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, [0x14011ab98]
movsd xmm3, qword [0x140111bb8]
movq xmm0, qword [0x14011dd90]
movapd xmm1, xmmword [0x14011dda0]
jmp 0x14007e3a3
mov qword [rdi + 8], 4
mov dword [rdi + 0x14], 4
jmp 0x14007e0fe
test al, al
jne 0x14007e5ed
mov dword [rdi + 0x14], 0
jmp 0x14007e0fe
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.14007dfd0
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.14007dfd0
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 0x14007e5e1
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.14007dfd0
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.14007dfd0
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.140006ed0
mov al, byte [rdi + 4]
mov cl, byte [rdi + 0x10]
mov rsi, rbx
jmp 0x14007e0eb
mov r8d, 0x3000
mov r13w, 3
xor ebp, ebp
movapd xmm4, xmm3
nop dword [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 0x14007e310
cmp bp, 0x10
ja 0x14007e5a2
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 0x14007e3f4
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 0x14007e2fc
test r8d, 0xff00000
jne 0x14007e5a5
shr r8d, 0xc
jmp 0x14007e38a
cmp r11, 0x7f
ja 0x14007e4d9
movabs rax, 0x40000000000
xorps xmm2, xmm2
movsd xmm3, qword [0x140111bb8]
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
nop word cs:[rax + rax]
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
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
divsd xmm5, xmm7
ucomisd xmm4, xmm5
minsd xmm5, xmm4
cmova edx, ebp
add r8, 0x1000
inc ebp
movapd xmm4, xmm5
cmp r8, 0x11000
jne 0x14007e450
cmp dx, 0x10
ja 0x14007e5a8
movzx edx, dx
mov dword [rcx + 0x1c], edx
mov qword [rcx], 0
lea rcx, [r11 + 1]
cmp r11, 0x7f
mov r11, rcx
jb 0x14007e413
lea rcx, [0x14013c5b0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14007e5bd
cmp byte [0x14014bf28], 0
mov rsi, qword [rsp + 0x30]
je 0x14007e567
lea rcx, [0x14013c5b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rsi], 1
sete byte [rdi + 3]
je 0x14007e5ce
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 [0x14014bed4], bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a77a0
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 [0x1401519d8], 0
jne 0x14007e5db
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14007e5de
mov dword [0x14014bed8], eax
mov dword [0x1401519e0], eax
lea rax, [0x140016c10]
mov qword [0x1401519d8], rax
mov byte [0x14014bf28], 1
jmp 0x14007e4fc
int3
int3
int3
int3
mov rcx, qword [rsp + 0x28]
call fcn.1400621e0
jmp 0x14007e094
lea rcx, [0x14013c5b0]
call fcn.1400621e0
jmp 0x14007e4ee
mov rcx, rdi
call fcn.140054730
jmp 0x14007e516
int3
int3
mov byte [rdi + 0x19b8], 0
jmp 0x14007e236
int3
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a77a0
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]