Function at 0x1800109e8
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x90
xor r12d, r12d
mov rbp, rdx
mov rbx, rcx
mov dword [rax + 0x10], 1
mov dil, 0x40
cmp dword [rdx + 0x48], r12d
jne 0x180010a1d
mov eax, dword [rdx + 0x54]
test dil, al
je 0x180010c5e
mov eax, dword [rdx + 0x54]
test al, 1
je 0x180010bae
mov eax, dword [rdx + 0x54]
or esi, 0xffffffff
test al, 6
jne 0x180010ad2
mov eax, dword [rdx + 0x54]
test dil, al
jne 0x180010ac8
mov dword [rsp + 0xc8], esi
cmp dword [rdx + 0x48], r12d
je 0x180010ae8
mov r8d, dword [rbp + 0x48]
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 8]
mov r10, qword [rcx]
sub eax, r8d
lea r9, [rsp + 0xc8]
movsxd rdx, eax
add rdx, qword [rbp + 0x3c]
call qword [r10 + 0x20]
mov r11, qword [rbx + 8]
mov rdx, qword [rbp + 0x3c]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, 0x4000
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
cmp eax, r12d
mov dword [rbp + 0x44], eax
jle 0x180010a9c
mov dword [rbp + 0x48], eax
jmp 0x180010ac0
je 0x180010ab4
mov ecx, dword [0x18003877c]
cmp ecx, 0xffffffff
je 0x180010ab8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, r12d
je 0x180010ab8
mov dword [rbp + 0x4c], r12d
mov dword [rbp + 0x44], r12d
mov dword [rbp + 0x48], r12d
cmp dword [rbp + 0x48], r12d
jne 0x180010a53
jmp 0x180010ade
mov dword [rdx + 0x4c], r12d
mov dword [rdx + 0x48], r12d
jmp 0x180010ade
call fcn.18000ff98
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], r12d
jge 0x180010af4
mov eax, dword [rbp + 0x54]
test dil, al
je 0x180010c5e
mov rdx, qword [rbp + 0x18]
cmp rdx, r12
je 0x180010b19
mov rcx, qword [rbp + 8]
call fcn.18000f2e0
cmp eax, 0xe8
jne 0x180010b19
mov dword [rsp + 0xc8], esi
jmp 0x180010c5e
mov edx, dword [rbp + 0x50]
mov ecx, dword [rbx + 0x1c]
mov rax, qword [rbp + 0x58]
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp + 0x10]
not edx
and edx, 0x100
and ecx, 0x80
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 8]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp + 0x68]
call fcn.180007a5c
lea rdx, [rsp + 0x40]
mov r8d, 1
mov dword [rbp + 0x50], eax
bts dword [rbp + 0x50], 8
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + 0x60]
cmp dword [rsp + 0x50], r12d
jne 0x180010b7d
cmp dword [rbp + 0x4c], r12d
jne 0x180010b85
mov rcx, rbp
call fcn.1800102c8
mov eax, dword [rbp + 0x50]
test al, 1
jne 0x180010ba1
mov eax, dword [rbp + 0x54]
test al, 2
jne 0x180010c5e
cmp dword [rbp + 0x4c], r12d
jne 0x180010c5e
mov rcx, rbp
call fcn.1800102c8
jmp 0x180010c5e
mov eax, dword [rdx + 0x44]
mov rsi, qword [rdx]
mov edi, dword [rdx + 0x48]
sub eax, edi
mov dword [rsp + 0xd0], r12d
lea r9, [rsp + 0xd0]
movsxd rbx, eax
xor eax, eax
mov r8d, 1
add rbx, qword [rdx + 0x3c]
mov dword [rsp + 0xd4], eax
mov rax, qword [rsi]
mov rdx, qword [rsp + 0xd0]
mov rcx, rsi
call qword [rax + 0x28]
mov rax, qword [rsi]
xor r9d, r9d
mov dword [rsp + 0xd8], r12d
mov dword [rsp + 0xdc], r12d
mov rdx, qword [rsp + 0xd8]
lea r8d, [r9 + 2]
mov rcx, rsi
call qword [rax + 0x28]
mov r11, qword [rsi]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [r11 + 0x20]
mov r11d, dword [rsp + 0xd0]
mov rax, qword [rsi]
mov dword [rsp + 0xd0], r11d
mov dword [rsp + 0xd4], r12d
mov rdx, qword [rsp + 0xd0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [rax + 0x28]
mov dword [rbp + 0x48], r12d
mov eax, dword [rsp + 0xc8]
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret