Function at 0x1800ae640
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push r12
push r14
push r15
sub rsp, 0x9e0
mov rdx, qword [rcx + 0x19550]
mov byte [rsp + 0x40], 1
xor r12d, r12d
mov r14d, dword [rdx + 0x78]
lea rax, [rsp + 0x68]
lea r9, [r11 - 0x958]
and r14d, 0xfffff
lea r8, [0x1800280a0]
mov r15, rcx
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rax
lea rax, [r11 - 0x858]
mov qword [rsp + 0x28], rax
lea rax, [r11 + 8]
mov dword [r11 + 8], r12d
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x70], 2
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x74], 3
mov byte [rsp + 0xa08], r12b
call fcn.18018c190
cmp dword [rsp + 0xa00], 0x20
ja 0x1800ae6df
test eax, eax
je 0x1800ae758
mov rdx, qword [r15 + 0x19550]
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x68]
lea r9, [rsp + 0xa0]
lea r8, [0x1800280e0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x1a0]
mov rcx, r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa00]
mov byte [rsp + 0xa08], 1
mov qword [rsp + 0x20], rax
call fcn.18018c190
cmp dword [rsp + 0xa00], 0x20
jbe 0x1800ae750
mov eax, 0x80004005
add rsp, 0x9e0
pop r15
pop r14
pop r12
ret
test eax, eax
jne 0x1800aecf3
mov qword [rsp + 0xa10], rbx
mov qword [rsp + 0x9d8], rbp
mov qword [rsp + 0x9d0], rsi
mov qword [rsp + 0x9c8], rdi
mov qword [rsp + 0x9c0], r13
lea r8, [rsp + 0x1c0]
movaps xmmword [rsp + 0x9b0], xmm6
movsd xmm6, qword [0x1800685a0]
movaps xmmword [rsp + 0x9a0], xmm7
movsd xmm7, qword [0x180068bc8]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x60], 8
mov qword [rsp + 0x78], r8
nop dword [rax + rax]
lea rdx, [rsp + 0x200]
mov ecx, r12d
mov eax, 0x10
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0xa00], ecx
mov qword [rsp + 0x58], rax
nop word [rax + rax]
mov ebp, r12d
mov rbx, r12
test r14d, r14d
je 0x1800ae945
mov r12, rdx
mov r13, r8
nop word [rax + rax]
mov rsi, qword [r13]
mov r9, qword [rsp + rbx*8 + 0x1a0]
mov rdi, qword [r12]
cmp qword [rsi + 0xc0], 0xffffffffffffffff
jne 0x1800ae929
cmp qword [r9 + 0xc0], 0xffffffffffffffff
jne 0x1800ae929
cmp qword [rdi + 0xc0], 0xffffffffffffffff
jne 0x1800ae929
mov rax, qword [rsi + 0xa8]
mov ecx, dword [rax + 0x10]
bt rcx, 8
jae 0x1800ae929
mov rax, qword [rdi + 0xa8]
mov edx, dword [rax + 0x10]
bt rdx, 8
jae 0x1800ae929
mov rax, qword [r9 + 0xa8]
mov edx, dword [rax + 0x10]
bt rdx, 8
jae 0x1800ae929
lea r8, [rsp + 0x68]
mov rdx, r15
mov rcx, r9
call fcn.180199870
test eax, eax
jne 0x1800ae929
lea r8, [rsp + 0x90]
mov rdx, r15
mov rcx, rsi
call fcn.180199870
test eax, eax
jne 0x1800ae929
lea r8, [rsp + 0x88]
mov rdx, r15
mov rcx, rdi
call fcn.180199870
test eax, eax
jne 0x1800ae929
movsd xmm0, qword [rsp + 0x88]
subsd xmm0, qword [rsp + 0x90]
subsd xmm0, qword [rsp + 0x68]
andpd xmm0, xmm6
comisd xmm0, xmm7
ja 0x1800ae929
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
add rax, rbx
add rdx, rbx
mov rcx, qword [rsp + rax*8 + 0x1a0]
cmp qword [rsp + rdx*8 + 0x1a0], rcx
jne 0x1800ae929
inc ebp
inc rbx
add r13, 8
add r12, 8
cmp ebp, r14d
jb 0x1800ae810
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0xa00]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
xor r12d, r12d
cmp ebp, r14d
je 0x1800ae9a1
inc ecx
add rdx, 0x20
sub rax, 4
mov dword [rsp + 0xa00], ecx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x58], rax
cmp ecx, 2
jb 0x1800ae7f0
mov r9d, dword [rsp + 0x50]
sub qword [rsp + 0x60], 4
add r8, 0x20
inc r9d
mov qword [rsp + 0x78], r8
mov dword [rsp + 0x50], r9d
cmp r9d, 2
jb 0x1800ae7c0
mov edi, 1
jmp 0x1800aecb9
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800ae9b0
mov rcx, r12
jmp 0x1800ae9b9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
cmp qword [rcx + 0x30], 0
je 0x1800ae9ed
mov rbx, qword [rcx + 0x30]
test rbx, rbx
jne 0x1800ae9ce
mov rbx, r12
jmp 0x1800aea02
mov rax, qword [rbx]
mov qword [rcx + 0x30], rax
test rax, rax
jne 0x1800ae9de
mov qword [rcx + 0x38], r12
movabs rax, 0xfefefefefefefefe
mov qword [rbx], rax
jmp 0x1800aea02
mov rcx, qword [rcx + 0x28]
mov edx, 0x80
lea r8d, [rdx - 0x70]
call fcn.180243b70
mov rbx, rax
test rbx, rbx
je 0x1800aecb4
movzx ebp, byte [rsp + 0xa08]
mov qword [rbx], 0xffffffffffffffff
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx + 0x10], r12d
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x30], 0xffffffff
mov dword [rbx + 0x78], r12d
mov qword [rbx + 0x18], r12
mov word [rbx + 0x7c], r12w
mov qword [rbx + 0x28], r12
mov word [rbx + 0x7e], r12w
mov dword [rbx + 0x38], r12d
mov dword [rbx + 0x3c], r12d
mov dword [rbx + 0x40], r12d
mov qword [rbx + 0x48], 0xffffffffffffffff
mov dword [rbx + 0x50], r12d
mov dword [rbx + 0x68], r12d
mov qword [rbx + 0x70], r12
test bpl, bpl
je 0x1800aea9e
mov edx, r14d
lea esi, [r14 + r14]
mov r9d, r14d
and edx, 0xfffff
mov rcx, rbx
mov r8d, esi
or edx, 0x90b00000
mov byte [rsp + 0x20], 0
call fcn.180193d40
mov edi, eax
test eax, eax
js 0x1800aebc2
jmp 0x1800aeace
mov edx, r14d
lea esi, [r14 + r14]
mov r9d, r14d
and edx, 0xfffff
mov rcx, rbx
mov r8d, esi
or edx, 0x90a00000
mov byte [rsp + 0x20], 0
call fcn.180193d40
mov edi, eax
test eax, eax
js 0x1800aebc2
mov rcx, qword [r15 + 0x19550]
lea rdi, [r14*8]
mov eax, dword [rcx + 0x68]
mov r8, rdi
mov dword [rbx + 0x68], eax
mov rax, qword [rcx + 0x70]
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x70], rax
mov rdx, qword [r15 + 0x19550]
mov rdx, qword [rdx + 0x28]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x1a0]
mov r8, rdi
call sub.msvcrt.dll_memcpy
test bpl, bpl
je 0x1800aeb3c
mov rax, qword [r15 + 0x19550]
mov r8, rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rbx + 0x18]
lea rdx, [rdi + rcx]
lea rcx, [rdi + rax]
call sub.msvcrt.dll_memcpy
jmp 0x1800aeb5b
mov rax, qword [r15 + 0x19550]
mov r8, rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rbx + 0x18]
lea rdx, [rcx + rsi*8]
lea rcx, [rdi + rax]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x18]
mov r9, qword [rax]
mov rdx, qword [rdi + rax]
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax]
mov r8, qword [rcx + 0xa8]
cmp r8, qword [r9 + 0xa8]
jne 0x1800aeb8c
mov eax, dword [r9 + 0xc8]
cmp dword [rcx + 0xc8], eax
je 0x1800aeba3
cmp r8, qword [rdx + 0xa8]
jne 0x1800aebb0
mov eax, dword [rdx + 0xc8]
cmp dword [rcx + 0xc8], eax
jne 0x1800aebb0
mov edi, 1
jmp 0x1800aebc2
mov rcx, qword [r15 + 0x19550]
mov rdx, rbx
call fcn.180195040
mov edi, r12d
cmp word [rbx + 0x7c], 0
je 0x1800aec17
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800aebd8
mov rax, r12
jmp 0x1800aebde
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [rbx + 0x7c]
cmp ecx, dword [rax + 0x250]
ja 0x1800aec0e
mov r8, qword [rbx + 0x18]
dec ecx
movsxd rdx, ecx
shl rdx, 5
add rdx, qword [rax + 0x248]
test r8, r8
je 0x1800aec0e
mov rax, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r8
mov word [rbx + 0x7c], r12w
mov qword [rbx + 0x18], r12
cmp word [rbx + 0x7e], 0
je 0x1800aec6c
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800aec2d
mov rax, r12
jmp 0x1800aec33
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [rbx + 0x7e]
cmp ecx, dword [rax + 0x250]
ja 0x1800aec63
mov r8, qword [rbx + 0x28]
dec ecx
movsxd rdx, ecx
shl rdx, 5
add rdx, qword [rax + 0x248]
test r8, r8
je 0x1800aec63
mov rax, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r8
mov word [rbx + 0x7e], r12w
mov qword [rbx + 0x28], r12
mov ecx, dword [0x18025e63c]
test ecx, ecx
js 0x1800aecb9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x1800aecb9
mov edx, 0xfe
mov rcx, rbx
lea r8d, [rdx - 0x7e]
call fcn.18024adb8
mov qword [rbx], r12
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x1800aecaa
mov qword [rax], rbx
mov qword [rsi + 0x38], rbx
jmp 0x1800aecb9
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rbx
jmp 0x1800aecb9
mov edi, 0x8007000e
movaps xmm7, xmmword [rsp + 0x9a0]
movaps xmm6, xmmword [rsp + 0x9b0]
mov r13, qword [rsp + 0x9c0]
mov rsi, qword [rsp + 0x9d0]
mov rbp, qword [rsp + 0x9d8]
mov rbx, qword [rsp + 0xa10]
mov eax, edi
mov rdi, qword [rsp + 0x9c8]
add rsp, 0x9e0
pop r15
pop r14
pop r12
ret