Function at 0x1800a9450
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
xor ebx, ebx
mov rbp, r9
mov r10, r8
mov rax, rdx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x40], rbx
mov rdi, rcx
lea r9, [r11 - 0x50]
mov r8, rbp
mov rdx, r10
mov rcx, rax
mov byte [rsp + 0x60], bl
mov byte [rsp + 0x61], 1
call fcn.1800a9310
mov dword [rsp + 0x20], eax
test eax, eax
js 0x1800a9a4c
mov rdx, qword [rsp + 0xb0]
mov esi, dword [rsp + 0x58]
lea r9, [rsp + 0x48]
mov r8, rbp
mov rcx, rdi
call fcn.1800a9310
mov dword [rsp + 0x20], eax
test eax, eax
js 0x1800a9a4c
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
test esi, esi
je 0x1800a951e
mov rcx, rbx
mov rdx, rbp
mov r8, rsi
nop dword [rax + rax]
cmp rcx, rdi
mov rax, rbx
cmovb rax, rdx
cmp rcx, rdi
mov rax, qword [rax]
mov byte [rax + 0x60], bl
mov rax, rbx
cmovb rax, rdx
inc rcx
add rdx, 8
sub r8, 1
mov rax, qword [rax]
mov qword [rax + 0x68], rbx
jne 0x1800a94f0
mov rcx, rsi
cmp rsi, rdi
jae 0x1800a9557
cmp rcx, rdi
lea rax, [rbp + rcx*8]
jb 0x1800a9533
mov rax, rbx
mov rax, qword [rax]
mov byte [rax + 0x60], 1
lea rax, [rbp + rcx*8]
cmp rcx, rdi
jb 0x1800a9547
mov rax, rbx
mov rax, qword [rax]
inc esi
mov ecx, esi
mov qword [rax + 0x68], rbx
cmp rcx, rdi
jb 0x1800a9529
mov r9, qword [rsp + 0xa0]
mov r8d, dword [rsp + 0x58]
lea rcx, [0x18019ce10]
mov rdx, rbp
call fcn.1801a7da0
mov esi, ebx
test rdi, rdi
je 0x1800a9656
mov r10, rbx
cmp rbx, rdi
lea rax, [rbp + r10*8]
jb 0x1800a958e
mov rax, rbx
mov rax, qword [rax]
cmp byte [rax + 0x60], bl
je 0x1800a9648
test esi, esi
je 0x1800a9648
lea eax, [rsi - 1]
mov r11d, eax
lea rax, [rbp + rax*8]
cmp r11, rdi
jb 0x1800a95b5
mov rax, rbx
mov rax, qword [rax]
cmp byte [rax + 0x60], bl
jne 0x1800a9648
lea rdx, [rbp + r10*8]
cmp r10, rdi
jb 0x1800a95ce
mov rdx, rbx
lea rcx, [rbp + r11*8]
cmp r11, rdi
jb 0x1800a95db
mov rcx, rbx
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call fcn.18019cd30
test eax, eax
jne 0x1800a9648
lea rdx, [rbp + r11*8]
cmp r11, rdi
jb 0x1800a95ff
mov rdx, rbx
lea rax, [rbp + r10*8]
cmp r10, rdi
jb 0x1800a960c
mov rax, rbx
mov rax, qword [rax]
mov rdx, qword [rdx]
mov rcx, qword [rax + 0xa8]
mov rax, qword [rdx + 0xa8]
mov qword [rcx + 0x40], rax
lea rax, [rbp + r11*8]
cmp r11, rdi
jb 0x1800a9631
mov rax, rbx
lea rcx, [rbp + r10*8]
cmp r10, rdi
jb 0x1800a963e
mov rcx, rbx
mov rcx, qword [rcx]
mov rax, qword [rax]
mov qword [rcx + 0x68], rax
inc esi
mov r10d, esi
cmp r10, rdi
jb 0x1800a9584
mov dword [rsp + 0x24], ebx
test rdi, rdi
je 0x1800a9928
mov rcx, rbx
mov qword [rsp + 0x28], rbx
cmp rbx, rdi
lea rax, [rbp + rcx*8]
jb 0x1800a9678
mov rax, rbx
mov rax, qword [rax]
cmp byte [rax + 0x60], bl
je 0x1800a990e
lea rax, [rbp + rcx*8]
cmp rcx, rdi
jb 0x1800a9691
mov rax, rbx
mov rax, qword [rax]
cmp qword [rax + 0x68], rbx
jne 0x1800a990e
lea rax, [rbp + rcx*8]
cmp rcx, rdi
jb 0x1800a96ab
mov rax, rbx
mov rax, qword [rax]
mov rsi, qword [rax + 0xa8]
mov rax, qword [rsi + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1800a96fc
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0x30]
mov rdx, rsi
call fcn.18019f710
mov dword [rsp + 0x20], eax
test eax, eax
js 0x1800a9a51
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov qword [rsi + 0x40], rax
lea rax, [rbp + rcx*8]
cmp rcx, rdi
jb 0x1800a9709
mov rax, rbx
cmp dword [0x18025e63c], ebx
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
jge 0x1800a971e
mov rcx, rbx
jmp 0x1800a972d
mov ecx, dword [0x18025e63c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
cmp qword [rcx + 0x18], rbx
je 0x1800a9760
mov rsi, qword [rcx + 0x18]
test rsi, rsi
jne 0x1800a9741
mov rsi, rbx
jmp 0x1800a9777
mov rax, qword [rsi]
mov qword [rcx + 0x18], rax
test rax, rax
jne 0x1800a9751
mov qword [rcx + 0x20], rbx
movabs rax, 0xfefefefefefefefe
mov qword [rsi], rax
jmp 0x1800a9777
mov rcx, qword [rcx + 0x10]
mov edx, 0x188
mov r8d, 0x10
call fcn.180243b70
mov rsi, rax
test rsi, rsi
je 0x1800a985c
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x78], rbx
mov qword [rsi + 0x80], rbx
mov qword [rsi + 0x88], rbx
mov qword [rsi + 0x90], rbx
mov dword [rsi + 0xa0], 0xffffffff
mov qword [rsi + 0xa8], 0xffffffffffffffff
mov qword [rsi + 0x40], rbx
call fcn.1801994e0
mov dword [rsp + 0x20], eax
test eax, eax
js 0x1800a97f9
mov rcx, qword [rsp + 0xa8]
mov r8b, 1
mov rdx, rsi
call fcn.18019ec70
mov dword [rsp + 0x20], eax
test eax, eax
js 0x1800a97f9
mov eax, ebx
mov dword [rsp + 0x20], ebx
mov r9, rsi
mov qword [rsp + 0x38], rsi
jmp 0x1800a986a
mov rcx, rsi
call fcn.1801991c0
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800a9812
mov qword [rsp + 0x30], rbx
jmp 0x1800a981d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
mov edx, 0xfe
mov r8d, 0x188
mov rcx, rsi
call fcn.18024adb8
mov rax, qword [rsp + 0x30]
mov qword [rsi], rbx
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x1800a984e
mov qword [rcx], rsi
mov qword [rax + 0x20], rsi
mov eax, dword [rsp + 0x20]
jmp 0x1800a9865
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov eax, dword [rsp + 0x20]
jmp 0x1800a9865
mov eax, 0x8007000e
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
test eax, eax
js 0x1800a9a51
mov rcx, qword [r9 + 0xa8]
mov r8, qword [rsp + 0x40]
cmp rcx, r8
je 0x1800a98ec
test rcx, rcx
je 0x1800a98b9
cmp rcx, 0xffffffffffffffff
je 0x1800a98b9
mov rdx, qword [r9 + 8]
mov rax, qword [r9]
test rdx, rdx
je 0x1800a989f
mov qword [rdx], rax
jmp 0x1800a98a3
mov qword [rcx + 0x30], rax
mov rdx, qword [r9]
mov rax, qword [r9 + 8]
test rdx, rdx
je 0x1800a98b5
mov qword [rdx + 8], rax
jmp 0x1800a98b9
mov qword [rcx + 0x38], rax
test r8, r8
je 0x1800a98e5
cmp r8, 0xffffffffffffffff
je 0x1800a98e5
mov rax, qword [r8 + 0x38]
mov qword [r9 + 8], rax
mov rax, qword [r8 + 0x38]
test rax, rax
je 0x1800a98da
mov qword [rax], r9
jmp 0x1800a98de
mov qword [r8 + 0x30], r9
mov qword [r9], rbx
mov qword [r8 + 0x38], r9
mov qword [r9 + 0xa8], r8
mov rax, qword [rsp + 0x28]
cmp rax, rdi
lea rax, [rbp + rax*8]
jb 0x1800a98fe
mov rax, rbx
mov rax, qword [rax]
mov qword [rax + 0x68], r9
mov byte [r9 + 0x60], 1
mov qword [r9 + 0x68], rbx
mov eax, dword [rsp + 0x24]
inc eax
mov ecx, eax
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x28], rcx
cmp rcx, rdi
jb 0x1800a966e
mov r10d, ebx
test rdi, rdi
je 0x1800a99da
mov rdx, rbx
cmp rbx, rdi
lea rax, [rbp + rdx*8]
jb 0x1800a9944
mov rax, rbx
mov rax, qword [rax]
cmp byte [rax + 0x60], bl
je 0x1800a99cb
lea rax, [rbp + rdx*8]
cmp rdx, rdi
jb 0x1800a9959
mov rax, rbx
mov rax, qword [rax]
mov r9, qword [rax + 0x68]
test r9, r9
je 0x1800a99cb
lea rax, [rbp + rdx*8]
cmp rdx, rdi
jb 0x1800a9972
mov rax, rbx
mov rax, qword [rax]
mov ecx, dword [rax + 0x98]
bt rcx, 8
jb 0x1800a99cb
mov r8, qword [r9 + 0x98]
bt r8, 8
jae 0x1800a99b2
lea rax, [rbp + rdx*8]
cmp rdx, rdi
jb 0x1800a999d
mov rax, rbx
mov rax, qword [rax]
mov ecx, dword [rax + 0x98]
mov eax, 1
bt rcx, 8
jb 0x1800a99b5
mov rax, rbx
shl rax, 8
xor rax, r8
and eax, 0x100
xor rax, r8
mov qword [r9 + 0x98], rax
inc r10d
mov edx, r10d
cmp rdx, rdi
jb 0x1800a993a
mov eax, dword [rsp + 0x20]
test eax, eax
js 0x1800a9a51
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0xd240]
test rcx, rcx
je 0x1800a9a51
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
call fcn.1800a9450
mov edi, eax
cmp byte [rsp + 0x60], bl
je 0x1800a9a41
test rbp, rbp
je 0x1800a9a41
mov ecx, dword [0x18025e63c]
test ecx, ecx
js 0x1800a9a33
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbp, qword [rsp + 0x48]
cmp byte [rsp + 0x60], bl
je 0x1800a9a85
test rbp, rbp
je 0x1800a9a85
cmp dword [0x18025e63c], ebx
jl 0x1800a9a73
mov ecx, dword [0x18025e63c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x20]
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret