Function at 0x1400c88d0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12d, dword [rsp + 0xf8]
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [r8], 0
je 0x1400c8c84
mov r14, r9
mov rdi, r8
mov r13d, edx
mov rsi, rcx
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8947
movsxd rcx, dword [rsi + 0x300]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x304]
jne 0x1400c8947
cmp qword [rax + rcx], 0
jne 0x1400c8c84
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, r12d
jne 0x1400c8a34
mov rax, qword [0x1401fec00]
cmp rax, 1
jbe 0x1400c8d3a
mov eax, dword [0x1401febf8]
mov ecx, dword [0x1401f8a8c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c8a66
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8dd0
movsxd rcx, dword [0x1401febf0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401febf4]
jne 0x1400c8dd0
mov rbx, qword [rax + rcx]
test rbx, rbx
je 0x1400c8dae
mov qword [rsp + 0x68], rbx
mov eax, dword [0x1401fea20]
mov ecx, dword [0x1401f8a8c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c8cdf
mov rbp, qword [0x1401fea18]
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8dd7
movsxd rcx, dword [rbp]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbp + 4]
jne 0x1400c8dd7
mov rax, qword [rax + rcx]
test rbx, rbx
je 0x1400c8a34
cmp rbx, rax
jne 0x1400c8a9e
mov sil, 1
test byte [rdi], 8
jne 0x1400c8dde
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f32c0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401febf8]
call fcn.1400f0548
cmp dword [0x1401febf8], 0xffffffff
jne 0x1400c898c
lea rcx, [0x1401febf0]
xor edx, edx
call fcn.14000d6e0
lea rcx, [0x1401febf8]
call fcn.1400f07ac
jmp 0x1400c898c
cmp byte [rbx], 0
je 0x1400c8a34
mov r15, qword [0x1401fea18]
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c8dc6
movsxd rcx, dword [r15]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [r15 + 4]
movsxd rdx, dword [r15]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
lea r15, [rsi + 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c8da1
mov r10, qword [rsi + 0x110]
add rsi, 0x108
test r10, r10
je 0x1400c8c8b
movsxd r8, r12d
mov rax, r10
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r10
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r11, 0x101010101010101
imul r11, rax
shr r11, 0x38
cmp r11, 1
jbe 0x1400c8d2e
mov r9, r8
cmp r10, r8
ja 0x1400c8b82
mov rax, r8
xor edx, edx
div r10
mov r9, rdx
mov rax, qword [rsi]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x1400c8c8b
mov rcx, qword [rax]
test rcx, rcx
je 0x1400c8c8b
lea rbp, [r10 - 1]
mov rax, qword [rcx + 8]
cmp rax, r8
je 0x1400c8bd9
cmp r11d, 1
jbe 0x1400c8bd4
cmp rax, r10
jb 0x1400c8bbe
xor edx, edx
div r10
mov rax, rdx
cmp rax, r9
jne 0x1400c8c8b
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400c8ba2
jmp 0x1400c8c8b
and rax, rbp
jmp 0x1400c8bbe
cmp dword [rcx + 0x10], r12d
jne 0x1400c8bc7
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1401c8a80]
movaps xmmword [rbx], xmm0
lea rax, [0x1401ce69c]
lea r8, [rsp + 0x40]
mov qword [r8], rax
mov qword [r8 + 8], 1
lea r12, [rcx + 0x18]
movzx eax, byte [rcx + 0x2f]
test al, al
mov rbp, qword [rcx + 0x18]
cmovns rbp, r12
lea rdx, [rsp + 0x30]
mov qword [rdx], rbp
cmovs rax, qword [rcx + 0x20]
mov qword [rdx + 8], rax
mov dword [rsp + 0x20], 1
mov rcx, rbx
xor r9d, r9d
call fcn.1400c96e0
mov rdx, qword [rbx]
mov rbx, qword [rbx + 8]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x68]
mov rcx, rsi
mov r8, rbx
call fcn.140125510
cmp qword [rsi], rbx
je 0x1400c8d79
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c8cd1
mov qword [rsp + 0x58], rcx
call fcn.1400f0498
jmp 0x1400c8cd1
xor esi, esi
jmp 0x1400c8a40
lea r8, [rsp + 0xf8]
lea rax, [rsp + 0x78]
mov qword [rax], r8
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x1401d2d42]
lea r12, [rsp + 0x50]
mov rcx, rsi
mov rdx, r12
call fcn.140006f40
mov rcx, qword [r12]
add rcx, 0x18
mov rdx, rbx
call fcn.1400b7680
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1400c8a34
lea rcx, [0x1401fea20]
call fcn.1400f0548
cmp dword [0x1401fea20], 0xffffffff
jne 0x1400c89f4
mov ecx, 8
call fcn.1400f045c
mov r15, rax
mov qword [rax], 0
mov rcx, rax
xor edx, edx
call fcn.14000d6e0
mov qword [0x1401fea18], r15
lea rcx, [0x1401fea20]
call fcn.1400f07ac
jmp 0x1400c89f4
lea r9, [r10 - 1]
and r9, r8
jmp 0x1400c8b82
lea rcx, [0x1401fec00]
call fcn.14000d630
test al, al
je 0x1400c8dba
mov ecx, pe_nt_image_headers64
call fcn.1400f045c
mov rbx, rax
mov rcx, rax
call fcn.140007560
lea rcx, [0x1401fec00]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call fcn.14000d5b0
jmp 0x1400c8967
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je 0x1400c8d8f
mov rcx, r12
mov dl, 0x2c
call fcn.1400ca340
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.1400cc110
jmp 0x1400c8c6e
mov rcx, r15
call fcn.1400b0d10
jmp 0x1400c8aef
lea rbx, [0x1401d60e7]
jmp 0x1400c89ca
mov rax, qword [0x1401fec00]
jmp 0x1400c8967
call fcn.140001340
jmp 0x1400c8ac0
xor ebx, ebx
jmp 0x1400c89c1
xor eax, eax
jmp 0x1400c8a2a
mov rax, qword [rsp + 0x100]
mov r9, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov ecx, r13d
mov rdx, rdi
mov r8, r14
call fcn.140149b80
jmp 0x1400c8a40