Function at 0x140223680
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r13, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [rcx + 0x70]
mov rax, qword [r13 + 0x128]
mov al, byte [rax + 0x39]
mov byte [rsp + 0x27], al
sub rcx, qword [r13 + 0x68]
je 0x14022396e
sar rcx, 4
call fcn.140223df0
mov r15, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov al, byte [r13 + 0x80]
test al, 1
jne 0x140223d24
mov rsi, qword [r13 + 0x68]
shl r15, 4
add r15, rsi
cmp r15, qword [r13 + 0x70]
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x38], r15
je 0x14022397a
mov rdx, r15
mov al, byte [rdx + 9]
test al, 1
jne 0x14022389d
mov al, byte [rdx + 8]
test al, 1
jne 0x140223870
mov byte [rdx + 8], 1
mov qword [rsp + 0x30], rdx
mov rax, qword [rdx]
mov rdx, 0xffffffffffe00000
and rax, rdx
xor ecx, ecx
test byte [r13 + 8], 1
sete cl
shl rcx, 0xe
add rax, rcx
add rax, 0x4000
mov qword [rsp + 0x48], rax
and rax, rdx
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov rbp, qword [rax + rcx*8]
test rbp, rbp
je 0x14022384e
mov r15, qword [rsp + 0x28]
shl r15, 0xa
add r15, qword [rsp + 0x40]
mov r13, r15
shr r13, 0xc
and r13d, 0x1fffff
lea r14, [r13 + 1]
mov rax, r15
and rax, 0xffffffffffe00000
mov rcx, r15
shr rcx, 9
and ecx, 0xfe0
lea r12, [rax + rcx]
add r12, 0x1000
mov rbx, r15
movabs rax, 0xfffffffe00000000
and rbx, rax
add rbx, r13
movzx ecx, byte [r12 + 0x1e]
mov rax, rcx
neg rax
shl rcx, 5
neg rcx
cmp byte [r12 + rcx + 0x1d], 0
jne 0x140223865
shl rax, 5
mov rax, qword [r12 + rax + 0x10]
mov edi, dword [rax + 0x18]
bsf rsi, rbp
cmp byte [rsp + 0x27], 0
jne 0x140223815
mov rcx, rsi
shl rcx, 4
or rcx, r15
xor edx, edx
mov r8, rdi
call fcn.140117f60
add rdi, 0xfff
shr rdi, 0xc
je 0x14022383d
add rdi, r13
cmp rdi, r14
ja 0x14022382d
mov rdi, r14
sub rdi, r13
mov rcx, rbx
mov dl, 1
mov r8, rdi
call fcn.140117f60
mov rax, 0xfffffffffffffffe
mov ecx, esi
rol rax, cl
and rbp, rax
jne 0x1402237cf
mov rcx, qword [rsp + 0x28]
inc rcx
cmp rcx, 0x800
jne 0x140223764
jmp 0x14022388a
shl rax, 5
mov rdi, qword [r12 + rax + 0x20]
jmp 0x1402237f6
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x1402238b0
mov qword [rbx], rdx
add rbx, 8
mov qword [rsp + 0x68], rbx
jmp 0x14022389d
mov rdx, qword [rsp + 0x30]
mov byte [rdx + 9], 1
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x38]
add rdx, 0x10
cmp rdx, qword [r13 + 0x70]
jne 0x140223712
jmp 0x140223976
sub rbx, qword [rsp + 0x60]
mov rbp, rbx
sar rbp, 3
lea rax, [rbp + 1]
movabs rcx, 0x1fffffffffffffff
cmp rax, rcx
ja 0x140223dd9
sar rbx, 2
cmp rbx, rax
cmovb rbx, rax
movabs rax, 0xfffffffffffffff
cmp rbp, rax
cmovae rbx, rcx
test rbx, rbx
jne 0x14022395b
xor r12d, r12d
lea rdi, [r12 + rbp*8]
mov qword [rdi], rdx
mov r14, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
sub r8, r14
sub rdi, r8
test r8, r8
jle 0x140223924
mov rcx, rdi
mov rsi, rdx
mov rdx, r14
call fcn.1401178b0
mov rdx, rsi
lea rax, [r12 + rbx*8]
lea rcx, [r12 + rbp*8]
add rcx, 8
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
test r14, r14
je 0x14022389d
mov rcx, r14
mov rsi, rdx
call fcn.1400096d0
mov rdx, rsi
jmp 0x14022389d
mov rcx, rbx
mov rsi, rdx
call fcn.140223e80
mov rdx, rsi
mov r12, rax
jmp 0x1402238f7
xor r15d, r15d
jmp 0x1402236d0
mov rsi, qword [r13 + 0x68]
cmp rsi, r15
je 0x140223bb9
mov al, byte [rsi + 9]
test al, 1
jne 0x140223b0d
mov al, byte [rsi + 8]
test al, 1
jne 0x140223ae0
mov byte [rsi + 8], 1
mov qword [rsp + 0x30], rsi
mov rax, qword [rsi]
mov rdx, 0xffffffffffe00000
and rax, rdx
xor ecx, ecx
test byte [r13 + 8], 1
sete cl
shl rcx, 0xe
add rax, rcx
add rax, 0x4000
mov qword [rsp + 0x48], rax
and rax, rdx
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov r13, qword [rax + rcx*8]
test r13, r13
je 0x140223abe
mov r15, qword [rsp + 0x28]
shl r15, 0xa
add r15, qword [rsp + 0x40]
mov rbp, r15
shr rbp, 0xc
and ebp, 0x1fffff
lea rbx, [rbp + 1]
mov rax, r15
and rax, 0xffffffffffe00000
mov rcx, r15
shr rcx, 9
and ecx, 0xfe0
lea r12, [rax + rcx]
add r12, 0x1000
mov r14, r15
movabs rax, 0xfffffffe00000000
and r14, rax
add r14, rbp
movzx ecx, byte [r12 + 0x1e]
mov rax, rcx
neg rax
shl rcx, 5
neg rcx
cmp byte [r12 + rcx + 0x1d], 0
jne 0x140223ad5
shl rax, 5
mov rax, qword [r12 + rax + 0x10]
mov edi, dword [rax + 0x18]
bsf rsi, r13
cmp byte [rsp + 0x27], 0
jne 0x140223a85
mov rcx, rsi
shl rcx, 4
or rcx, r15
xor edx, edx
mov r8, rdi
call fcn.140117f60
add rdi, 0xfff
shr rdi, 0xc
je 0x140223aad
add rdi, rbp
cmp rdi, rbx
ja 0x140223a9d
mov rdi, rbx
sub rdi, rbp
mov rcx, r14
mov dl, 1
mov r8, rdi
call fcn.140117f60
mov rax, 0xfffffffffffffffe
mov ecx, esi
rol rax, cl
and r13, rax
jne 0x140223a3f
mov rcx, qword [rsp + 0x28]
inc rcx
cmp rcx, 0x800
jne 0x1402239d5
jmp 0x140223afa
shl rax, 5
mov rdi, qword [r12 + rax + 0x20]
jmp 0x140223a66
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rsp + 0x70]
je 0x140223b16
mov qword [rbx], rsi
add rbx, 8
mov qword [rsp + 0x68], rbx
jmp 0x140223b0d
mov rsi, qword [rsp + 0x30]
mov byte [rsi + 9], 1
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x38]
add rsi, 0x10
jmp 0x14022397a
sub rbx, qword [rsp + 0x60]
mov rbp, rbx
sar rbp, 3
lea rax, [rbp + 1]
movabs rcx, 0x1fffffffffffffff
cmp rax, rcx
ja 0x140223dd9
sar rbx, 2
cmp rbx, rax
cmovb rbx, rax
movabs rax, 0xfffffffffffffff
cmp rbp, rax
cmovae rbx, rcx
test rbx, rbx
jne 0x140223d7e
xor r12d, r12d
lea rdi, [r12 + rbp*8]
mov qword [rdi], rsi
mov r14, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
sub r8, r14
sub rdi, r8
test r8, r8
jle 0x140223b88
mov rcx, rdi
mov rdx, r14
call fcn.1401178b0
lea rax, [r12 + rbx*8]
lea rcx, [r12 + rbp*8]
add rcx, 8
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
test r14, r14
je 0x140223b0d
mov rcx, r14
call fcn.1400096d0
jmp 0x140223b0d
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
cmp rdi, r12
je 0x140223d1c
mov rdx, 0xffffffffffe00000
mov rbp, qword [rdi]
mov al, byte [rbp + 9]
test al, 1
je 0x140223d8e
add rdi, 8
cmp rdi, r12
jne 0x140223bd3
jmp 0x140223d1c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rcx
mov r15, qword [rax + rcx*8]
test r15, r15
je 0x140223cf4
mov rdx, qword [rsp + 0x38]
shl rdx, 0xa
add rdx, qword [rsp + 0x58]
mov r13, rdx
shr r13, 0xc
and r13d, 0x1fffff
lea rax, [r13 + 1]
mov qword [rsp + 0x28], rax
mov rax, rdx
and rax, 0xffffffffffe00000
mov rcx, rdx
shr rcx, 9
and ecx, 0xfe0
lea r14, [rax + rcx]
add r14, 0x1000
mov qword [rsp + 0x40], rdx
movabs rax, 0xfffffffe00000000
and rdx, rax
add rdx, r13
mov qword [rsp + 0x48], rdx
movzx ecx, byte [r14 + 0x1e]
mov rax, rcx
neg rax
shl rcx, 5
neg rcx
cmp byte [r14 + rcx + 0x1d], 0
jne 0x140223d0e
shl rax, 5
mov rax, qword [r14 + rax + 0x10]
mov ebx, dword [rax + 0x18]
bsf rsi, r15
cmp byte [rsp + 0x27], 0
jne 0x140223cb1
mov rcx, rsi
shl rcx, 4
or rcx, qword [rsp + 0x40]
xor edx, edx
mov r8, rbx
call fcn.140117f60
add rbx, 0xfff
shr rbx, 0xc
je 0x140223cdf
add rbx, r13
cmp rbx, qword [rsp + 0x28]
ja 0x140223ccd
mov rbx, qword [rsp + 0x28]
sub rbx, r13
mov rcx, qword [rsp + 0x48]
mov dl, 1
mov r8, rbx
call fcn.140117f60
mov rax, 0xfffffffffffffffe
mov ecx, esi
rol rax, cl
and r15, rax
jne 0x140223c66
mov rcx, qword [rsp + 0x38]
inc rcx
cmp rcx, 0x800
jne 0x140223bef
jmp 0x140223dc4
shl rax, 5
mov rbx, qword [r14 + rax + 0x20]
jmp 0x140223c90
mov byte [r13 + 0x80], 1
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x140223d59
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140115e50
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400096d0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140223e80
mov r12, rax
jmp 0x140223b61
mov byte [rbp + 8], 1
mov rax, qword [rbp]
and rax, rdx
xor ecx, ecx
test byte [r13 + 8], 1
sete cl
shl rcx, 0xe
add rax, rcx
add rax, 0x4000
mov qword [rsp + 0x30], rax
and rax, rdx
mov qword [rsp + 0x58], rax
xor ecx, ecx
jmp 0x140223bef
mov byte [rbp + 9], 1
mov r13, qword [rsp + 0x50]
mov rdx, 0xffffffffffe00000
jmp 0x140223be1
lea rcx, [rsp + 0x60]
call fcn.140196430
int3