Function at 0x100119bb0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r13, r8
mov r12d, edx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov edi, r14d
test r9, r9
je 0x100119bff
inc edi
lea rax, [r9 - 1]
and r9, rax
jne 0x100119bf4
call fcn.100068a00
mov r15, rax
mov rax, qword gs:[0x30]
lea rsi, [rax + r15]
mov rcx, r15
call fcn.10006c530
test eax, eax
jne 0x100119c2c
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x100119c3d
mov rax, qword [rsi + 0xd8]
test rax, rax
jne 0x100119c75
call fcn.100063d30
call fcn.100068a00
mov rsi, rax
mov rax, qword gs:[0x30]
lea r15, [rax + rsi]
mov rcx, rsi
call fcn.10006c530
test eax, eax
jne 0x100119c6e
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15, rax
mov rax, qword [r15 + 0xd8]
test dword [rax + 0x220], 0x800
jne 0x100119ef3
mov edx, 0x800
lea rcx, [rsp + 0x40]
call fcn.100057f20
nop
mov esi, 1
mov dword [rbx + 0xc], esi
cmp qword [rbx], 0
jne 0x100119caf
mov qword [rbx], r13
lea rcx, [rbx + 8]
call fcn.100115bc0
mov rcx, qword [rbx]
cmp r12, rcx
jbe 0x100119cba
mov r12, rcx
xor edx, edx
lea rax, [fcn.100062040]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.10005b410
nop
xor edx, edx
mov eax, r12d
div edi
cmp eax, 1
cmovb eax, esi
mov r13d, eax
mov r15, r14
mov qword [rsp + 0x38], r14
mov rdi, qword [rsp + 0xf8]
nop dword [rax]
bsf rsi, rdi
je 0x100119d48
mov rax, qword [rbx + 0x68]
mov ecx, dword [rbx + 0x70]
imul rcx, rcx, 0x310
add rcx, qword [rax + 0x710]
mov r8d, esi
mov rdx, r13
call fcn.1001194f0
add r15, rax
mov qword [rsp + 0x38], r15
mov ecx, esi
mov eax, 1
shl rax, cl
not rax
and rdi, rax
mov qword [rsp + 0xf8], rdi
jmp 0x100119d00
mov rax, qword [rbx]
mov r10d, r12d
sub rax, r10
mov qword [rbx], rax
mov rax, qword [rbx + 0x68]
mov ecx, dword [rax + 0x5e0]
mov eax, dword [rbx + 0x70]
inc eax
xor edx, edx
div ecx
mov dword [rbx + 0x70], edx
lea rcx, [rbx + 8]
mov r9, r15
xor r8d, r8d
mov edx, r12d
call fcn.100115c60
nop
lea rcx, [rsp + 0x68]
call fcn.10005b4f0
nop
jmp 0x100119d97
call fcn.100068a00
mov rsi, rax
mov rax, qword gs:[0x30]
lea rdi, [rax + rsi]
mov rcx, rsi
call fcn.10006c530
test eax, eax
jne 0x100119dc3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x100119dd4
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x100119e0c
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rax, qword gs:[0x30]
lea rsi, [rax + rdi]
mov rcx, rdi
call fcn.10006c530
test eax, eax
jne 0x100119e05
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rax, qword [rsi + 0xd8]
cmp dword [rax + 0x204], 0
je 0x100119e1a
call fcn.1000618f0
mov eax, 0xa
cmp qword [rbx], 0
cmove r14d, eax
call fcn.100068a00
mov rdi, rax
mov rax, qword gs:[0x30]
lea rbx, [rax + rdi]
mov rcx, rdi
call fcn.10006c530
test eax, eax
jne 0x100119e53
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100119e64
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x100119e9c
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rax, qword gs:[0x30]
lea rdi, [rax + rbx]
mov rcx, rbx
call fcn.10006c530
test eax, eax
jne 0x100119e95
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rcx, qword [rdi + 0xd8]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r9, rax
mov r8, qword [rcx + 0x2f8]
cmp rax, r8
ja 0x100119edc
mov rax, qword [rcx + 0x218]
mov rdx, qword [rax + 0xab0]
mov rax, r8
sub rax, r9
cmp rax, rdx
jbe 0x100119ee2
movabs rax, 0x7fffffffffffffff
cmp r8, rax
je 0x100119ee2
call fcn.1000655c0
nop
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
not eax
and dword [rcx + 0x220], eax
mov eax, r14d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret