Function at 0x100124810
Capabilities:
Get thread local storage value

Disassembly:
test rcx, rcx
je 0x100124a8a
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rbx, rcx
xor r14d, r14d
mov qword [r11 - 0x48], r14
mov dword [r11 - 0x3c], r14d
lea rax, [r11 - 0x38]
mov qword [r11 + 8], rax
mov dword [r11 - 0x3c], r14d
call fcn.100068a00
mov rsi, rax
mov rdx, qword gs:[0x30]
lea rdi, [rdx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100124879
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
cmp qword [rdi], r14
jne 0x1001248d8
call fcn.100068a00
mov rdi, rax
mov rcx, qword gs:[0x30]
lea rsi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001248aa
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
cmp qword [rsi], r14
jne 0x1001248d0
call fcn.1001407c0
call fcn.100068a00
mov rdi, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001248d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0xa8], rax
cmp dword [rsp + 0x5c], 0
jl 0x100124929
call fcn.100058b00
test eax, eax
jne 0x100124913
call fcn.1000589b0
mov dword [rsp + 0x54], 1
jmp 0x100124918
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x5c], r14d
lea rax, [rsp + 0x54]
mov qword [rsp + 0x68], rax
jmp 0x10012492e
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0xb0], rax
cmp dword [rsp + 0x5c], 0
jl 0x100124966
call fcn.100058ba0
mov dword [rsp + 0x58], eax
mov ecx, 1
call fcn.100058c40
mov dword [rsp + 0x5c], r14d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], rax
jmp 0x10012496b
mov qword [rsp + 0x70], r14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
call fcn.100068a00
mov rdi, rax
mov rcx, qword gs:[0x30]
lea rbx, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001249a1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1001249b2
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1001249ea
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001249e3
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
cmp dword [rax + 0x204], 0
je 0x1001249f9
call fcn.1000618f0
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x100124a32
mov ecx, dword [rax]
call fcn.100058c40
nop
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x100124a47
cmp dword [rax], 0
je 0x100124a47
call fcn.100058a50
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x100124a77
cmp dword [rax], 0
je 0x100124a77
call fcn.100068a00
mov rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100124a72
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
call fcn.10013e1e0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rdi
pop rsi
repz ret