Function at 0x1000e5d40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rdi, qword [rsp + 0x80]
mov rsi, rcx
test rdi, rdi
jne 0x1000e5d62
mov r8, r9
call fcn.1000e6850
mov rdi, rax
test byte [rsi + 0x5e0], 0x10
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x38], r14
je 0x1000e5eb5
mov r14, qword [rdi + 0xa0]
mov qword [rsp + 0x30], r15
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x110]
mov r15, rax
test byte [rax + 0x40], 2
je 0x1000e5eb0
mov qword [rsp + 0x40], r13
mov r13, qword [rax + 0x28]
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000e5dd7
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000e5de8
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1000e5e1f
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1000e5e18
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp rax, r13
jne 0x1000e5eab
mov rbp, qword [r13 + 0x210]
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x78], r12
mov r12d, dword [r13 + 0x1f8]
call fcn.1000e7990
mov r14, rax
test rax, rax
je 0x1000e5e97
cqo
mov ecx, r12d
and edx, 0x1fff
lea rbx, [rdx + rax]
sar rbx, 0xd
call fcn.100083490
mov r9d, 2
lea r8d, [r9 - 1]
mov rcx, rax
mov rdx, rbx
call fcn.1000827b0
sub qword [rbp + 0x178], r14
cmp r12d, 0x40
je 0x1000e5e90
sub qword [rbp + r12*8 + 0x1a8], r14
sub qword [rbp + 0x1a0], r14
mov eax, dword [r15 + 0x40]
mov r12, qword [rsp + 0x78]
mov ecx, eax
xor ecx, 2
and ecx, eax
mov dword [r15 + 0x40], ecx
mov r13, qword [rsp + 0x40]
mov r15, qword [rsp + 0x30]
mov r8d, dword [rsi + 0x5e0]
mov edx, 0x80000000
and r8d, 0xfffffff8
shl r8d, 0x1c
cmp dword [rsp + 0x88], 0
je 0x1000e5f32
nop word [rax + rax]
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
dec dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
cmp eax, 1
jne 0x1000e5f1b
mov eax, dword [rdi + 0x60]
mov dword [rsp + 0x84], eax
or dword [rsp + 0x80], r8d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
lock cmpxchg qword [rdi + 0x18], rcx
jne 0x1000e5ee0
jmp 0x1000e5f78
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
dec dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
cmp eax, 1
jne 0x1000e5f63
or dword [rsp + 0x80], r8d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
lock cmpxchg qword [rdi + 0x18], rcx
jne 0x1000e5f32
mov eax, dword [rsp + 0x80]
xor ebx, ebx
test edx, eax
je 0x1000e5f96
mov eax, dword [rsp + 0x80]
btr eax, 0x1f
cmp eax, 1
cmove edx, ebx
test edx, edx
jne 0x1000e5fc2
lea rcx, [rdi + 0x40]
or eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000e5fc2
cmp qword [rcx + 8], 0
je 0x1000e5fb8
call fcn.1000e48d0
jmp 0x1000e5fc2
mov rax, qword [rcx - 0x40]
add rcx, 0xffffffffffffffc0
call qword [rax]
test byte [rsi + 0x5e0], 8
jne 0x1000e606e
mov ebp, dword [rsi + 0xa00]
mov rax, qword [rsi + 0x980]
and ebp, 1
mov qword [rsp + 0x60], rax
lock or dword [rsp], 0
mov rax, qword [rsi + 0x940]
lea rdi, [rsi + 0x660]
mov qword [rsp + 0x80], rax
mov r14, qword [rsp + 0x80]
mov rax, qword [rsp + 0x60]
sub r14, rax
call fcn.100068bb0
test byte [rax + 0xbc], 2
jne 0x1000e606e
test ebp, ebp
jne 0x1000e6040
test byte [rsi + 0x140], 1
jne 0x1000e6040
cmp dword [rdi + 0x94], 1
jne 0x1000e606e
lea edx, [rbp + 1]
mov rcx, rdi
call fcn.100116940
jmp 0x1000e606b
mov ebx, dword [rdi + 4]
mov eax, 0x400
mov r9, r14
inc ebx
mov edx, 1
mov rcx, rdi
cmp ebx, eax
mov qword [rsp + 0x20], 0xffffffffffffffff
cmova ebx, eax
mov r8d, ebx
call fcn.100116900
mov dword [rdi + 4], ebx
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
add rsp, 0x48
pop rdi
pop rsi
ret