Function at 0x100063620
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbx, r9
mov r14, r8
mov r15, rdx
mov rbp, rcx
call fcn.100068a00
mov rdi, rax
mov r10, qword gs:[0x30]
lea rsi, [r10 + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10006367a
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
xor edi, edi
test rsi, rsi
je 0x1000636e0
cmp qword [rsi + 0xe8], rsi
jne 0x1000636e0
mov rax, qword [rsp + 0x88]
mov dword [rax], edi
test rbp, rbp
je 0x1000636a2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.100068a00
mov rbp, rax
mov rcx, qword gs:[0x30]
lea rsi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000636ce
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
xor edx, edx
mov r8d, 0x80
mov rcx, rsi
call sub.MSVCR100.dll_memset
jmp 0x1000636f9
mov rax, qword [rsp + 0x88]
mov dword [rax], 1
mov rcx, rbp
call fcn.100064a20
mov rsi, rax
lea rcx, [rbx + 0x30]
mov r8, r14
mov rdx, r15
call fcn.1000f2920
mov r15d, 0x200
or dword [rbx + 0x2d8], r15d
mov rdx, rbx
mov rcx, rsi
call fcn.100066940
mov rbp, qword [rsp + 0x80]
test rbp, rbp
je 0x1000637a8
lock inc dword [rbp + 0x20]
mov qword [rbx + 0x210], rbp
inc dword [rbx + 0x80]
call fcn.10011b7d0
test eax, eax
je 0x100063760
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x78]
mov qword [rbx + 0xa8], r11
jmp 0x10006376f
mov rax, qword [0x7ffe0008]
mov qword [rbx + 0xa8], rax
mov rax, qword [rbp + 0x58]
cmp rax, qword [rbx + 0x1f0]
je 0x100063789
mov qword [rbx + 0x1f0], rax
mov dword [rbx + 0x200], edi
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x10006390b
add rax, 0x3a8
mov qword [rbx + 0x3a8], rax
jmp 0x10006390b
mov rcx, qword [rbx + 0x210]
mov qword [rbx + 0x210], rdi
mov rax, qword [rbx + 0x1e8]
cmp rax, rdi
cmove rax, rcx
mov qword [rbx + 0x1e8], rax
lea rsi, [rcx + 0x10]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
dec eax
jne 0x1000638ee
cmp qword [rsi + 8], rdi
je 0x1000637f2
mov rcx, rsi
call fcn.1000585a0
jmp 0x100063903
add rsi, 0xfffffffffffffff0
mov eax, dword [rsi + 0xb0]
cmp eax, 2
jne 0x10006384c
mov r14, qword [rsi + 0xa0]
mov edx, dword gs:[0x48]
xor eax, eax
lock cmpxchg dword [r14 + 0xf80], edx
mov eax, edi
sete al
test eax, eax
jne 0x100063830
lea rcx, [r14 + 0xf80]
call fcn.100057ac0
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rsi + 8], rdi
mov qword [rsi], rdi
mov dword [r14 + 0xf80], edi
call fcn.100058010
test rax, rax
je 0x100063877
cmp qword [rax + 0x1e8], rsi
jne 0x100063877
test rsi, rsi
lea rcx, [rsi - 8]
jne 0x10006386b
mov rcx, rdi
xor edx, edx
call fcn.100058e50
jmp 0x100063903
test rsi, rsi
je 0x100063882
add rsi, 0xfffffffffffffff8
jmp 0x100063885
mov rsi, rdi
mov qword [rsp + 0x80], rsi
test rsi, rsi
je 0x100063903
lea rax, [0x100002a88]
mov qword [rsi], rax
lea rcx, [rsi + 8]
call fcn.100058db0
mov rax, rsi
and rax, 0xffffffffffffe000
je 0x1000638bb
cmp word [rax + 4], r15w
jne 0x1000638bb
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rsi
je 0x1000638d9
cmp word [rcx + 4], r15w
jne 0x1000638d9
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x100063903
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x28]
jmp 0x100063903
mov rax, qword [rbx + 0x1e8]
cmp rcx, rax
cmove rax, rdi
mov qword [rbx + 0x1e8], rax
mov rcx, rbx
call fcn.1000661d0
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], edi
mov edx, dword gs:[0x48]
mov rcx, qword [rsp + 0x28]
xor eax, eax
lock cmpxchg dword [rcx], edx
mov eax, edi
sete al
mov rsi, qword [rsp + 0x28]
test eax, eax
jne 0x100063944
mov rcx, rsi
call fcn.100057ac0
mov dword [rsp + 0x30], 1
mov qword [rbp + 0x98], rbx
mov eax, dword [rbx + 0x88]
mov dword [rbp + 0x154], eax
mov eax, dword [rbx + 0x8c]
mov dword [rbp + 0x158], eax
mov rax, qword [rbx + 0x90]
mov qword [rbp + 0x160], rax
mov rax, qword [rbx + 0x3a0]
mov qword [rbp + 0x168], rax
test rsi, rsi
je 0x10006398e
mov dword [rsi], edi
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1000639a2
mov rdi, qword [rcx + 0x1068]
mov qword [rbx + 0x388], rdi
mov qword [rbx + 0x218], rcx
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x390], rax
test rcx, rcx
je 0x1000639cd
mov eax, dword [rcx + 0xa98]
mov dword [rbx + 0x7c], eax
mov dword [rbx + 0x2a0], 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret