Function at 0x18009ddf0
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x550
mov rax, qword [0x18025e100]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov qword [r11 - 0x20], rbp
mov qword [r11 - 0x28], r12
xor esi, esi
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov rbp, rcx
mov qword [r11 - 0x40], r15
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x68], r9
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x50], rsi
mov r12, rsi
mov qword [rsp + 0x58], rsi
call fcn.1800fa370
mov rbx, qword [r15 + 0x18]
or rcx, 0xffffffffffffffff
lea r13d, [rsi + 1]
test rbx, rbx
je 0x18009e32c
mov eax, dword [rbx + 0x38]
cmp eax, 0x20
je 0x18009de6c
cmp eax, 0x1d
jne 0x18009de93
mov eax, dword [r15]
lea rcx, [rax + rax*4]
lea rax, [0x18002d84c]
mov eax, dword [rax + rcx*8]
cmp eax, 0xa000000
je 0x18009df3d
cmp eax, 0xb000000
je 0x18009df3d
mov eax, dword [rsp + 0x590]
mov r8, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x60]
bts eax, 0x1d
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x50]
mov r9, rbx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rsi
call fcn.1800fa490
mov edi, eax
test eax, eax
jns 0x18009df07
mov rdx, qword [rbx + 0x90]
test rdx, rdx
jne 0x18009deef
lea rdx, [rbx + 0x68]
mov rcx, qword [rbp + 0x20]
lea r9, [0x18003bf40]
xor r8d, r8d
call fcn.180221ec0
jmp 0x18009e60d
mov r8, qword [rbx + 0x90]
test r8, r8
jne 0x18009df17
lea r8, [rbx + 0x68]
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call fcn.18009d5a0
mov edi, eax
test eax, eax
js 0x18009e60d
cmp dword [rsp + 0x60], esi
mov ebp, esi
setne bpl
jmp 0x18009e3c8
mov rax, qword [rbx + 0x40]
cmp dword [rax + 8], 5
jne 0x18009df56
cmp dword [rax + 0x38], esi
jne 0x18009df56
mov rax, qword [rax + 0x40]
cmp dword [rax + 8], 5
je 0x18009df47
cmp dword [rax + 8], r13d
je 0x18009df89
mov rdx, qword [rbx + 0x90]
test rdx, rdx
jne 0x18009df6c
lea rdx, [rbx + 0x68]
mov rcx, qword [rbp + 0x20]
lea r9, [0x18003bde0]
xor r8d, r8d
call fcn.180221ec0
mov edi, 0x80004005
jmp 0x18009e60d
mov r12, qword [rax + 0x10]
cmp dword [r12 + 0x28], 5
je 0x18009dfba
mov rcx, qword [rbp + 0x20]
lea rdx, [r12 + 0x48]
lea r9, [0x18003be30]
xor r8d, r8d
call fcn.180221ec0
mov edi, 0x80004005
mov r12, rsi
jmp 0x18009e60d
mov r9, qword [rbx + 0x48]
mov rcx, r9
cmp dword [rcx + 8], 5
jne 0x18009dfd6
cmp dword [rcx + 0x38], esi
jne 0x18009dfd6
mov rcx, qword [rcx + 0x40]
cmp dword [rcx + 8], 5
je 0x18009dfc7
cmp dword [rcx + 8], r13d
jne 0x18009dfeb
mov rax, qword [rcx + 0x10]
cmp qword [rax + 0x18], rsi
jne 0x18009dfeb
mov rcx, rax
jmp 0x18009dfc1
mov eax, dword [rcx + 8]
cmp eax, 6
jne 0x18009dffd
cmp dword [rcx + 0x28], 5
je 0x18009e17e
cmp eax, 6
jne 0x18009e17e
mov edx, dword [rcx + 0x28]
sub edx, r13d
je 0x18009e056
sub edx, r13d
je 0x18009e051
cmp edx, r13d
je 0x18009e03d
mov rcx, qword [rbp + 0x20]
lea rdx, [r12 + 0x48]
lea r9, [0x18003be90]
xor r8d, r8d
call fcn.180221ec0
mov edi, 0x80004005
mov r12, rsi
jmp 0x18009e60d
movsd xmm0, qword [rcx + 0x30]
addsd xmm0, qword [0x180068c68]
cvttsd2si rcx, xmm0
jmp 0x18009e059
mov ecx, dword [rcx + 0x30]
jmp 0x18009e059
mov ecx, dword [rcx + 0x30]
mov rax, qword [r12 + 0x30]
mov eax, dword [rax + 0x4c]
cmp ecx, eax
jb 0x18009e094
dec eax
lea rdx, [r12 + 0x48]
lea r9, [0x18003bee0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
call fcn.180221ec0
mov edi, 0x80004005
mov r12, rsi
jmp 0x18009e60d
mov r9d, ecx
lea r8, [0x180035abc]
lea rcx, [rsp + 0x4f0]
mov edx, 0x20
call fcn.18006bc00
mov rdi, qword [r12 + 0x30]
mov byte [rsp + 0x4f8], sil
mov rdi, qword [rdi + 0x18]
xor eax, eax
or r8, 0xffffffffffffffff
mov rcx, r8
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x4f0]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasb al, byte [rdi]
not rcx
lea ebp, [rdx + rcx + 2]
lea ecx, [rax + 0x20]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x18009e133
lea rax, [0x180067cb0]
mov rdx, rbp
mov rcx, rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rsi
mov dword [rbx + 8], r13d
mov qword [rbx], rax
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jns 0x18009e12a
mov rax, qword [rbx]
mov edx, r13d
mov rcx, rbx
call qword [rax + 0x28]
jmp 0x18009e138
mov qword [rsp + 0x50], rbx
mov edi, esi
jmp 0x18009e138
mov edi, 0x8007000e
test edi, edi
js 0x18009e5a2
mov rax, qword [r12 + 0x30]
mov rcx, qword [rsp + 0x50]
mov rdi, qword [rax + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea r8, [0x180037d94]
mov r9, rdi
mov rcx, rax
lea rax, [rsp + 0x4f0]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.18006bc00
mov ebp, r13d
jmp 0x18009e3c8
cmp dword [r9 + 8], 5
jne 0x18009e307
mov r8, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x590]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.1800fa490
mov edi, eax
test eax, eax
jns 0x18009e1f0
mov rdx, qword [rbx + 0x90]
test rdx, rdx
jne 0x18009e1d5
lea rdx, [rbx + 0x68]
mov rcx, qword [rbp + 0x20]
lea r9, [0x18003bf40]
xor r8d, r8d
call fcn.180221ec0
mov r12, rsi
jmp 0x18009e60d
mov rdi, qword [r12 + 0x30]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, qword [rdi + 0x18]
repne scasb al, byte [rdi]
not rcx
lea rbp, [rcx + 3]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
and ebp, 0xfffffffc
call qword [rax + 0x20]
mov ecx, 0x20
lea r13d, [rax + rbp + 4]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x18009e274
lea rax, [0x180067cb0]
mov rdx, r13
mov rcx, rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rsi
mov dword [rbx + 8], 1
mov qword [rbx], rax
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jns 0x18009e268
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, rsi
jmp 0x18009e27c
mov rcx, rbx
mov qword [rsp + 0x58], rbx
mov edi, esi
jmp 0x18009e27c
mov edi, 0x8007000e
mov rcx, rsi
test edi, edi
js 0x18009e5a7
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, r13
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.18024adb8
mov dword [rbx], ebp
mov r8, qword [r12 + 0x30]
mov r8, qword [r8 + 0x18]
add rbx, 4
lea rdx, [r13 - 4]
mov rcx, rbx
call fcn.180093790
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x20]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
mov rdi, rax
call qword [rdx + 0x18]
mov ecx, ebp
mov r8, rdi
mov rdx, rax
add rcx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18009e2ee
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x58]
mov ebp, 2
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rax
jmp 0x18009e3c8
mov rcx, qword [rbp + 0x20]
lea rdx, [r12 + 0x48]
lea r9, [0x18003bf90]
xor r8d, r8d
call fcn.180221ec0
mov edi, 0x80004005
mov r12, rsi
jmp 0x18009e60d
mov rdi, qword [r15 + 0x20]
xor eax, eax
mov rdi, qword [rdi + 0x38]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea ecx, [rax + 0x20]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x18009e38c
lea rax, [0x180067cb0]
lea rdx, [rdi + 1]
mov rcx, rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rsi
mov dword [rbx + 8], r13d
mov qword [rbx], rax
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jns 0x18009e383
mov rax, qword [rbx]
mov edx, r13d
mov rcx, rbx
call qword [rax + 0x28]
jmp 0x18009e391
mov qword [rsp + 0x50], rbx
mov edi, esi
jmp 0x18009e391
mov edi, 0x8007000e
test edi, edi
js 0x18009e60d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [r15 + 0x20]
mov rdi, rax
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rbx + 0x38]
mov r8, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov ebp, r13d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
mov r13, rax
call qword [rdx + 0x20]
xor r9d, r9d
lea rdx, [r15 + 4]
lea r8d, [r9 + 4]
mov rcx, r14
mov r12, rax
call fcn.180094de0
mov edi, eax
test eax, eax
js 0x18009e5c1
xor r9d, r9d
lea rdx, [r15 + 8]
mov rcx, r14
lea r8d, [r9 + 4]
call fcn.180094de0
mov edi, eax
test eax, eax
js 0x18009e5ce
xor r9d, r9d
lea rdx, [r15 + 0xc]
mov rcx, r14
lea r8d, [r9 + 4]
call fcn.180094de0
mov edi, eax
test eax, eax
js 0x18009e5db
xor r9d, r9d
lea rdx, [r15 + 0x10]
mov rcx, r14
lea r8d, [r9 + 4]
call fcn.180094de0
mov edi, eax
test eax, eax
js 0x18009e5e8
mov ecx, 0x38
mov edi, esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x18009e4da
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rax
mov qword [rax + 0x28], rsi
mov qword [rax + 8], rsi
mov dword [rax + 0x30], esi
mov r15d, 1
mov rcx, 0xffffffffffffffff
mov dword [rax], r15d
mov eax, 4
mul r15
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbx + 8], rax
test rax, rax
jne 0x18009e4c2
mov edx, r15d
mov rcx, rbx
mov edi, 0x8007000e
call fcn.180094d80
jmp 0x18009e4e5
mov dword [rax], ebp
mov rax, qword [r14 + 0x20]
mov qword [rbx + 0x18], rax
mov rax, qword [r14 + 0x20]
mov qword [rax + 0x10], rbx
mov qword [r14 + 0x20], rbx
jmp 0x18009e4e5
mov edi, 0x8007000e
mov r15d, 1
test edi, edi
js 0x18009e5f5
mov ecx, 0x38
mov edi, esi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x18009e56a
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rax
mov qword [rax + 0x28], rsi
mov qword [rax + 8], rsi
mov dword [rax + 0x30], esi
mov dword [rax], r15d
mov rcx, 0xffffffffffffffff
mov eax, 4
mul r15
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbx + 8], rax
test rax, rax
jne 0x18009e551
mov edx, r15d
mov rcx, rbx
mov edi, 0x8007000e
call fcn.180094d80
jmp 0x18009e56f
mov dword [rax], r12d
mov rax, qword [r14 + 0x20]
mov qword [rbx + 0x18], rax
mov rax, qword [r14 + 0x20]
mov qword [rax + 0x10], rbx
mov qword [r14 + 0x20], rbx
jmp 0x18009e56f
mov edi, 0x8007000e
test edi, edi
js 0x18009e602
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, r14
call fcn.180094de0
mov edi, eax
test eax, eax
js 0x18009e5b4
mov rax, qword [rsp + 0x68]
mov r12, qword [rsp + 0x58]
mov r13d, 1
inc dword [rax]
jmp 0x18009e60d
mov r12, rsi
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
jmp 0x18009e60d
mov r12, qword [rsp + 0x58]
mov r13d, 1
mov rcx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x528]
mov r14, qword [rsp + 0x530]
mov rbp, qword [rsp + 0x548]
test rcx, rcx
je 0x18009e63a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x50], rsi
test r12, r12
je 0x18009e649
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x540]
test rcx, rcx
je 0x18009e666
mov rax, qword [rcx]
mov edx, r13d
call qword [rax]
mov rbx, qword [rsp + 0x2f8]
mov r13, qword [rsp + 0x538]
mov qword [rsp + 0x80], rsi
test rbx, rbx
je 0x18009e69c
mov rcx, rbx
call fcn.18011e050
lea rcx, [rbx + 0x30]
call fcn.180120170
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x2f8], rsi
mov qword [rsp + 0x2e8], rsi
cmp byte [rsp + 0x2f0], sil
je 0x18009e6ee
mov rbx, qword [rsp + 0x2d8]
test rbx, rbx
je 0x18009e6e6
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18009e6d2
mov rax, rsi
jmp 0x18009e6d8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [rsp + 0x2f0], sil
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x2d8], rsi
mov qword [rsp + 0x2e0], rsi
call fcn.1800fa860
mov r11, qword [rsp + 0x300]
mov rbx, r11
test r11, r11
je 0x18009e75e
nop dword [rax + rax]
mov ecx, dword [0x18025e63c]
mov rax, qword [r11]
mov qword [rsp + 0x300], rax
test ecx, ecx
jns 0x18009e73a
mov rax, rsi
jmp 0x18009e740
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r11, qword [rsp + 0x300]
mov rbx, r11
test r11, r11
jne 0x18009e720
mov qword [rsp + 0x308], rsi
mov qword [rsp + 0x2e8], rsi
cmp byte [rsp + 0x2f0], sil
je 0x18009e7a6
mov rbx, qword [rsp + 0x2d8]
test rbx, rbx
je 0x18009e7a6
mov ecx, dword [0x18025e63c]
test ecx, ecx
js 0x18009e798
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rcx, qword [rsi]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.18024a670
add rsp, 0x550
pop rdi
pop rsi
pop rbx
ret