Function at 0x18018fc30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x18]
xor esi, esi
xor al, al
mov r14d, esi
mov dword [rsp + 0x80], esi
mov byte [rsp + 0x78], al
test rdi, rdi
je 0x18018ffe6
movabs rbp, 0xfefefefefefefefe
movabs r11, 0x18044210008
nop word [rax + rax]
mov r13d, dword [rdi + 0x78]
mov eax, r13d
and eax, 0xfff00000
cmp eax, 0x30000000
je 0x18018fc9e
cmp eax, 0x30100000
jne 0x18018fec5
and r13d, 0xfffff
mov al, 1
mov rdx, rsi
movsxd r14, r13d
jbe 0x18018fd1e
lea r9, [r14*8]
mov r10d, r13d
nop word [rax + rax]
test al, al
je 0x18018fd07
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax + rdx*8]
mov rax, qword [rcx + 0xa8]
test qword [rax + 0x10], r11
je 0x18018fd07
mov r8, qword [rdi + 0x18]
mov rax, qword [r9 + r8]
mov rcx, qword [rax + 0xa8]
test qword [rcx + 0x10], r11
je 0x18018fd07
lea rax, [rdx + r14*2]
mov rcx, qword [r8 + rax*8]
mov rax, qword [rcx + 0xa8]
test qword [rax + 0x10], r11
je 0x18018fd07
mov al, 1
jmp 0x18018fd09
xor al, al
inc rdx
add r9, 8
sub r10, 1
jne 0x18018fcc0
test al, al
je 0x18018febd
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18018fd2d
mov rcx, rsi
jmp 0x18018fd36
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
cmp qword [rcx + 0x30], rsi
je 0x18018fd5f
mov rbx, qword [rcx + 0x30]
test rbx, rbx
jne 0x18018fd4a
mov rbx, rsi
jmp 0x18018fd74
mov rax, qword [rbx]
mov qword [rcx + 0x30], rax
test rax, rax
jne 0x18018fd5a
mov qword [rcx + 0x38], rsi
mov qword [rbx], rbp
jmp 0x18018fd74
mov rcx, qword [rcx + 0x28]
mov edx, 0x80
lea r8d, [rdx - 0x70]
call fcn.180243b70
mov rbx, rax
test rbx, rbx
je 0x18018ffda
mov edx, r13d
lea r8d, [r13 + r13]
mov r9d, r13d
and edx, 0xfffff
mov rcx, rbx
mov qword [rbx], 0xffffffffffffffff
or edx, 0x23b00000
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], esi
mov dword [rbx + 0x20], esi
mov dword [rbx + 0x30], 0xffffffff
mov dword [rbx + 0x78], esi
mov qword [rbx + 0x18], rsi
mov word [rbx + 0x7c], si
mov qword [rbx + 0x28], rsi
mov word [rbx + 0x7e], si
mov dword [rbx + 0x38], esi
mov dword [rbx + 0x3c], esi
mov dword [rbx + 0x40], esi
mov qword [rbx + 0x48], 0xffffffffffffffff
mov dword [rbx + 0x50], esi
mov dword [rbx + 0x68], esi
mov qword [rbx + 0x70], rsi
mov byte [rsp + 0x20], sil
call fcn.180193d40
test eax, eax
js 0x18018fed6
mov eax, dword [rdi + 0x68]
mov dword [rbx + 0x68], eax
mov rax, qword [rdi + 0x70]
mov qword [rbx + 0x70], rax
test r13d, r13d
je 0x18018fe67
lea r9, [r14*8]
mov r8, rsi
mov r10d, r13d
shl r14, 4
nop dword [rax + rax]
mov rax, qword [rdi + 0x28]
mov rcx, qword [rbx + 0x28]
add r9, 8
mov rax, qword [r8 + rax]
add r8, 8
add r14, 8
sub r10, 1
mov qword [r8 + rcx - 8], rax
mov rax, qword [rdi + 0x18]
mov rax, qword [r9 + rax - 8]
mov rcx, qword [rbx + 0x18]
mov qword [r8 + rcx - 8], rax
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + 0x18]
mov rax, qword [r14 + rax - 8]
mov qword [r9 + rcx - 8], rax
jne 0x18018fe20
mov rdx, rbx
mov rcx, rdi
call fcn.180195040
mov r14d, eax
mov dword [rsp + 0x80], eax
test eax, eax
js 0x18018fed9
lea rdx, [rbx + 0x18]
lea rcx, [rbx + 0x7c]
mov byte [rsp + 0x78], 1
call fcn.180193c50
lea rdx, [rbx + 0x28]
lea rcx, [rbx + 0x7e]
call fcn.180193c50
mov rcx, rbx
call fcn.1801979c0
movabs rbp, 0xfefefefefefefefe
movabs r11, 0x18044210008
jmp 0x18018fec5
mov r14d, dword [rsp + 0x80]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x18018fc80
jmp 0x18018ffd0
mov r14d, eax
test rbx, rbx
je 0x18018ffd0
cmp word [rbx + 0x7c], si
je 0x18018ff38
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18018fef7
mov rdx, rsi
jmp 0x18018ff00
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
movzx eax, word [rbx + 0x7c]
cmp eax, dword [rdx + 0x250]
ja 0x18018ff30
mov r8, qword [rbx + 0x18]
dec eax
movsxd rcx, eax
shl rcx, 5
add rcx, qword [rdx + 0x248]
test r8, r8
je 0x18018ff30
mov rax, qword [rcx + 8]
mov qword [r8], rax
mov qword [rcx + 8], r8
mov word [rbx + 0x7c], si
mov qword [rbx + 0x18], rsi
cmp word [rbx + 0x7e], si
je 0x18018ff8e
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18018ff4d
mov rdx, rsi
jmp 0x18018ff56
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
movzx eax, word [rbx + 0x7e]
cmp eax, dword [rdx + 0x250]
ja 0x18018ff86
mov r8, qword [rbx + 0x28]
dec eax
movsxd rcx, eax
shl rcx, 5
add rcx, qword [rdx + 0x248]
test r8, r8
je 0x18018ff86
mov rax, qword [rcx + 8]
mov qword [r8], rax
mov qword [rcx + 8], r8
mov word [rbx + 0x7e], si
mov qword [rbx + 0x28], rsi
mov ecx, dword [0x18025e63c]
test ecx, ecx
js 0x18018ffd0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x18018ffd0
mov edx, 0xfe
mov rcx, rbx
lea r8d, [rdx - 0x7e]
call fcn.18024adb8
mov qword [rbx], rsi
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x18018ffc8
mov qword [rax], rbx
jmp 0x18018ffcc
mov qword [rdi + 0x30], rbx
mov qword [rdi + 0x38], rbx
test r14d, r14d
jns 0x18018ffe1
mov eax, r14d
jmp 0x18018ffee
mov eax, 0x8007000e
jmp 0x18018ffee
movzx eax, byte [rsp + 0x78]
test al, al
sete sil
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret