Function at 0x140019c10
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, r9d
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [0x14016bab0]
cmp rbx, 1
jbe 0x140019e5c
mov rcx, rbx
call fcn.140020c10
mov qword [rsi], rax
mov rbx, qword [0x14016baf0]
cmp rbx, 1
jbe 0x140019e99
mov rcx, rbx
call fcn.140020c10
mov qword [rsi + 8], rax
mov cl, 1
cmp r14d, 1
je 0x140019c84
test rax, rax
je 0x140019c82
mov cl, byte [rax + 0x10]
jmp 0x140019c84
xor ecx, ecx
mov byte [rsi + 0x10], cl
lea rbx, [rsi + 0x18]
mov rdx, qword [rdi + 0x18]
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor r8d, r8d
mov r9d, 0x11be9915
call fcn.1400a5e60
mov byte [rsi + 0x38], 0
mov rdi, qword [0x14016baf0]
cmp rdi, 1
jbe 0x140019ed6
mov ecx, dword [0x140166310]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140019f13
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
call fcn.1400d60c0
test al, al
jne 0x140019cfe
call fcn.140050120
test al, al
jne 0x140019d6b
test ebp, ebp
jne 0x140019d08
cmp byte [rsi + 0x10], 0
je 0x140019d3f
mov rax, qword [rsi + 8]
test rax, rax
je 0x140019d6b
cmp byte [rax + 0x38], 1
jne 0x140019d6b
mov rdi, qword [rax + 0x48]
mov qword [rax + 0x48], 0
test rdi, rdi
je 0x140019d6b
lock dec dword [rdi]
jne 0x140019d6b
mov rcx, rdi
call fcn.14007b3b0
mov rcx, rdi
call fcn.140105028
jmp 0x140019d6b
cmp qword [rsi + 8], 0
jne 0x140019d6b
cmp byte [rsi + 0x38], 0
jne 0x140019f1d
lea rcx, [rsi + 0x40]
call qword [fcn.140011510]
lea rcx, [rsi + 0x48]
mov rdx, qword [rsi + 0x40]
call fcn.14007c640
mov byte [rsi + 0x38], 1
mov rcx, qword [rsi]
test rcx, rcx
je 0x140019d97
mov rax, qword [rsi + 8]
test rax, rax
je 0x140019d8f
cmp r14d, 1
jne 0x140019d97
cmp byte [rax + 0x10], 0
jne 0x140019d97
call fcn.1400dd620
jmp 0x140019d97
mov edx, r14d
call fcn.140104600
mov rcx, rbx
call fcn.140100780
test al, al
je 0x140019e3f
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi], rax
mov rcx, rdi
call qword [fcn.140011510]
mov rcx, rbx
call fcn.1400a54a0
mov rbx, rax
mov rax, qword [rdi]
lea rdi, [rsp + 0x48]
mov qword [rdi], rax
lea rax, str.timestamp_us
lea rbp, [rsp + 0x38]
mov qword [rbp], rax
mov qword [rbp + 8], 0xc
mov r15d, 8
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rbp
mov r8b, 8
mov r9, rdi
call fcn.1400a4da0
movsxd rax, r14d
mov qword [rdi], rax
lea rax, str.blocking_type
mov qword [rbp], rax
mov qword [rbp + 8], 0xd
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov rcx, rbx
mov r8b, 8
call fcn.1400a4da0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140107cc0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14016bab0]
call fcn.14000c730
test al, al
je 0x140019f5b
mov eax, 0xffffffff
mov qword [0x14016bab8], rax
lea rbx, [0x14016bab8]
mov rcx, rbx
xor edx, edx
call fcn.14002ec50
mov qword [0x14016bab0], rbx
jmp 0x140019c48
lea rcx, [0x14016baf0]
call fcn.14000c730
test al, al
je 0x140019f67
mov eax, 0xffffffff
mov qword [0x14016baf8], rax
lea rbx, [0x14016baf8]
mov rcx, rbx
xor edx, edx
call fcn.14002ec50
mov qword [0x14016baf0], rbx
jmp 0x140019c64
lea rcx, [0x14016baf0]
call fcn.14000c730
test al, al
je 0x140019f73
mov eax, 0xffffffff
mov qword [0x14016baf8], rax
lea rdi, [0x14016baf8]
mov rcx, rdi
xor edx, edx
call fcn.14002ec50
mov qword [0x14016baf0], rdi
jmp 0x140019cbd
call fcn.140021dc0
jmp 0x140019cd3
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x140019f52
lea rbp, [rsp + 0x38]
mov rcx, rbp
call qword [fcn.140011510]
mov rdx, qword [rsi + 0x40]
mov r8, qword [rbp]
mov rcx, rdi
call fcn.140018f50
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x140019f52
lock dec dword [rdi]
je 0x140019f7f
mov byte [rsi + 0x38], 0
jmp 0x140019d50
mov rbx, qword [0x14016bab0]
jmp 0x140019c48
mov rbx, qword [0x14016baf0]
jmp 0x140019c64
mov rdi, qword [0x14016baf0]
jmp 0x140019cbd
mov rcx, rdi
call fcn.14007b3b0
mov rcx, rdi
call fcn.140105028
jmp 0x140019f52