Function at 0x1000d9f10
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x250
mov qword [rax - 0xc0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
call fcn.100068a00
mov rdi, rax
mov r8, qword gs:[0x30]
lea rbx, [r8 + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000d9f6c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000d9f7d
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x1000d9fb5
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000d9fae
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rcx, qword [rdi + 0xd8]
mov rax, qword [rcx + 0x3f8]
lea rdx, [0x100061000]
mov qword [rcx + 0x3f8], rdx
mov qword [rsp + 0x60], rax
xor edx, edx
lea rax, [0x100062030]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x210]
call fcn.10005b410
nop
mov rax, qword [rsi + 0x1020]
mov rcx, qword [rax + 0x210]
mov qword [rsp + 0x88], rcx
lea rbx, [rsi + 0xf80]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x1e0], rbx
call fcn.100064800
mov r11d, eax
mov dword [rsp + 0x280], eax
mov dword [rsp + 0xc0], r15d
xor eax, eax
lock cmpxchg dword [rbx], r11d
mov dword [rsp + 0x100], eax
mov eax, r15d
sete al
mov dword [rsp + 0xd0], eax
mov rdi, qword [rsp + 0x50]
test eax, eax
jne 0x1000da072
mov dword [rsp + 0x70], 1
mov edx, dword [rsp + 0x280]
mov rcx, rdi
call fcn.100057ac0
mov edx, 1
mov dword [rsp + 0x58], edx
lea rax, [rsi + 0xf58]
mov qword [rsp + 0x130], rax
cmp qword [rax + 8], rax
mov rbx, r15
je 0x1000da097
mov rbx, qword [rax + 8]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x148], rbx
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x88]
test rbx, rbx
je 0x1000da102
cmp rbx, rcx
je 0x1000da0e1
cmp qword [rbx + 8], rax
jne 0x1000da0c6
mov rbx, r15
jmp 0x1000da0ca
mov rbx, qword [rbx + 8]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x200], rbx
mov qword [rsp + 0x30], rbx
jmp 0x1000da0b1
mov eax, 1
lock xadd dword [rbx + 0x20], eax
inc eax
mov dword [rsp + 0x114], eax
mov rbx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1000da11e
test edx, edx
je 0x1000da11e
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x1b8], rdi
mov dword [rdi], r15d
test rbx, rbx
je 0x1000da357
mov rdx, r14
mov rcx, rbx
call fcn.1000ce8a0
lea r11, [rbx + 0x10]
mov qword [rsp + 0xa8], r11
or eax, 0xffffffff
lock xadd dword [r11 + 0x10], eax
dec eax
mov dword [rsp + 0x118], eax
jne 0x1000da352
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 8], 0
je 0x1000da172
mov rcx, rax
call fcn.1000585a0
jmp 0x1000da352
add rax, 0xfffffffffffffff0
mov qword [rsp + 0x38], rax
add rax, 0xb0
mov qword [rsp + 0x168], rax
mov eax, dword [rax]
cmp eax, 2
jne 0x1000da243
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0xa0]
mov qword [rsp + 0x1e8], rcx
lea rdi, [rcx + 0xf80]
mov qword [rsp + 0xb8], rdi
call fcn.100064800
mov r11d, eax
mov dword [rsp + 0x288], eax
mov dword [rsp + 0x12c], r15d
xor eax, eax
lock cmpxchg dword [rdi], r11d
mov dword [rsp + 0x80], eax
mov eax, r15d
sete al
mov dword [rsp + 0xe0], eax
test eax, eax
jne 0x1000da20c
mov dword [rsp + 0x90], 1
mov edx, dword [rsp + 0x288]
mov rcx, qword [rsp + 0xb8]
call fcn.100057ac0
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x178], rcx
mov rax, qword [rbx]
mov qword [rsp + 0x1c8], rax
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rbx + 8], r15
mov qword [rbx], r15
mov qword [rsp + 0x188], rdi
mov dword [rdi], r15d
jmp 0x1000da248
mov rbx, qword [rsp + 0x38]
call fcn.100058010
mov qword [rsp + 0x208], rax
test rax, rax
je 0x1000da286
mov rax, qword [rax + 0x1e8]
mov qword [rsp + 0x198], rax
cmp rax, rbx
jne 0x1000da286
test rbx, rbx
lea rcx, [rbx - 8]
jne 0x1000da27a
mov rcx, r15
xor edx, edx
call fcn.100058e50
jmp 0x1000da352
test rbx, rbx
je 0x1000da291
add rbx, 0xfffffffffffffff8
jmp 0x1000da294
mov rbx, r15
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0x1d8], rbx
test rbx, rbx
je 0x1000da352
lea rax, [0x100002a88]
mov qword [rbx], rax
lea rcx, [rbx + 8]
call fcn.100058db0
mov rax, rbx
and rax, 0xffffffffffffe000
mov qword [rsp + 0xd8], rax
mov edx, 0x200
je 0x1000da2ea
cmp word [rax + 4], dx
jne 0x1000da2ea
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xd8], rax
mov rax, qword [rax + 8]
mov qword [rsp + 0x138], rax
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x140], rcx
dec rcx
not rcx
and rcx, rbx
mov qword [rsp + 0xe8], rcx
je 0x1000da327
cmp word [rcx + 4], dx
jne 0x1000da327
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0x150], rcx
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x160], rcx
mov qword [rsp + 0x170], rcx
test byte [rcx + 0x28], 8
jne 0x1000da352
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x210]
call fcn.10005b4f0
nop
call fcn.100068a00
mov rdi, rax
mov rcx, qword gs:[0x30]
lea rbx, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000da391
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000da3a2
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1000da3da
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000da3d3
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
cmp dword [rax + 0x204], 0
je 0x1000da3e9
call fcn.1000618f0
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000da414
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000da425
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x1000da45c
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000da455
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
mov rax, qword [rsp + 0x60]
mov qword [rcx + 0x3f8], rax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret