Function at 0x18026dce4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
jne 0x18026dd39
test dword [0x1804c4f00], 0x80000000
je 0x18026dd2d
mov ecx, dword [0x1804df4a8]
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x18026dd35
call fcn.180271cdc
mov rdi, rax
mov qword [rsi + 0x18], rdi
mov qword [rsp + 0xf8], rdi
lea r15, [rdi + 0x60]
mov qword [rsp + 0x30], r15
mov rax, qword [r15]
mov qword [rsi], rax
test rax, rax
je 0x18026dd60
mov eax, dword [rax + 8]
shl eax, 4
sar eax, 4
inc eax
xor eax, dword [rsi + 8]
and eax, 0xfffffff
xor dword [rsi + 8], eax
mov qword [r15], rsi
and qword [rsp + 0x38], 0
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r12, [rsi + 0x10]
mov qword [rsp + 0x28], r12
cmp qword [r12], r13
je 0x18026ddb8
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.180279bcc
mov r13, rax
mov qword [rsp + 0x20], rax
mov r8d, dword [rsi + 8]
shl r8d, 4
sar r8d, 4
mov rdx, rax
mov rcx, rdi
call fcn.18026f644
nop
test r14, r14
je 0x18026de01
test byte [rsi + 0x28], 3
jne 0x18026df92
mov ecx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add ecx, eax
test ecx, ecx
jle 0x18026ddef
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.18026f2c8
test al, al
jne 0x18026df92
mov rcx, r14
mov rax, qword [r14 + 8]
call qword [case.0x1802736bf.0]
and qword [r14 + 0x10], 0
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0xf0], eax
test eax, eax
jle 0x18026deaf
mov rcx, rdi
call fcn.18026f4c8
mov r14, rax
mov qword [rsp + 0xe8], rax
test byte [rsi + 0x28], 3
jne 0x18026dfad
mov ecx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add ecx, eax
test ecx, ecx
jle 0x18026de58
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.18026f2c8
test al, al
jne 0x18026dfad
test r14, r14
je 0x18026deaf
mov eax, dword [rsp + 0xf0]
dec eax
mov dword [rsp + 0xf0], eax
cmp r14, 1
je 0x18026de0b
dec dword [rsi + 0x20]
cmp byte [rdi + 0x88], 0
mov rax, qword [rdi + 0xf8]
je 0x18026de8b
inc dword [rax + 0x24]
jmp 0x18026de91
inc dword [rax + 0xa4]
mov rcx, r14
mov rax, qword [r14 + 8]
call qword [case.0x1802736bf.0]
and qword [r14 + 0x10], 0
mov eax, dword [rsp + 0xf0]
jmp 0x18026de0b
mov edx, dword [rsi + 0x20]
test edx, edx
jle 0x18026dec2
mov rcx, rsi
call fcn.18026e17c
and dword [rsi + 0x20], 0
jmp 0x18026dee3
cmp qword [r12], 0
je 0x18026df07
mov rdx, r13
mov rcx, rdi
call fcn.18026f430
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x18026df07
mov rcx, r13
call fcn.180063a10
mov rax, qword [rsi]
mov qword [r15], rax
cmp qword [rsi + 0x28], 0
je 0x18026df51
mov rcx, rsi
call fcn.18026d168
mov edx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add edx, eax
test edx, edx
jle 0x18026df4a
cmp qword [r12], 0
setne r8b
mov rdx, rsi
mov rcx, rdi
call fcn.18026f2c8
test al, al
jne 0x18026dfce
mov eax, 2
jmp 0x18026df80
mov ecx, dword [rdi + 0xc4]
mov eax, dword [rdi + 0xbc]
add ecx, eax
test ecx, ecx
jle 0x18026df7b
cmp qword [r12], 0
setne r8b
mov rdx, rsi
mov rcx, rdi
call fcn.18026f2c8
test al, al
jne 0x18026dfea
mov eax, 1
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
call fcn.18026c5dc
lea rdx, [0x1804bd030]
lea rcx, [rsp + 0x40]
call fcn.180286b68
bts dword [rsi + 8], 0x1d
lea rcx, [rsp + 0x58]
call fcn.18026c5dc
lea rdx, [0x1804bd030]
lea rcx, [rsp + 0x58]
call fcn.180286b68
nop
lea rcx, [rsp + 0x70]
call fcn.18026c5dc
lea rdx, [0x1804bd030]
lea rcx, [rsp + 0x70]
call fcn.180286b68
int3
lea rcx, [rsp + 0x88]
call fcn.18026c5dc
lea rdx, [0x1804bd030]
lea rcx, [rsp + 0x88]
call fcn.180286b68
int3