Function at 0x1801cf4e0
Capabilities:
Get thread local storage value

Disassembly:
cmp qword [rcx + 0xd238], 0
mov r10, rcx
jne 0x1801cf4f3
mov eax, 1
ret
mov r9d, dword [rcx + 0xc]
or edx, 0xffffffff
nop word [rax + rax]
inc edx
cmp edx, r9d
jae 0x1801cf576
mov rax, qword [rcx + 0xce58]
mov r8, qword [rax + rdx*8]
cmp qword [r8 + 0x30], 0
je 0x1801cf500
mov r8, qword [r8 + 0x30]
mov r9, qword [r8]
cmp qword [r8 + 0x10], 0xffffffffffffffff
je 0x1801cf540
mov eax, dword [r8 + 0xc8]
mov rcx, qword [r8 + 0x10]
mov dword [rcx + 0xc8], eax
mov rax, qword [r8 + 0x10]
mov qword [rax + 0x10], r8
test r9, r9
je 0x1801cf54d
mov r8, r9
mov r9, qword [r9]
jmp 0x1801cf571
mov r9d, dword [r10 + 0xc]
inc edx
cmp edx, r9d
jae 0x1801cf576
mov rax, qword [r10 + 0xce58]
mov r8, qword [rax + rdx*8]
cmp qword [r8 + 0x30], 0
je 0x1801cf551
mov r8, qword [r8 + 0x30]
mov r9, qword [r8]
test r8, r8
jne 0x1801cf520
mov rcx, qword [r10 + 0xd238]
jmp 0x1801cf590
push rbp
push r12
sub rsp, 0x68
mov r8d, dword [rcx + 0xc]
xor r11d, r11d
mov rbp, rcx
or edx, 0xffffffff
inc edx
cmp edx, r8d
jae 0x1801cf60f
mov rax, qword [rcx + 0xce58]
mov rax, qword [rax + rdx*8]
cmp qword [rax + 0x30], r11
je 0x1801cf5a5
mov rax, qword [rax + 0x30]
mov r10, qword [rbp + 0xce58]
mov rcx, qword [rax]
nop dword [rax + rax]
mov r9d, dword [rax + 0xc8]
cmp r9d, r11d
jbe 0x1801cf5e4
cmp r9d, 0xffffffff
cmovne r11d, r9d
test rcx, rcx
je 0x1801cf5f1
mov rax, rcx
mov rcx, qword [rcx]
jmp 0x1801cf60a
inc edx
cmp edx, r8d
jae 0x1801cf60f
mov rcx, qword [r10 + rdx*8]
cmp qword [rcx + 0x30], 0
je 0x1801cf5f1
mov rax, qword [rcx + 0x30]
mov rcx, qword [rax]
test rax, rax
jne 0x1801cf5d0
mov r12, qword [rbp + 0x18]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
inc r11d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x88], r11d
test r12, r12
je 0x1801cf935
mov r15, qword [rsp + 0x88]
mov r8d, dword [r12 + 0x20]
mov r9d, r8d
test r8d, r8d
je 0x1801cf689
mov rcx, qword [r12 + 0x28]
mov rdx, r8
mov rax, qword [rcx]
cmp qword [rax + 0x10], 0xffffffffffffffff
jne 0x1801cf67f
mov rax, qword [rax + 0xa8]
test byte [rax + 0x10], 0x20
je 0x1801cf67f
dec r9d
add rcx, 8
sub rdx, 1
jne 0x1801cf665
cmp r9d, r8d
je 0x1801cf928
xor ecx, ecx
mov qword [rsp + 0x98], rcx
test r9d, r9d
je 0x1801cf6ee
mov r8d, r9d
lea rdx, [rsp + 0x98]
mov rcx, rbp
and r8d, 0xfffff
mov dword [rsp + 0x20], r9d
bts r8d, 0x1c
call fcn.18019f4b0
test eax, eax
js 0x1801cfa62
mov eax, dword [r12 + 0x68]
mov rcx, qword [rsp + 0x98]
mov r11d, dword [rsp + 0x88]
mov dword [rcx + 0x68], eax
mov rax, qword [r12 + 0x70]
mov qword [rcx + 0x70], rax
cmp dword [r12 + 0x20], 0
mov dword [rsp + 0x90], 0
jbe 0x1801cf91d
xor r13d, r13d
mov qword [rsp + 0x30], r13
nop dword [rax]
mov rax, qword [r12 + 0x28]
mov ecx, dword [0x18025e63c]
mov rsi, qword [rbp + 0xd078]
mov r14, qword [r13 + rax]
mov rax, qword [r14 + 0xa8]
mov edi, dword [r14 + 0xcc]
mov qword [rsp + 0x38], rax
test ecx, ecx
jns 0x1801cf742
xor ecx, ecx
jmp 0x1801cf74b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
cmp qword [rcx + 0x18], 0
je 0x1801cf77a
mov rbx, qword [rcx + 0x18]
test rbx, rbx
je 0x1801cf791
mov rax, qword [rbx]
mov qword [rcx + 0x18], rax
test rax, rax
jne 0x1801cf76b
mov qword [rcx + 0x20], rax
movabs rax, 0xfefefefefefefefe
mov qword [rbx], rax
jmp 0x1801cf791
mov rcx, qword [rcx + 0x10]
mov edx, 0x188
mov r8d, 0x10
call fcn.180243b70
mov rbx, rax
test rbx, rbx
je 0x1801cf88d
mov r8d, dword [rsp + 0x88]
xor eax, eax
mov r9d, edi
mov rdx, rsi
mov rcx, rbx
mov dword [rbx + 0xa0], 0xffffffff
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x90], rax
mov qword [rbx + 0xa8], 0xffffffffffffffff
mov qword [rbx + 0x40], rax
call fcn.1801992b0
mov esi, eax
test eax, eax
js 0x1801cf83b
call fcn.18019c4f0
test al, al
je 0x1801cf805
or qword [rbx + 0x98], 0x20000
mov rax, qword [rbx + 0xa8]
mov rcx, qword [rax + 0x10]
test cl, 0x10
je 0x1801cf824
bt rcx, 0x15
jae 0x1801cf824
or qword [rbx + 0x98], 0x10
mov eax, dword [rbp + 0x10]
mov r15, rbx
mov dword [rbx + 0xa0], eax
inc dword [rbp + 0x10]
or dword [rbp + 0x28], 4
xor esi, esi
jmp 0x1801cf892
call fcn.1801991c0
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1801cf84e
xor edi, edi
jmp 0x1801cf857
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov edx, 0xfe
mov r8d, 0x188
mov rcx, rbx
call fcn.18024adb8
mov qword [rbx], 0
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x1801cf883
mov qword [rax], rbx
mov qword [rdi + 0x20], rbx
jmp 0x1801cf892
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
jmp 0x1801cf892
mov esi, 0x8007000e
test esi, esi
js 0x1801cf9c7
mov eax, dword [r14 + 0xa4]
mov dword [r15 + 0xa4], eax
cmp qword [r14 + 0x10], 0xffffffffffffffff
jne 0x1801cf8ba
mov rax, qword [rsp + 0x38]
test byte [rax + 0x10], 0x20
jne 0x1801cf8ec
mov rdx, qword [rsp + 0x30]
mov rax, qword [r12 + 0x28]
mov r8, qword [rsp + 0x98]
mov rax, qword [r13 + rax]
mov rcx, qword [r8 + 0x28]
add rdx, 8
mov qword [rdx + rcx - 8], rax
mov rax, qword [r8 + 0x18]
mov qword [rsp + 0x30], rdx
mov qword [rdx + rax - 8], r15
mov edx, dword [rsp + 0x90]
mov rax, qword [r12 + 0x28]
add r13, 8
inc edx
mov qword [r13 + rax - 8], r15
mov dword [rsp + 0x90], edx
cmp edx, dword [r12 + 0x20]
jb 0x1801cf710
mov r11d, dword [rsp + 0x88]
inc r11d
mov dword [rsp + 0x88], r11d
mov r12, qword [r12]
test r12, r12
jne 0x1801cf650
mov rcx, rbp
call fcn.1801b3770
test eax, eax
js 0x1801cfa62
mov r8d, dword [rbp + 0xc]
or edx, 0xffffffff
nop dword [rax]
inc edx
cmp edx, r8d
jae 0x1801cfa60
mov rax, qword [rbp + 0xce58]
mov rcx, qword [rax + rdx*8]
cmp qword [rcx + 0x30], 0
je 0x1801cf950
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx]
nop word [rax + rax]
cmp qword [rcx + 0x100], 0xffffffffffffffff
jne 0x1801cfa26
cmp dword [rcx + 0x28], 0xffffffff
jne 0x1801cfa26
mov r8, qword [rbp + 0xd038]
mov r9, qword [rcx + 0xa8]
cmp r9, r8
je 0x1801cfa26
test r9, r9
je 0x1801cf9ef
cmp r9, 0xffffffffffffffff
je 0x1801cf9ef
mov r11, qword [rcx + 8]
test r11, r11
je 0x1801cf9ce
mov rax, qword [rcx]
mov qword [r11], rax
jmp 0x1801cf9d5
mov eax, esi
jmp 0x1801cfa62
mov rax, qword [rcx]
mov qword [r9 + 0x30], rax
mov r11, qword [rcx]
test r11, r11
je 0x1801cf9e7
mov rax, qword [rcx + 8]
mov qword [r11 + 8], rax
jmp 0x1801cf9ef
mov rax, qword [rcx + 8]
mov qword [r9 + 0x38], rax
test r8, r8
je 0x1801cfa1f
cmp r8, 0xffffffffffffffff
je 0x1801cfa1f
mov rax, qword [r8 + 0x38]
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x38]
test rax, rax
je 0x1801cfa10
mov qword [rax], rcx
jmp 0x1801cfa14
mov qword [r8 + 0x30], rcx
mov qword [rcx], 0
mov qword [r8 + 0x38], rcx
mov qword [rcx + 0xa8], r8
test r10, r10
je 0x1801cfa33
mov rcx, r10
mov r10, qword [r10]
jmp 0x1801cfa57
mov r8d, dword [rbp + 0xc]
inc edx
cmp edx, r8d
jae 0x1801cfa60
mov rax, qword [rbp + 0xce58]
mov rcx, qword [rax + rdx*8]
cmp qword [rcx + 0x30], 0
je 0x1801cfa37
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx]
test rcx, rcx
jne 0x1801cf980
xor eax, eax
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x80]
add rsp, 0x68
pop r12
pop rbp
ret