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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14003d0d8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13, rcx
mov r12, r9
mov ecx, dword [0x14003d17c]
mov rbp, r8
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov r14, rax
mov ebx, 0xffffffff
test rax, rax
jne 0x1400115e4
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x48]
and dword [rsp + 0x48], eax
lea r14, [rsp + 0x48]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [r14]
mov rdx, qword [0x14003d048]
lea rax, [0x14003d048]
mov edi, dword [rsp + 0xf0]
mov r15d, 0x1df
lea r8, [0x140035650]
cmp rdx, rax
je 0x14001164e
test byte [rdx + 0x1c], 1
je 0x14001164e
mov eax, dword [r14]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14001162c
mov eax, ecx
mov ecx, r15d
sub rcx, rax
jmp 0x14001162e
xor ecx, ecx
mov dword [rsp + 0x38], edi
lea r9, [rcx + r8]
mov rcx, qword [rdx + 0x10]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
call fcn.140010d8c
and qword [0x14003d9b8], 0
xor edx, edx
xor ecx, ecx
mov byte [0x14003d9c0], 1
mov r8d, 0x280003
call qword [sym.imp.api_ms_win_mm_playsound_l1_1_0.dll_PlaySoundW]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, edi
mov qword [rsp + 0x20], rax
mov r8, rbp
mov rdx, rsi
mov rcx, r13
call fcn.140011058
mov rdi, qword [rsp + 0x40]
xor ebp, ebp
mov esi, eax
test eax, eax
js 0x140011712
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], bp
jne 0x14001169f
mov ecx, 0xffffffff
cmp rax, rcx
mov esi, ecx
cmovbe esi, eax
jbe 0x1400116cd
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000000d
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_RaiseException]
lea r9, [rsp + 0x50]
mov edx, esi
lea r8, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
mov rax, qword [r13]
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, r13
mov rax, qword [rax + 0x20]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x140011712
cmp dword [rsp + 0x40], ebp
mov eax, 0x80004004
cmovne esi, eax
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x140011766
test byte [rcx + 0x1c], 1
je 0x140011766
mov eax, dword [r14]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x140011740
mov eax, edx
sub r15, rax
jmp 0x140011743
mov r15, rbp
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r15
mov dword [rsp + 0x20], esi
mov edx, reloc.WS2_32.dll_ntohs
lea r8, [0x140036400]
call fcn.140001304
test rdi, rdi
je 0x14001177b
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
mov eax, 0xffffffff
add dword [r14], eax
cmp ebx, eax
je 0x14001179e
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001179e
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400304d0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret