Function at 0x180085a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801fdc38]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1802052bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
mov dword [rbp - 0x61], eax
lea edx, [rax + 1]
mov ecx, dword [0x1802052bc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x180209190]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r13, rax
mov dword [rbp - 0x5d], eax
lea edx, [rax + 1]
mov ecx, dword [0x180209190]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test ebx, ebx
jne 0x180085c7a
test rdi, rdi
je 0x180085c7a
cmp qword [rdi], 0xffffffffffffffff
je 0x180085c7a
lea eax, [r13 + r12]
test eax, eax
jne 0x180085c7a
mov r8, rdi
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi + 0x30]
call fcn.18008af60
nop
cmp qword [rbp - 0x19], 0
je 0x180085c70
xor r14d, r14d
mov qword [rbp - 0x69], r14
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 1]
call fcn.180002ac0
mov rbx, rax
lea rax, [rbp - 0x29]
cmp rax, rbx
je 0x180085bb2
cmp qword [rbp - 0x11], 8
jb 0x180085b58
mov rcx, qword [rbp - 0x29]
call fcn.1801196dc
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r14
mov word [rbp - 0x29], r14w
cmp qword [rbx + 0x18], 8
jae 0x180085b88
mov r8, qword [rbx + 0x10]
inc r8
add r8, r8
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.180119850
jmp 0x180085b92
mov rax, qword [rbx]
mov qword [rbp - 0x29], rax
mov qword [rbx], r14
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x19], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x11], rax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
cmp qword [rbp + 0x17], 8
jb 0x180085bc2
mov rcx, qword [rbp - 1]
call fcn.1801196dc
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x51]
mov rcx, rsi
call fcn.180084b80
nop
mov rbx, qword [rbp - 0x51]
test rbx, rbx
je 0x180085c66
call fcn.18007b1e0
mov r11, qword [rbp - 0x69]
cmp r11, 0xffffffff80000001
jne 0x180085c01
mov eax, dword [rbx + 0x150]
shr eax, 5
test al, 1
je 0x180085c17
jmp 0x180085c66
cmp r11, 0xffffffff80000002
jne 0x180085c66
mov eax, dword [rbx + 0x150]
shr eax, 5
test al, 1
je 0x180085c66
lea rbx, [rsi + 0x70]
mov qword [rbp - 0x39], rbx
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x59], rax
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.180082c20
mov byte [rbp - 0x31], 1
lea rcx, [rsi + 0x38]
mov rdx, rdi
call fcn.180084dc0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.180016bb0
nop
mov rcx, rbx
call fcn.18007b460
nop
lea rcx, [rbp - 0x51]
call fcn.1800635c0
nop
lea rcx, [rbp - 0x29]
call fcn.18008d8e0
nop
mov edx, r13d
mov ecx, dword [0x180209190]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, r12d
mov ecx, dword [0x1802052bc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180119820
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret