Function at 0x1000d91e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x738]
sub rsp, 0x838
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rbp + 0x720], rax
mov eax, dword [rdx + 0xb0]
xor r12d, r12d
mov r14d, r9d
mov r13d, r8d
mov rdi, rdx
mov rsi, rcx
cmp eax, 2
jne 0x1000d926b
call fcn.1000737c0
test eax, eax
je 0x1000d9634
lea rcx, [rbp + 0x280]
call fcn.100073770
lea rcx, [rbp + 0x280]
mov rdx, rdi
call fcn.1000737e0
lea rcx, [rbp + 0x280]
mov dl, 2
call fcn.1000737f0
lea rcx, [rbp + 0x280]
call fcn.100073800
jmp 0x1000d9634
mov eax, dword [rdx + 0xb0]
test eax, eax
jne 0x1000d92c5
cmp qword [rdx + 0xa0], rcx
jne 0x1000d928a
add rcx, 0xf00
call fcn.1000d4690
call fcn.1000737c0
test eax, eax
je 0x1000d9634
lea rcx, [rbp + 0x30]
call fcn.100073770
lea rcx, [rbp + 0x30]
mov rdx, rdi
call fcn.1000737e0
lea rcx, [rbp + 0x30]
mov dl, 1
call fcn.1000737f0
lea rcx, [rbp + 0x30]
call fcn.100073800
jmp 0x1000d9634
mov qword [rsp + 0x880], rbx
mov qword [rsp + 0x830], r15
call fcn.100058010
test rax, rax
je 0x1000d9365
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov r15, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000d930f
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000d9320
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1000d9358
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov r15, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000d9351
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp rdi, qword [rax + 0x210]
je 0x1000d9455
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rsi + 0xfb8], edx
je 0x1000d9384
lea rcx, [rsi + 0xfb8]
call fcn.100062e30
cmp qword [rdi + 0x140], r12
jne 0x1000d9420
lock inc dword [rdi + 0x20]
mov dword [rdi + 0x148], r13d
mov dword [rdi + 0x14c], r14d
lea rdx, [rsi + 0xfc0]
mov rax, qword [rdx]
lea rcx, [rdi + 0x138]
xor r13d, r13d
mov qword [rcx], rax
mov rax, qword [rdx]
mov qword [rax + 8], rcx
mov qword [rdx], rcx
mov qword [rcx + 8], rdx
mov dword [rsi + 0xfb8], r13d
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rsi + 0xae8], edx
je 0x1000d93ee
lea rcx, [rsi + 0xae8]
call fcn.1000d2ce0
cmp dword [rsi + 0x10a0], r12d
jne 0x1000d940a
mov eax, dword [rsi + 0xaec]
test eax, eax
je 0x1000d9410
cmp dword [rsi + 0xaf0], r12d
jne 0x1000d9410
mov r12d, 1
mov dword [rsi + 0xaec], r13d
mov dword [rsi + 0xae8], r13d
jmp 0x1000d9458
mov dword [rsi + 0xfb8], r12d
cmp dword [rdi + 0x14c], r12d
je 0x1000d943e
test r14d, r14d
je 0x1000d9447
cmp r14d, dword [rdi + 0x100]
je 0x1000d9447
cmp dword [rdi + 0x148], 2
jne 0x1000d9455
mov dword [rdi + 0x14c], r14d
mov dword [rdi + 0x148], r13d
xor r13d, r13d
call fcn.1000737c0
test eax, eax
je 0x1000d9496
lea rcx, [rbp + 0x4d0]
call fcn.100073770
lea rcx, [rbp + 0x4d0]
mov rdx, rdi
call fcn.1000737e0
lea rcx, [rbp + 0x4d0]
xor edx, edx
call fcn.1000737f0
lea rcx, [rbp + 0x4d0]
call fcn.100073800
cmp qword [rsi + 0x6ed8], 0
je 0x1000d9617
call fcn.10011b7d0
test eax, eax
je 0x1000d94bf
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rsp + 0x28]
jmp 0x1000d94c7
mov rbx, qword [0x7ffe0008]
mov r15, qword [rdi + 0x98]
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov r14, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x1000d94fa
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x1000d950b
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x1000d9543
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov r14, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x1000d953c
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
xor ecx, ecx
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 0x6ed8]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], r13d
mov dword [rbp + 0x18], r13d
mov qword [rbp + 0x20], r13
cmp qword [rbx + 0x40], rcx
je 0x1000d95ef
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0xa8
call sub.MSVCR100.dll_memset
call fcn.10006b740
mov edx, 0x10
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x68]
lea ecx, [rdx - 0xf]
call rax
mov ecx, dword [rbp - 0x70]
movzx r11d, ax
mov eax, ecx
shl eax, 0xf
mov dword [rbp + 0x18], r11d
not eax
add ecx, eax
mov eax, ecx
shr eax, 0xa
xor eax, ecx
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, ecx
shr eax, 0x10
xor ecx, eax
mov dword [rbp - 0x70], ecx
call fcn.10006ec80
test eax, eax
je 0x1000d9606
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.1000f74a0
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1000f5f90
mov r15, qword [rsp + 0x830]
mov rbx, qword [rsp + 0x880]
test r12d, r12d
je 0x1000d9634
mov rcx, rsi
call fcn.1000d76c0
mov rcx, qword [rbp + 0x720]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x838
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret