Function at 0x18007fa50
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12, r9
mov r13, r8
mov edi, edx
mov r15, rcx
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18007fab5
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18007faac
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18007faae
xor ebx, ebx
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ebx, word [r15 + 0x10]
lea rdx, [rbp - 0x41]
mov rcx, rax
call fcn.180060ac0
mov rcx, rax
mov r8d, ebx
lea rdx, [rbp + 0xf]
call fcn.18007c290
mov rdx, rax
mov rax, qword [rax]
xor ebx, ebx
test rax, rax
jne 0x18007faee
mov eax, ebx
jmp 0x18007faf1
mov rax, qword [rax]
mov rdx, qword [rdx + 0x10]
mov rcx, rdx
shr rcx, 1
and edx, 1
mov r8, qword [rax + 0x10]
cmp r8, rcx
ja 0x18007fb0a
sub rcx, r8
mov rax, qword [rax + 8]
mov rax, qword [rax + rcx*8]
mov r14, qword [rax + rdx*8]
mov rcx, qword [r14 + 0x68]
test rcx, rcx
je 0x18007fb37
nop
mov eax, dword [rcx + 0x20]
cmp eax, edi
jle 0x18007fb2c
mov rcx, qword [rcx]
jmp 0x18007fb32
jge 0x18007fb37
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x18007fb20
cmp qword [r15 + 0x50], 0
setne sil
test rcx, rcx
je 0x18007fb58
mov eax, dword [rcx + 0x24]
mov dword [r13], eax
mov eax, dword [rcx + 0x28]
mov dword [r12], eax
jmp 0x18007fc94
mov dword [rbp - 0x11], ebx
mov dword [rbp - 9], edi
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18007fb8d
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18007fb84
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18007fb86
xor ebx, ebx
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx r8d, word [r15 + 0x10]
lea rdx, [rbp - 0x49]
mov rcx, rax
call fcn.18007f400
nop
lea rdx, [rbp + 0x57]
mov rcx, qword [rbp - 0x49]
call qword [0x18013b928]
test rax, rax
je 0x18007fbc3
mov rcx, rax
call fcn.1800a01b0
int3
movzx r9d, sil
xor ebx, ebx
mov r8d, edi
lea rdx, [rbp + 0x57]
mov rcx, qword [rbp - 0x49]
mov dword [rsp + 0x20], ebx
cmp dword [rbp + 0x57], ebx
jne 0x18007fc02
call qword [0x18013b958]
test rax, rax
je 0x18007fbf1
mov rcx, rax
call fcn.1800a01b0
int3
movss xmm0, dword [rbp + 0x57]
movss dword [r13], xmm0
mov dword [r12], ebx
jmp 0x18007fc25
call qword [0x18013b958]
test rax, rax
je 0x18007fc16
mov rcx, rax
call fcn.1800a01b0
int3
movss xmm0, dword [rbp + 0x57]
movss dword [r12], xmm0
mov dword [r13], ebx
movss xmm0, dword [r13]
movss dword [rbp - 5], xmm0
movss xmm1, dword [r12]
movss dword [rbp - 1], xmm1
mov ecx, 0x30
call qword [0x18013af60]
mov rdx, rax
test rax, rax
jne 0x18007fc58
call fcn.18009f520
mov rdx, rbx
jmp 0x18007fc7b
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov rax, qword [rbp - 0x11]
mov qword [rdx + 0x18], rax
mov rax, qword [rbp - 9]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp - 1]
mov qword [rdx + 0x28], rax
lea rcx, [r14 + 0x68]
call fcn.18007c310
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x18007fc94
call qword [0x18013b070]
cmp byte [rbp + 0x7f], 0
je 0x18007fd03
test sil, sil
jne 0x18007fd03
mov eax, dword [r15 + 0x20]
mov dword [rbp - 0x41], eax
mov eax, dword [r15 + 0x24]
mov dword [rbp - 0x3d], eax
mov eax, dword [r15 + 0x28]
mov dword [rbp - 0x39], eax
mov eax, dword [r15 + 0x2c]
mov dword [rbp - 0x35], eax
mov eax, dword [r15 + 0x30]
mov dword [rbp - 0x31], eax
mov eax, dword [r15 + 0x34]
mov dword [rbp - 0x2d], eax
movss xmm2, dword [r13]
movss xmm3, dword [r12]
movaps xmm1, xmm3
mulss xmm1, dword [rbp - 0x39]
movaps xmm0, xmm2
mulss xmm0, dword [rbp - 0x41]
addss xmm1, xmm0
mulss xmm3, dword [rbp - 0x35]
mulss xmm2, dword [rbp - 0x3d]
addss xmm3, xmm2
movss dword [r13], xmm1
movss dword [r12], xmm3
mov rsi, qword [rbp + 0x77]
test rsi, rsi
je 0x18007fd80
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18007fd3b
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18007fd32
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18007fd34
xor ebx, ebx
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx r8d, word [r15 + 0x10]
lea rdx, [rbp + 0x57]
mov rcx, rax
call fcn.18007f400
nop
mov r8, rsi
mov edx, edi
mov rcx, qword [rax]
call qword [0x18013b970]
test rax, rax
je 0x18007fd71
mov rcx, rax
call fcn.1800a01b0
nop
mov rcx, qword [rbp + 0x57]
test rcx, rcx
je 0x18007fd80
call qword [0x18013b070]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret