Function at 0x1400147f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14d, r9d
mov r15d, r8d
mov rbp, rdx
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [0x140178b80]
cmp rbx, 1
jbe 0x140014a42
mov rcx, rbx
call fcn.14000aaf0
mov qword [rsi], rax
mov rbx, qword [0x140178bc0]
cmp rbx, 1
jbe 0x140014a7f
mov rcx, rbx
call fcn.14000aaf0
mov qword [rsi + 8], rax
mov cl, 1
cmp r15d, 1
je 0x140014864
test rax, rax
je 0x140014862
mov cl, byte [rax + 0x10]
jmp 0x140014864
xor ecx, ecx
mov byte [rsi + 0x10], cl
lea rbx, [rsi + 0x18]
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor r8d, r8d
mov r9d, 0x11be9915
call fcn.1400a19c0
mov byte [rsi + 0x38], 0
mov rbp, qword [0x140178bc0]
cmp rbp, 1
jbe 0x140014abc
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140014af9
movsxd rcx, dword [rbp]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rbp + 4]
movsxd rdx, dword [rbp]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
call fcn.1400cfba0
test al, al
jne 0x1400148e0
call fcn.140049670
test al, al
jne 0x14001494f
test r14d, r14d
jne 0x1400148eb
cmp byte [rsi + 0x10], 0
je 0x140014923
mov rax, qword [rsi + 8]
test rax, rax
je 0x14001494f
cmp byte [rax + 0x38], 1
jne 0x14001494f
mov rbp, qword [rax + 0x48]
mov qword [rax + 0x48], 0
test rbp, rbp
je 0x14001494f
lock dec dword [rbp]
jne 0x14001494f
mov rcx, rbp
call fcn.140078450
mov rcx, rbp
call fcn.14010b880
jmp 0x14001494f
cmp qword [rsi + 8], 0
jne 0x14001494f
cmp byte [rsi + 0x38], 0
jne 0x140014b0c
lea rcx, [rsi + 0x40]
call qword [fcn.14000c860]
lea rcx, [rsi + 0x48]
mov rdx, qword [rsi + 0x40]
call fcn.140077de0
mov byte [rsi + 0x38], 1
mov rcx, qword [rsi]
test rcx, rcx
je 0x14001497b
mov rax, qword [rsi + 8]
test rax, rax
je 0x140014973
cmp r15d, 1
jne 0x14001497b
cmp byte [rax + 0x10], 0
jne 0x14001497b
call fcn.1400d7300
jmp 0x14001497b
mov edx, r15d
call fcn.14010af90
mov rcx, rbx
call fcn.140100d00
test al, al
je 0x140014a25
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x30]
mov qword [rbp], rax
mov rcx, rbp
call qword [fcn.14000c860]
mov rcx, rbx
call fcn.1400a0ff0
mov rbx, rax
mov rax, qword [rbp]
lea rbp, [rsp + 0x48]
mov qword [rbp], rax
lea rax, str.timestamp_us
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
mov qword [rdi + 8], 0xc
mov r14d, 8
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
mov r8b, 8
mov r9, rbp
call fcn.1400a08f0
movsxd rax, r15d
mov qword [rbp], rax
lea rax, str.blocking_type
mov qword [rdi], rax
mov qword [rdi + 8], 0xd
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov rcx, rbx
mov r8b, 8
call fcn.1400a08f0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010e4a0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140178b80]
call fcn.140022080
test al, al
je 0x140014b4a
mov eax, 0xffffffff
mov qword [0x140178b88], rax
lea rbx, [0x140178b88]
mov rcx, rbx
xor edx, edx
call fcn.14001c0c0
mov qword [0x140178b80], rbx
jmp 0x140014828
lea rcx, [0x140178bc0]
call fcn.140022080
test al, al
je 0x140014b56
mov eax, 0xffffffff
mov qword [0x140178bc8], rax
lea rbx, [0x140178bc8]
mov rcx, rbx
xor edx, edx
call fcn.14001c0c0
mov qword [0x140178bc0], rbx
jmp 0x140014844
lea rcx, [0x140178bc0]
call fcn.140022080
test al, al
je 0x140014b62
mov eax, 0xffffffff
mov qword [0x140178bc8], rax
lea rbp, [0x140178bc8]
mov rcx, rbp
xor edx, edx
call fcn.14001c0c0
mov qword [0x140178bc0], rbp
jmp 0x14001489d
test rsi, rsi
je 0x1400148ce
call fcn.14000bf20
jmp 0x1400148b3
mov rbp, qword [rsi + 0x48]
test rbp, rbp
je 0x140014b41
lea r14, [rsp + 0x38]
mov rcx, r14
call qword [fcn.14000c860]
mov rdx, qword [rsi + 0x40]
mov r8, qword [r14]
mov rcx, rbp
call fcn.14000a8e0
mov rbp, qword [rsi + 0x48]
test rbp, rbp
je 0x140014b41
lock dec dword [rbp]
je 0x140014b6e
mov byte [rsi + 0x38], 0
jmp 0x140014934
mov rbx, qword [0x140178b80]
jmp 0x140014828
mov rbx, qword [0x140178bc0]
jmp 0x140014844
mov rbp, qword [0x140178bc0]
jmp 0x14001489d
mov rcx, rbp
call fcn.140078450
mov rcx, rbp
call fcn.14010b880
jmp 0x140014b41