Function at 0x100063a00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rbp
mov r14d, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.100068a00
mov rsi, rax
mov r9, qword gs:[0x30]
lea rbp, [r9 + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100063a58
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
mov ecx, dword [rbp + 0xa0]
lea rcx, [rdi + 0x30]
xor r8d, r8d
xor edx, edx
call fcn.1000f2920
mov rdx, qword [rdi + 0x1d0]
mov r12d, 0x200
xor r15d, r15d
test rdx, rdx
je 0x100063acc
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x100063a97
cmp word [rax + 4], r12w
jne 0x100063a97
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x100063ab5
cmp word [rcx + 4], r12w
jne 0x100063ab5
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x100063ac5
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rdi + 0x1d0], r15
lea rax, [rbx + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], r15d
mov edx, dword gs:[0x48]
mov rcx, qword [rsp + 0x28]
xor eax, eax
lock cmpxchg dword [rcx], edx
mov eax, r15d
sete al
mov rsi, qword [rsp + 0x28]
test eax, eax
jne 0x100063b07
mov rcx, rsi
call fcn.100057ac0
mov dword [rsp + 0x30], 1
mov rcx, qword [rbx + 0x98]
mov eax, dword [rcx + 0x208]
mov dword [rbx + 0x108], eax
mov rax, qword [rcx + 0x3c0]
mov qword [rbx + 0x10c], rax
mov rax, qword [rcx + 0x3c8]
mov qword [rbx + 0x114], rax
mov rax, qword [rcx + 0x3d0]
mov qword [rbx + 0x11c], rax
mov qword [rbx + 0x98], r15
cmp qword [rbx + 0x140], 0
je 0x100063b6d
mov rdx, rbx
mov rcx, qword [rbx + 0xa0]
call fcn.100066a70
nop
test rsi, rsi
je 0x100063b75
mov dword [rsi], r15d
mov rcx, qword [rdi + 0x210]
mov qword [rdi + 0x210], r15
mov rax, qword [rdi + 0x1e8]
cmp rax, 0
cmove rax, rcx
mov qword [rdi + 0x1e8], rax
lea rbx, [rcx + 0x10]
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x100063cba
cmp qword [rbx + 8], 0
je 0x100063bc1
mov rcx, rbx
call fcn.1000585a0
jmp 0x100063ccf
add rbx, 0xfffffffffffffff0
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x100063c1b
mov rsi, qword [rbx + 0xa0]
mov edx, dword gs:[0x48]
xor eax, eax
lock cmpxchg dword [rsi + 0xf80], edx
mov eax, r15d
sete al
test eax, eax
jne 0x100063bff
lea rcx, [rsi + 0xf80]
call fcn.100057ac0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rbx + 8], r15
mov qword [rbx], r15
mov dword [rsi + 0xf80], r15d
call fcn.100058010
test rax, rax
je 0x100063c46
cmp qword [rax + 0x1e8], rbx
jne 0x100063c46
test rbx, rbx
lea rcx, [rbx - 8]
jne 0x100063c3a
mov rcx, r15
xor edx, edx
call fcn.100058e50
jmp 0x100063ccf
test rbx, rbx
je 0x100063c51
add rbx, 0xfffffffffffffff8
jmp 0x100063c54
mov rbx, r15
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x100063ccf
lea rax, [0x100002a88]
mov qword [rbx], rax
lea rcx, [rbx + 8]
call fcn.100058db0
mov rax, rbx
and rax, 0xffffffffffffe000
je 0x100063c87
cmp word [rax + 4], r12w
jne 0x100063c87
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rbx
je 0x100063ca5
cmp word [rcx + 4], r12w
jne 0x100063ca5
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x100063ccf
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
jmp 0x100063ccf
mov rax, qword [rdi + 0x1e8]
cmp rcx, rax
cmove rax, r15
mov qword [rdi + 0x1e8], rax
mov rcx, rdi
call fcn.1000661d0
mov qword [rdi + 0x228], r15
mov qword [rbp + 0xd8], r15
test r14d, r14d
je 0x100063d01
mov rcx, qword [rbp + 0x110]
test rcx, rcx
je 0x100063cfc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.100064b20
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret