Function at 0x140019810
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 0x140019b96
movzx ecx, ax
call fcn.14005a1f0
test eax, eax
jne 0x140019859
movzx eax, word [r15]
cmp ax, r14w
jne 0x140019866
add r15, 2
movzx eax, word [r15]
test ax, ax
jne 0x140019843
movzx r9d, byte [rsp + 0x88]
test ax, ax
je 0x140019b96
cmp ax, r14w
je 0x140019b96
xor edi, edi
cmp ax, 0x22
jne 0x1400198ff
add r15, 2
mov rsi, r15
movzx eax, word [r15]
test ax, ax
je 0x1400198b8
movzx ecx, ax
nop dword [rax]
movzx eax, cx
cmp cx, 0x22
je 0x1400198b8
add rsi, 2
movzx eax, word [rsi]
movzx ecx, ax
test ax, ax
jne 0x1400198a0
lea rcx, [rsi + 2]
test ax, ax
cmove rcx, rsi
mov qword [r13], rcx
test r14w, r14w
je 0x140019b60
movzx eax, word [rcx]
test ax, ax
je 0x140019b60
nop dword [rax]
cmp ax, r14w
je 0x140019b60
add rcx, 2
mov qword [r13], rcx
movzx eax, word [rcx]
test ax, ax
jne 0x1400198e0
jmp 0x140019b60
mov rsi, r15
test ax, ax
je 0x14001991f
cmp ax, r14w
je 0x14001991f
cmp ax, 0x20
je 0x14001991f
add rsi, 2
movzx eax, word [rsi]
test ax, ax
jne 0x140019907
test r9b, r9b
je 0x140019b5c
movzx eax, word [r15]
cmp ax, 0x25
je 0x140019944
cmp ax, 0x5c
je 0x140019944
cmp word [r15 + 2], 0x3a
jne 0x140019b5c
mov rbx, qword [r12]
mov rcx, r15
call fcn.140059d48
mov qword [r12], rax
mov rcx, rbx
call fcn.140059d2c
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, [0x14007a7c4]
test rax, rax
cmovne rcx, rax
call fcn.140059d48
mov rdi, rax
mov qword [rsp + 0x28], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, rdi
call fcn.14005c43c
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x200
jne 0x140019a1f
lea rdx, str._PROGRAMFILES_
mov rcx, rdi
call fcn.14004ebac
test rax, rax
je 0x140019a1f
lea rdx, str._PROGRAMFILES_
mov rcx, rdi
call fcn.14004ebac
sub rax, rdi
sar rax, 1
mov edx, eax
mov rax, qword [r12]
lea rcx, [rax + rdx*2]
movups xmm0, xmmword [str._ProgramW6432_]
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x1400821e0]
movsd qword [rcx + 0x10], xmm0
mov eax, dword [0x1400821e8]
mov dword [rcx + 0x18], eax
mov rcx, qword [r12]
add rcx, 0x1c
lea rcx, [rcx + rdx*2]
nop
movzx eax, word [rcx]
mov word [rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140019a10
mov rdx, qword [r12]
lea rcx, [rsp + 0x20]
call fcn.14002cd00
mov rdx, qword [rax]
mov rbx, qword [r12]
lea rcx, [0x14007a7c4]
test rdx, rdx
cmovne rcx, rdx
call fcn.140059d48
mov qword [r12], rax
mov rcx, rbx
call fcn.140059d2c
mov rcx, qword [rsp + 0x20]
call fcn.140059d2c
mov rcx, qword [r12]
call fcn.14002ce40
cmp eax, 0xffffffff
je 0x140019a73
test al, 0x10
je 0x140019b52
lea rcx, str..exe
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
mov rax, qword [r12]
lea rcx, [0x14007a7c4]
test rax, rax
cmovne rcx, rax
call fcn.140059d48
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
mov rbp, qword [rsp + 0x70]
mov rbx, qword [r12]
lea rcx, [0x14007a7c4]
test rbp, rbp
cmovne rcx, rbp
call fcn.140059d48
mov qword [r12], rax
mov rcx, rbx
call fcn.140059d2c
mov rcx, rbp
call fcn.140059d2c
mov rcx, qword [r12]
call fcn.14002ce40
cmp eax, 0xffffffff
je 0x140019b03
test al, 0x10
je 0x140019b52
movzx eax, word [rsi]
cmp ax, r14w
je 0x140019b29
nop dword [rax]
movzx ecx, ax
call fcn.14005a1f0
test eax, eax
je 0x140019b29
add rsi, 2
movzx eax, word [rsi]
cmp ax, r14w
jne 0x140019b10
movzx eax, word [rsi]
test ax, ax
je 0x140019b8a
cmp ax, r14w
je 0x140019b8a
mov rcx, rdi
call fcn.140059d2c
movzx eax, word [rsi]
movzx r9d, byte [rsp + 0x88]
xor edi, edi
jmp 0x140019902
mov rcx, rdi
call fcn.140059d2c
xor edi, edi
mov qword [r13], rsi
mov rbx, qword [r12]
mov rcx, r15
call fcn.140059d48
mov qword [r12], rax
mov rcx, rbx
call fcn.140059d2c
sub rsi, r15
sar rsi, 1
mov rax, qword [r12]
mov word [rax + rsi*2], di
mov al, 1
jmp 0x140019b9c
mov rcx, rdi
call fcn.140059d2c
mov al, 1
jmp 0x140019b9c
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