Function at 0x140019120
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x20], r9b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r8
movzx r14d, dx
mov r13, rcx
mov r15, qword [rcx]
movzx eax, word [r15]
test ax, ax
je 0x140019486
movzx ecx, ax
call fcn.1400574f0
test eax, eax
jne 0x140019169
movzx eax, word [r15]
cmp ax, r14w
jne 0x140019176
add r15, 2
movzx eax, word [r15]
test ax, ax
jne 0x140019153
movzx r9d, byte [rsp + 0x88]
test ax, ax
je 0x140019486
cmp ax, r14w
je 0x140019486
xor edi, edi
cmp ax, 0x22
jne 0x14001920f
add r15, 2
mov rsi, r15
movzx eax, word [r15]
test ax, ax
je 0x1400191c8
movzx ecx, ax
nop dword [rax]
movzx eax, cx
cmp cx, 0x22
je 0x1400191c8
add rsi, 2
movzx eax, word [rsi]
movzx ecx, ax
test ax, ax
jne 0x1400191b0
lea rcx, [rsi + 2]
test ax, ax
cmove rcx, rsi
mov qword [r13], rcx
test r14w, r14w
je 0x140019450
movzx eax, word [rcx]
test ax, ax
je 0x140019450
nop dword [rax]
cmp ax, r14w
je 0x140019450
add rcx, 2
mov qword [r13], rcx
movzx eax, word [rcx]
test ax, ax
jne 0x1400191f0
jmp 0x140019450
mov rsi, r15
test ax, ax
je 0x14001922f
cmp ax, r14w
je 0x14001922f
cmp ax, 0x20
je 0x14001922f
add rsi, 2
movzx eax, word [rsi]
test ax, ax
jne 0x140019217
test r9b, r9b
je 0x14001944c
movzx eax, word [r15]
cmp ax, 0x25
je 0x140019254
cmp ax, 0x5c
je 0x140019254
cmp word [r15 + 2], 0x3a
jne 0x14001944c
mov rbx, qword [r12]
mov rcx, r15
call fcn.1400571b0
mov qword [r12], rax
mov rcx, rbx
call fcn.140057194
mov rcx, rsi
sub rcx, r15
sar rcx, 1
mov rax, qword [r12]
mov word [rax + rcx*2], di
mov rax, qword [r12]
lea rcx, [0x1400767ac]
test rax, rax
cmovne rcx, rax
call fcn.1400571b0
mov rdi, rax
mov qword [rsp + 0x28], rax
xor ecx, ecx
call fcn.140057194
nop
mov rcx, rdi
call fcn.140059644
mov ecx, dword [0x1400a06b4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x200
jne 0x140019312
lea rdx, str._PROGRAMFILES_
mov rcx, rdi
call fcn.14004f678
test rax, rax
je 0x140019312
lea rdx, str._PROGRAMFILES_
mov rcx, rdi
call fcn.14004f678
sub rax, rdi
sar rax, 1
mov ecx, eax
mov rax, qword [r12]
lea rdx, [rax + rcx*2]
movups xmm0, xmmword [str._ProgramW6432_]
movups xmmword [rdx], xmm0
movsd xmm1, qword [0x14007def0]
movsd qword [rdx + 0x10], xmm1
mov eax, dword [0x14007def8]
mov dword [rdx + 0x18], eax
mov rdx, qword [r12]
lea rcx, [rsp + 0x20]
call fcn.14002cb60
mov rdx, qword [rax]
mov rbx, qword [r12]
lea rcx, [0x1400767ac]
test rdx, rdx
cmovne rcx, rdx
call fcn.1400571b0
mov qword [r12], rax
mov rcx, rbx
call fcn.140057194
mov rcx, qword [rsp + 0x20]
call fcn.140057194
mov rcx, qword [r12]
call fcn.14002cca0
cmp eax, 0xffffffff
je 0x140019366
test al, 0x10
je 0x140019442
lea rcx, str..exe
call fcn.1400571b0
mov rbx, rax
xor ecx, ecx
call fcn.140057194
mov rax, qword [r12]
lea rcx, [0x1400767ac]
test rax, rax
cmovne rcx, rax
call fcn.1400571b0
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.140057194
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140013d60
mov rcx, rbx
call fcn.140057194
mov rbp, qword [rsp + 0x70]
mov rbx, qword [r12]
lea rcx, [0x1400767ac]
test rbp, rbp
cmovne rcx, rbp
call fcn.1400571b0
mov qword [r12], rax
mov rcx, rbx
call fcn.140057194
mov rcx, rbp
call fcn.140057194
mov rcx, qword [r12]
call fcn.14002cca0
cmp eax, 0xffffffff
je 0x1400193f6
test al, 0x10
je 0x140019442
movzx eax, word [rsi]
cmp ax, r14w
je 0x140019419
nop
movzx ecx, ax
call fcn.1400574f0
test eax, eax
je 0x140019419
add rsi, 2
movzx eax, word [rsi]
cmp ax, r14w
jne 0x140019400
movzx eax, word [rsi]
test ax, ax
je 0x14001947a
cmp ax, r14w
je 0x14001947a
mov rcx, rdi
call fcn.140057194
movzx eax, word [rsi]
movzx r9d, byte [rsp + 0x88]
xor edi, edi
jmp 0x140019212
mov rcx, rdi
call fcn.140057194
xor edi, edi
mov qword [r13], rsi
mov rbx, qword [r12]
mov rcx, r15
call fcn.1400571b0
mov qword [r12], rax
mov rcx, rbx
call fcn.140057194
sub rsi, r15
sar rsi, 1
mov rax, qword [r12]
mov word [rax + rsi*2], di
mov al, 1
jmp 0x14001948c
mov rcx, rdi
call fcn.140057194
mov al, 1
jmp 0x14001948c
mov qword [r13], r15
xor al, al
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret