Function at 0x140152b10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x140152c56
test byte [0x14029c830], 0x19
jne 0x140152d00
mov dil, 1
cmp qword [rsi + 0x48], 0
jne 0x140152c3f
mov eax, dword [0x1402a54e0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140152c64
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140152bba
mov rcx, qword [0x1402a54d0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a54d8]
jne 0x140152bba
mov rax, qword [rax + rcx]
test rax, rax
je 0x140152bba
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x70], rcx
mov eax, dword [rax + 8]
mov dword [rsi + 0x68], eax
mov eax, dword [0x1402a54b0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140152cb2
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140152c3f
mov rcx, qword [0x1402a54a0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a54a8]
jne 0x140152c3f
mov rax, qword [rax + rcx]
test rax, rax
je 0x140152c3f
mov rcx, qword [rax + 0x20]
mov qword [rsi + 0x48], rcx
movups xmm0, xmmword [rax + 0x48]
mov rcx, qword [rax + 0x58]
mov qword [rsi + 0x60], rcx
movups xmmword [rsi + 0x50], xmm0
mov dil, 1
cmp byte [rax + 0x7c], 0
mov cl, 1
jne 0x140152c3c
cmp qword [rax + 0x60], 0
setne cl
mov byte [rsi + 0x7c], cl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14017e7b0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
cmp r8b, 2
je 0x140152d81
xor edi, edi
jmp 0x140152c3f
lea rcx, [0x1402a54e0]
call fcn.14017b2bc
cmp dword [0x1402a54e0], 0xffffffff
jne 0x140152b7a
mov qword [0x1402a54d8], 0
lea rcx, [0x1402a54d0]
mov qword [0x1402a54d0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a54e0]
call fcn.14017b25c
jmp 0x140152b7a
lea rcx, [0x1402a54b0]
call fcn.14017b2bc
cmp dword [0x1402a54b0], 0xffffffff
jne 0x140152bdf
mov qword [0x1402a54a8], 0
lea rcx, [0x1402a54a0]
mov qword [0x1402a54a0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a54b0]
call fcn.14017b25c
jmp 0x140152bdf
add edi, 8
mov eax, dword [rsi + 0x78]
shl rax, 0x20
and edi, 0xfffffff8
or rdi, rax
xor rdi, qword [0x14029f540]
lea rax, [0x140074fa0]
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x18], rax
lea rax, [0x140278c88]
mov qword [rbx + 0x20], rax
mov qword [rbx + 8], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, [0x14029c830]
lea r8, str.ThreadPool_PostTask
lea r9, [0x1402780e8]
mov cl, 0x49
call fcn.140075040
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + 8]
test rax, rax
je 0x140152b47
mov rcx, qword [rsp + 0x38]
call qword [case.0x1401e7f70.0]
jmp 0x140152b47
cmp qword [rsi + 0x30], 0
jne 0x140152c60
lea rbx, [rdi + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140152dab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140152b3a
mov rcx, rbx
call fcn.1400fdfc0
jmp 0x140152d9d