Function at 0x1400408e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov r15, r9
mov r12, r8
mov r13, rdx
mov rdi, rcx
mov ecx, 2
call fcn.140059d40
mov qword [rbp - 0x49], rax
xor ecx, ecx
mov word [rax], cx
movzx r14d, byte [rbp + 0x7f]
mov ebx, dword [rbp + 0x77]
cmp ebx, 0xffffffff
jne 0x140040b60
xor ebx, ebx
mov qword [rbp + 7], rbx
lea rsi, [0x14007a7c4]
mov rcx, rsi
call fcn.140059d48
mov qword [rbp + 7], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 1], rbx
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 1], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 9], rbx
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 9], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 0x11], rbx
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 0x11], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 0x19], rbx
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 0x19], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 0x21], rbx
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 0x21], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 0x29], rbx
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 0x29], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov qword [rbp - 0x31], rbx
mov rbx, rsi
test r12, r12
cmovne rbx, r12
mov rcx, rbx
call fcn.140059d48
mov qword [rbp - 0x31], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x31]
mov rdx, r13
lea rcx, [rbp + 0x1f]
call fcn.14001f610
mov rdi, rax
xor ecx, ecx
mov qword [rbp - 0x39], rcx
test r15, r15
cmovne rsi, r15
mov rcx, rsi
call fcn.140059d48
mov qword [rbp - 0x39], rax
xor ecx, ecx
call fcn.140059d2c
nop
xor esi, esi
mov qword [rbp - 0x41], rsi
mov rcx, rbx
call fcn.140059d48
mov qword [rbp - 0x41], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x41]
mov rdx, r13
lea rcx, [rbp + 0x17]
call fcn.14001f610
nop
mov dword [rsp + 0x80], 0xffffffff
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rsi
lea rdx, [rbp + 7]
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], rsi
lea rcx, [rbp - 1]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 9]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [rsi - 1]
mov rdi, qword [rbp + 0x57]
mov rcx, rdi
call fcn.140014980
mov ebx, eax
mov rcx, qword [rbp + 0x17]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x41]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x39]
call fcn.140059d2c
nop
mov rcx, qword [rbp + 0x1f]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x31]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x29]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x21]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x19]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x11]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 9]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 1]
call fcn.140059d2c
nop
mov rcx, qword [rbp + 7]
call fcn.140059d2c
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call fcn.14001d250
test eax, eax
jne 0x140040bf7
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp + 0xf]
call fcn.14002d4d0
test eax, eax
jne 0x140040bec
test r14b, r14b
jne 0x140040bd3
lea rdx, [0x140081d50]
lea rcx, [rbp - 0x49]
call fcn.140014250
lea rdx, str.AutorunsDisabled
lea rcx, [rbp - 0x49]
call fcn.140014250
mov byte [rsp + 0x20], r14b
mov r9d, ebx
mov rdx, qword [rbp - 0x49]
mov r8, rdx
mov rcx, rdi
call fcn.140040c30
mov ebx, eax
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x49]
call fcn.140059d2c
mov eax, ebx
lea r11, [rsp + 0x100]
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