Function at 0x140043ae0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140076fcc
mov r15d, dword [rax]
call fcn.140076fcc
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [0x14013a348]
cmp rbx, 1
jbe 0x140043c15
mov rbp, qword [rsi + 8]
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140043c62
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rbp
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140043b7f
cmp qword [rsi + 8], 0
jne 0x140043b7f
call fcn.140074f40
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140076fcc
mov dword [rax], r15d
cmp byte [rsi + 0x38], 0
je 0x140043ba2
mov rdi, qword [rsi + 0x48]
test rdi, rdi
jne 0x140043bcd
mov byte [rsi + 0x38], 0
add rsi, 0x18
mov rcx, rsi
call fcn.14003e3c0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079ea0
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [fcn.140049dd0]
mov r14, qword [rsi + 0x40]
mov rdx, qword [rbx]
mov rbp, rdx
sub rbp, r14
cmp rbp, 0xf4240
jge 0x140043c75
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x140043b9e
lock dec dword [rdi]
jne 0x140043b9e
mov rcx, rdi
call fcn.1400ab9b0
mov rcx, rdi
call fcn.140076eb8
jmp 0x140043b9e
lea rcx, [0x14013a348]
call fcn.1400498e0
test al, al
je 0x140043dc4
mov qword [0x14013a350], 0
lea r14, [0x14013a348]
lea rbx, [0x14013a350]
mov rcx, rbx
xor edx, edx
call fcn.14003f000
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.1400498c0
jmp 0x140043b38
test rbp, rbp
je 0x140043b6b
call fcn.140006d10
jmp 0x140043b52
mov r8, qword [rdi + 0x1f0]
mov ecx, 0x3938700
xor ebx, ebx
mov eax, 0x3938700
add rax, r8
setns bl
movabs rax, 0x7fffffffffffffff
add rax, rbx
add rcx, r8
cmovo rcx, rax
cmp rcx, rdx
jg 0x140043cd1
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000d520
mov rbx, qword [rbx]
test rbx, rbx
je 0x140043cd1
lock dec dword [rbx]
jne 0x140043cd1
mov rcx, rbx
call fcn.1400ab9b0
mov rcx, rbx
call fcn.140076eb8
movabs rbx, 0x8000000000000001
sub r14, qword [rdi + 0x1f0]
lea rax, [r14 + rbx]
cmp rax, 2
jb 0x140043cf3
cvtsi2sd xmm0, r14
jmp 0x140043d04
shr r14, 0x3f
lea rax, [0x1401175f0]
movsd xmm0, qword [rax + r14*8]
divsd xmm0, qword [0x140117e58]
call fcn.1400a4ddc
movsd xmm6, qword [0x14011f100]
ucomisd xmm6, xmm0
jae 0x140043d35
xor eax, eax
ucomisd xmm0, qword [0x14011f108]
mov r14d, 0x7fffffff
cmovb r14d, eax
jmp 0x140043d42
maxsd xmm0, qword [0x14011f108]
cvttsd2si r14d, xmm0
add rbx, rbp
cmp rbx, 2
jb 0x140043d5d
xorps xmm0, xmm0
cvtsi2sd xmm0, rbp
divsd xmm0, qword [0x140117e58]
jmp 0x140043d65
movsd xmm0, qword [0x14011f110]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jae 0x140043d7e
addsd xmm0, qword [0x14011f118]
call fcn.1400a48f0
jmp 0x140043d8b
addsd xmm0, qword [0x140107b00]
call fcn.1400a4ddc
ucomisd xmm6, xmm0
jae 0x140043da7
xor eax, eax
ucomisd xmm0, qword [0x14011f108]
mov r8d, 0x7fffffff
cmovb r8d, eax
jmp 0x140043db4
maxsd xmm0, qword [0x14011f108]
cvttsd2si r8d, xmm0
mov rcx, rdi
mov edx, r14d
call fcn.1400f3e80
jmp 0x140043bf5
mov rbx, qword [0x14013a348]
jmp 0x140043b38