Function at 0x18017d510
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r13
push r14
push r15
sub rsp, 0x68
mov r14, r9
movsxd rdi, r8d
mov r15, rdx
mov r13, rcx
test r9, r9
je 0x18017d9c1
cmp dword [r9 + 8], 5
jne 0x18017d9c1
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov ecx, 0x98
mov qword [rax - 0x28], r12
mov qword [rax - 0x50], r9
call fcn.180071960
xor esi, esi
mov rbx, rax
test rax, rax
je 0x18017d97e
mov dword [rax + 8], 5
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], 1
mov qword [rbx + 0x28], rsi
mov dword [rbx + 0x30], esi
mov dword [rbx + 0x34], esi
mov dword [rbx + 0x38], edi
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], rsi
mov byte [rbx + 0x50], 1
mov qword [rbx + 0x58], rsi
mov dword [rbx + 0x60], esi
lea rax, [0x180041948]
mov qword [rbx], rax
mov rax, qword [r15]
mov qword [rbx + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rbx + 0x70], rax
mov rax, qword [r15 + 0x10]
mov qword [rbx + 0x78], rax
mov rax, qword [r15 + 0x18]
mov qword [rbx + 0x80], rax
mov rax, qword [r15 + 0x20]
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], rax
mov rbp, qword [r14 + 0x28]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rbp
mov r12, rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
test rbp, rbp
je 0x18017d622
mov rax, qword [rbp]
lea rdx, [rsp + 0xa8]
mov rcx, rbp
call qword [rax + 0x58]
mov ecx, dword [rax]
mov dword [rsp + 0x50], ecx
cmp edi, 8
ja case.0x18017d63c.1
lea rdx, [0x180000000]
mov ecx, dword [rdx + rdi*4 + 0x17d9d0]
add rcx, rdx
jmp rcx
or byte [rsp + 0x54], 0x22
jmp 0x18017d658
or byte [rsp + 0x54], 0x10
jmp 0x18017d658
or byte [rsp + 0x54], 8
jmp 0x18017d658
or byte [rsp + 0x54], 1
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, r13
call fcn.18017d290
mov esi, eax
test eax, eax
jne 0x18017d969
cmp edi, 8
je 0x18017d68b
cmp edi, 6
je 0x18017d68b
cmp edi, 7
je 0x18017d68b
cmp edi, 3
je 0x18017d68b
cmp edi, 4
jne 0x18017d6bb
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rdx, r15
mov rcx, r13
call fcn.18017d3f0
mov esi, eax
test eax, eax
js 0x18017d969
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov qword [rbx + 0x40], r14
mov r12, rbp
cmp edi, 6
jne 0x18017d730
mov rax, qword [rbp]
lea rdx, [rsp + 0xa8]
mov rcx, rbp
call qword [rax + 0x58]
test byte [rax], 0x80
je 0x18017d706
mov rax, qword [rbp]
lea rdx, [rsp + 0xa8]
mov rcx, rbp
call qword [rax + 0x58]
test byte [rax], 0x20
je 0x18017d706
lea r9, [0x180046e08]
mov r8d, 0xc14
mov rdx, r15
mov rcx, r13
call fcn.18010c4c0
mov r9, rbp
mov r8d, 0x200
mov rdx, r15
mov rcx, r13
call fcn.180117880
mov r12, rax
test rax, rax
jne 0x18017d8dd
mov esi, 0x8007000e
jmp 0x18017d969
cmp edi, 8
je 0x18017d706
cmp edi, 7
je 0x18017d706
cmp edi, 1
je 0x18017d706
cmp edi, 5
jne 0x18017d918
mov rax, qword [rbp]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbp
call qword [rax + 0x18]
mov eax, dword [rsp + 0x30]
mov r9, qword [r13 + 0xc0]
mov esi, dword [rsp + 0x38]
mov edi, dword [rbp + 8]
mov r8d, 0x200
mov rdx, r15
mov rcx, r13
mov dword [rsp + 0xa8], eax
call fcn.180117880
mov r12, rax
test rax, rax
je 0x18017d896
cmp esi, 1
ja 0x18017d7af
cmp dword [rsp + 0xa8], 1
ja 0x18017d7af
cmp edi, 9
je 0x18017d7af
cmp edi, 8
jne 0x18017d8a1
cmp esi, 1
jne 0x18017d7b9
cmp edi, 8
jne 0x18017d7be
cmp edi, 9
jne 0x18017d822
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18017d7cf
xor edi, edi
mov rax, rdi
jmp 0x18017d7d7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
mov rcx, qword [rax + 8]
mov edx, 0x40
lea r8d, [rdx - 0x30]
call fcn.180243b70
test rax, rax
je 0x18017d896
lea rcx, [0x180043550]
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x28], 0xffffffff
mov qword [rax + 0x30], rdi
mov qword [rax], rcx
mov dword [rax + 0x38], edi
mov dword [rax + 0x3c], edi
mov dword [rax + 8], 9
jmp 0x18017d880
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x18017d833
xor edi, edi
mov rax, rdi
jmp 0x18017d83b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
mov rcx, qword [rax + 8]
mov edx, 0x40
lea r8d, [rdx - 0x30]
call fcn.180243b70
test rax, rax
je 0x18017d896
lea rcx, [0x1800434e0]
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x28], 0xffffffff
mov dword [rax + 8], 8
mov qword [rax], rcx
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], edi
mov dword [rax + 0x3c], edi
mov ecx, dword [rsp + 0xa8]
mov qword [rax + 0x30], r12
mov dword [rax + 0x38], esi
mov dword [rax + 0x3c], ecx
mov r12, rax
jmp 0x18017d8a1
mov byte [r13 + 0x468], 1
xor r12d, r12d
test r12, r12
jne 0x18017d8b0
mov esi, 0x8007000e
jmp 0x18017d969
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call fcn.180119300
test al, al
jne 0x18017d8dd
lea r9, [0x180046e40]
mov r8d, 0xbcc
mov rdx, r15
mov rcx, r13
call fcn.18010c480
cmp r12, rbp
je 0x18017d918
mov rax, qword [r12]
mov rdx, rbp
mov rcx, r12
call qword [rax + 0x68]
test al, al
jne 0x18017d918
mov r9, r14
mov r8, r12
mov rdx, r15
mov rcx, r13
mov byte [rsp + 0x20], al
call fcn.18017e580
test rax, rax
jne 0x18017d914
mov esi, 0x8007000e
jmp 0x18017d969
mov qword [rbx + 0x40], rax
mov rdx, rbx
mov rcx, r13
mov qword [rbx + 0x28], r12
call fcn.18017c110
mov r8b, 1
mov rdx, rbx
mov rcx, r13
call fcn.18010cd60
test al, al
je 0x18017d995
mov rdx, rbx
mov rcx, r13
call fcn.180177e10
mov rdi, rax
test rax, rax
je 0x18017d995
add dword [rbx + 0x20], 0xffffffff
jne 0x18017d95f
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, rdi
jmp 0x18017d995
mov esi, 0x8007054f
add dword [rbx + 0x20], 0xffffffff
jne 0x18017d983
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x18017d983
mov esi, 0x8007000e
xor ebx, ebx
cmp esi, 0x8007000e
jne 0x18017d995
mov byte [r13 + 0x468], 1
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rax, rbx
mov rbx, qword [rsp + 0x90]
add rsp, 0x68
pop r15
pop r14
pop r13
pop rdi
ret
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop rdi
ret