Function at 0x14005f3d0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [0x14025efc0]
mov qword [rcx], rax
lea rax, [0x14025dcc8]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], 0
mov rax, qword [r9]
test rax, rax
jne 0x14005f62b
lea r14, [rsi + 0x18]
mov rcx, r14
mov rdx, rbx
call fcn.14005f820
mov qword [rsi + 0x28], 0
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 1
jbe 0x14005f7cf
mov eax, dword [0x1402a1940]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005f6aa
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005f7c7
mov rcx, qword [0x1402a1930]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a1938]
jne 0x14005f7c7
mov r15, qword [rax + rcx]
lea r12, [rsi + 8]
mov rax, qword [0x14028a5a0]
and rax, r15
cmp rax, qword [0x14028a588]
je 0x14005f665
lea rcx, [r15 + 0x468]
mov rdx, r12
call fcn.140022860
mov rax, qword [0x14028a5a0]
and rax, r15
cmp rax, qword [0x14028a588]
je 0x14005f7e3
mov eax, dword [0x1402a19b8]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005f6f8
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005f7c4
mov rcx, qword [0x1402a19a8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a19b0]
jne 0x14005f7c4
mov rax, qword [rax + rcx]
test rax, rax
je 0x14005f7c4
mov r15, qword [rax]
test r15, r15
je 0x14005f552
lock inc dword [r15 + 8]
mov rax, qword [r14]
inc rax
cmp rax, 1
ja 0x14005f624
movzx ebp, byte [rsi + 0x20]
xor ebp, 1
mov al, byte [rdi + 2]
lea rcx, [rsp + 0x30]
mov byte [rcx - 6], al
movzx eax, word [rdi]
mov word [rcx - 8], ax
lea rdx, [rdi + 8]
call fcn.14011be90
lea rcx, [rsp + 0x40]
lea rdx, [rdi + 0x18]
call fcn.14011be90
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x50]
lea r8, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
mov r9d, ebp
call fcn.14000f5a0
mov rax, qword [r14]
mov rcx, qword [rsi + 0x28]
mov qword [rsi + 0x28], rax
test rcx, rcx
jne 0x14005f7f0
mov rcx, qword [rsi + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x1401d7990.0]
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14005f672
mov rax, qword [rdi + 0x20]
inc rax
cmp rax, 2
jae 0x14005f78e
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 2
jae 0x14005f7a9
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401756e0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14005f569
mov ecx, 1
lock xadd dword [rax], ecx
test ecx, ecx
jle 0x14005f809
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x14005f41f
lock dec dword [rcx]
jne 0x14005f41f
mov rax, qword [rcx + 0x10]
call qword [case.0x1401d7990.0]
jmp 0x14005f41f
mov rcx, r15
call fcn.1400eaf60
jmp 0x14005f4bc
call fcn.1400f24d0
mov r14, qword [rbx]
cmp qword [0x1402a1a18], 0
je 0x14005f746
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401d7990.0]
mov qword [rbx], 0
jmp 0x14005f5e3
lea rcx, [0x1402a1940]
call fcn.140172b08
cmp dword [0x1402a1940], 0xffffffff
jne 0x14005f46c
mov qword [0x1402a1938], 0
lea rcx, [0x1402a1930]
mov qword [0x1402a1930], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a1940]
call fcn.140172aa8
jmp 0x14005f46c
lea rcx, [0x1402a19b8]
call fcn.140172b08
cmp dword [0x1402a19b8], 0xffffffff
jne 0x14005f507
mov qword [0x1402a19b0], 0
lea rcx, [0x1402a19a8]
mov qword [0x1402a19a8], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a19b8]
call fcn.140172aa8
jmp 0x14005f507
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005f80c
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14005f788
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x14005f688
xor ecx, ecx
mov dl, 1
jmp 0x14005f77e
call fcn.1400f24d0
mov rcx, qword [rdi + 0x20]
call fcn.1401571e0
mov qword [rdi + 0x20], 0
jmp 0x14005f5f4
call fcn.1400f24d0
mov rcx, qword [rdi + 0x10]
call fcn.1401571e0
mov qword [rdi + 0x10], 0
jmp 0x14005f605
int3
xor r15d, r15d
jmp 0x14005f4a1
mov rax, qword [rdi + 0x20]
inc rax
cmp rax, 1
ja 0x14005f447
int3
mov rcx, r15
call fcn.1400ebe70
jmp 0x14005f4e2
lock dec dword [rcx + 8]
jne 0x14005f5c3
mov edx, 1
call fcn.140046680
jmp 0x14005f5c3
int3
xor ecx, ecx
jmp 0x14005f77c