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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x78], rcx
mov rsi, qword [0x0043d030]
lea r13, [rsp + 0x32]
xor ebp, ebp
mov r14d, 2
lea r15, [0x00434038]
xorps xmm6, xmm6
lea r12, [0x004375c3]
jmp 0x412007
mov rsi, qword [0x0043d030]
test rsi, rsi
je 0x412420
cmp rsi, 3
je 0x41246a
cmp rsi, 1
je 0x41257f
mov eax, esi
and eax, 3
cmp eax, 2
je 0x41204a
jmp 0x4125c5
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x412000
mov rcx, qword [0x00434038]
test rcx, rcx
je 0x412070
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
ja 0x412086
jmp 0x4120a0
mov rcx, r15
call fcn.00412660
mov rcx, rax
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x4120a0
mov rdi, rax
cmp qword [rax], 0
je 0x4120a0
add rdi, 8
jmp 0x412180
mov rcx, qword [0x00434038]
test rcx, rcx
je 0x4120d0
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
je 0x4120e5
mov rbx, rax
cmp rax, 1
jne 0x41214c
jmp 0x41248a
mov rcx, r15
call fcn.00412660
mov rcx, rax
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x4120b6
mov rax, qword [0x0043d0c0]
test rax, rax
jne 0x412106
call sub.KERNEL32.DLL_GetProcessHeap
test rax, rax
je 0x4124ec
mov qword [0x0043d0c0], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.KERNEL32.DLL_HeapAlloc
test rax, rax
je 0x4124ec
mov rbx, rax
mov qword [rax], 0
mov qword [rax + 0x18], r15
mov rcx, qword [0x00434038]
test rcx, rcx
jne 0x412144
mov rcx, r15
call fcn.00412660
mov rcx, rax
mov rdx, rbx
call sub.KERNEL32.DLL_TlsSetValue
lea rdi, [rbx + 8]
mov rcx, qword [rbx + 0x10]
cmp qword [rbx], 0
mov qword [rbx], 1
movups xmmword [rbx + 8], xmm6
je 0x412180
test rcx, rcx
je 0x412180
lock sub qword [rcx], 1
jne 0x412180
call fcn.00412830
nop word cs:[rax + rax]
cmp qword [rdi], 0
jne 0x4124a4
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rdi + 8]
test rax, rax
jne 0x4121a3
call fcn.004128a0
mov qword [rdi + 8], rax
lock add qword [rax], 1
jle 0x412486
add qword [rdi], 1
test rax, rax
je 0x41248a
mov rcx, rsi
and rcx, 0xfffffffffffffffc
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x38], rcx
mov rax, rsi
lock cmpxchg qword [0x0043d030], r13
je 0x4123e0
mov rsi, rax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x412040
lock sub qword [rax], 1
jne 0x412040
mov rcx, qword [rsp + 0x30]
call fcn.00412830
jmp 0x412040
mov rax, qword [0x00434038]
test rax, rax
jne 0x412224
mov rcx, r15
call fcn.00412660
mov ecx, eax
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x412250
mov rsi, rax
cmp qword [rax], 0
je 0x412250
add rsi, 8
jmp 0x412310
mov rax, qword [0x00434038]
test rax, rax
jne 0x412264
mov rcx, r15
call fcn.00412660
mov ecx, eax
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
je 0x412280
mov rdi, rax
cmp rax, 1
jne 0x4122e6
jmp 0x4124cf
mov rax, qword [0x0043d0c0]
test rax, rax
jne 0x4122a1
call sub.KERNEL32.DLL_GetProcessHeap
test rax, rax
je 0x412528
mov qword [0x0043d0c0], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.KERNEL32.DLL_HeapAlloc
test rax, rax
je 0x412528
mov rdi, rax
mov qword [rax], 0
mov qword [rax + 0x18], r15
mov rax, qword [0x00434038]
test rax, rax
jne 0x4122dc
mov rcx, r15
call fcn.00412660
mov ecx, eax
mov rdx, rdi
call sub.KERNEL32.DLL_TlsSetValue
lea rsi, [rdi + 8]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi], 0
mov qword [rdi], 1
movups xmmword [rdi + 8], xmm6
je 0x412310
test rcx, rcx
je 0x412310
lock sub qword [rcx], 1
jne 0x412310
call fcn.00412830
cmp qword [rsi], 0
jne 0x4124fd
mov qword [rsi], 0xffffffffffffffff
mov rdi, qword [rsi + 8]
test rdi, rdi
jne 0x412336
call fcn.004128a0
mov rdi, rax
mov qword [rsi + 8], rax
lock add qword [rdi], 1
jle 0x412486
add qword [rsi], 1
test rdi, rdi
je 0x4124cf
mov qword [rsp + 0x28], rdi
lock sub byte [rdi + 0x28], 1
je 0x41238d
add rdi, 0x28
mov rsi, qword [0x0043d0e8]
test rsi, rsi
je 0x4123a5
nop word [rax + rax]
mov r8d, 1
mov rcx, rdi
mov rdx, r12
mov r9d, 0xffffffff
call rsi
mov al, 1
lock cmpxchg byte [rdi], bpl
jne 0x412370
mov rax, qword [rsp + 0x28]
lock sub qword [rax], 1
jne 0x4123e0
mov rcx, qword [rsp + 0x28]
call fcn.00412830
jmp 0x4123e0
call fcn.00412a30
mov rbx, qword [0x0043d128]
test rbx, rbx
je 0x412539
mov rcx, rax
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call rbx
xor eax, eax
xchg byte [rdi], al
mov rax, qword [rsp + 0x28]
lock sub qword [rax], 1
je 0x412399
nop dword [rax + rax]
mov al, byte [rsp + 0x40]
test al, al
je 0x412210
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x412000
lock sub qword [rax], 1
jne 0x412000
mov rcx, qword [rsp + 0x30]
call fcn.00412830
mov rsi, qword [0x0043d030]
jmp 0x412007
xor eax, eax
lock cmpxchg qword [0x0043d030], r14
je 0x412435
mov rsi, rax
jmp 0x412007
lea rax, [0x0043d030]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.00413130
mov qword [rsp + 0x50], 3
lea rcx, [rsp + 0x48]
call fcn.00412b50
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, [0x00437c35]
lea r8, str.library_std_src_threadmod.rsuse_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
call fcn.00403c80
ud2
lea rax, str.library_std_src_sys_common_thread_info.rs
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowed__A
lea r9, [0x00437740]
lea r8, [rsp + 0x48]
mov edx, 0x10
call fcn.00404090
ud2
lea rcx, [0x00437c35]
lea r8, str.library_std_src_threadmod.rsuse_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
call fcn.00403c80
jmp 0x41257d
mov ecx, 0x20
mov edx, 8
call fcn.004018d0
ud2
lea rax, str.library_std_src_sys_common_thread_info.rs
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowed__A
lea r9, [0x00437740]
lea r8, [rsp + 0x48]
mov edx, 0x10
call fcn.00404090
jmp 0x41257d
mov ecx, 0x20
mov edx, 8
call fcn.004018d0
jmp 0x41257d
lea rax, str.keyed_events_not_available
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
lea rax, [0x004372b0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0
lea rdx, str.library_std_src_syswindowsc.rs
lea rcx, [rsp + 0x48]
call fcn.00401c80
ud2
lea rax, [0x00438030]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
lea rax, [0x004372b0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0
lea rdx, str.library_std_src_rt.rs
lea rcx, [rsp + 0x48]
call fcn.00401c80
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
lea r8, str.library_std_src_rt.rs
mov edx, 0x40
call fcn.004031a0
ud2