Function at 0x1400214c0
Capabilities:
Get thread local storage value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4c0
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov ebx, r9d
mov dword [rbp - 0x80], ebx
mov qword [rbp + 0x28], r8
mov r12, rdx
mov qword [rbp - 0x30], rdx
mov r15, rcx
mov qword [rbp - 0x10], rcx
xor r13d, r13d
lea ecx, [r13 + 2]
call fcn.140059d40
mov r14, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x20], rax
mov word [rax], r13w
lea ecx, [r13 + 2]
call fcn.140059d40
mov rdi, rax
mov qword [rbp - 0x18], rax
mov word [rax], r13w
lea ecx, [r13 + 2]
call fcn.140059d40
mov rsi, rax
mov qword [rbp + 0x20], rax
mov word [rax], r13w
lea ecx, [r13 + 2]
call fcn.140059d40
mov qword [rbp + 0x30], rax
mov word [rax], r13w
lea r13, [0x14007a7c4]
cmp ebx, 0xffffffff
jne 0x1400218e7
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x78], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x68], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x38], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp + 8], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 8], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov r12, rax
mov qword [rbp + 0x10], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rbx, r13
mov rax, qword [rbp + 0x28]
test rax, rax
cmovne rbx, rax
mov rcx, rbx
call fcn.140059d48
mov r13, rax
mov qword [rbp + 0x18], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x18]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.14001f610
mov qword [rbp - 0x50], rax
lea rcx, [0x1400834a0]
call fcn.140059d48
mov r14, rax
mov qword [rbp + 0x70], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, rbx
call fcn.140059d48
mov r15, rax
mov qword [rbp + 0x48], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov ecx, 2
call fcn.140059d40
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov word [rax], cx
mov rax, qword [rbp - 0x30]
cmp rax, qword [0x1400a36f8]
jne 0x140021694
lea rcx, str.HKLM
jmp 0x1400216ad
lea rcx, str.HKCU
lea rdx, [0x14008349c]
cmp rax, qword [0x1400a3700]
cmovne rcx, rdx
call fcn.140059d48
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.140059d2c
lea rcx, [0x140081d50]
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
lea rcx, [0x14007a7c4]
mov rax, qword [rbp - 0x40]
test rax, rax
cmovne rcx, rax
call fcn.140059d48
mov qword [rbp - 0x80], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
mov rax, qword [rbp - 0x80]
lea rcx, [0x14007a7c4]
test rax, rax
cmovne rcx, rax
call fcn.140059d48
mov qword [rbp - 0x58], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.140014250
mov rbx, qword [rbp - 0x58]
lea rcx, [0x14007a7c4]
test rbx, rbx
cmovne rcx, rbx
call fcn.140059d48
mov qword [rbp - 0x58], rax
mov rcx, qword [rbp - 0x28]
call fcn.140059d2c
mov rcx, rbx
call fcn.140059d2c
mov rcx, qword [rbp - 0x80]
call fcn.140059d2c
mov rcx, qword [rbp - 0x40]
call fcn.140059d2c
cmp word [r14], 0
je 0x1400217db
lea rcx, [0x140081d50]
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
lea rcx, [0x14007a7c4]
test rbx, rbx
cmovne rcx, rbx
call fcn.140059d48
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x58]
call fcn.140014250
mov rcx, qword [rbp - 0x40]
call fcn.140059d2c
nop
movzx eax, byte [rbp + 0x410]
mov dword [rsp + 0x80], 0xffffffff
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x58], rbx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x40], rax
lea rax, [rbp]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [rbx - 1]
mov rcx, qword [rbp - 0x10]
call fcn.140014980
mov dword [rbp - 0x80], eax
mov rcx, qword [rbp - 0x58]
call fcn.140059d2c
nop
mov rcx, r15
call fcn.140059d2c
nop
mov rcx, r14
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x48]
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d2c
nop
mov rcx, r12
call fcn.140059d2c
nop
mov rcx, qword [rbp - 8]
call fcn.140059d2c
nop
mov rcx, qword [rbp]
call fcn.140059d2c
nop
mov rcx, qword [rbp + 8]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x38]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x68]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x78]
call fcn.140059d2c
lea r13, [0x14007a7c4]
mov r14, qword [rbp - 0x70]
mov r15, qword [rbp - 0x10]
mov r12, qword [rbp - 0x30]
jmp 0x1400218e9
xor ebx, ebx
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, r12
call fcn.14001d250
test eax, eax
jne 0x140021f50
mov dword [rbp - 0x60], 0x320
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021f3c
cmp dword [rbp - 0x60], eax
je 0x140021f3c
lea ecx, [rax + 2]
call fcn.140059d40
mov qword [rbp + 0x50], rax
mov word [rax], bx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rbx
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.14001e010
test al, al
je 0x140021f16
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
mov qword [rbp - 0x58], rax
cmp word [rax], 0x25
jne 0x1400219b3
cmp word [rax + 2], 0x31
jne 0x1400219b3
cmp word [rax + 4], 0
je 0x140021f16
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x50]
mov rdx, r15
lea rcx, [rbp - 0x48]
call fcn.14001e540
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14001f7c0
mov rdi, qword [rbp - 0x50]
mov rcx, r13
test rdi, rdi
cmovne rcx, rdi
call fcn.140059d48
mov rbx, rax
mov qword [rbp - 0x20], rax
mov rcx, r14
call fcn.140059d2c
mov rcx, rdi
call fcn.140059d2c
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.140018680
mov rbx, rax
test r15, r15
je 0x140021a64
test rax, rax
je 0x140021a52
xor r9d, r9d
mov edx, 0x1002
lea r8d, [r9 + 1]
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
mov r8, rbx
mov edx, 0xffffffff
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [rbp - 0x70], eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x140021a6a
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconW]
mov rbx, rax
jmp 0x140021a1e
mov eax, dword [rbp - 0x60]
mov dword [rbp - 0x70], eax
lea rcx, [0x1400834a0]
call fcn.140059d48
mov r14, rax
mov qword [rbp - 0x48], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rbx, r13
mov rax, qword [rbp + 0x28]
test rax, rax
cmovne rbx, rax
mov qword [rbp - 0x40], rbx
mov rcx, rbx
call fcn.140059d48
mov rsi, rax
mov qword [rbp - 0x50], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x50]
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14001f610
mov r12, rax
mov rcx, r13
call fcn.140059d48
mov rdi, rax
mov qword [rbp - 0x28], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, rbx
call fcn.140059d48
mov rbx, rax
mov qword [rbp + 0x18], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x28]
lea r8, [rbp + 0x18]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14001f610
mov r15, rax
mov rcx, r13
mov rax, qword [rbp - 0x58]
test rax, rax
cmovne rcx, rax
call fcn.140059d48
mov qword [rbp - 0x78], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, r15
lea rdx, [rbp - 0x78]
mov r12, qword [rbp - 0x10]
mov rcx, r12
call fcn.140014330
movzx r15d, al
mov rcx, qword [rbp - 0x78]
call fcn.140059d2c
nop
mov rcx, qword [rbp + 0x10]
call fcn.140059d2c
nop
mov rcx, rbx
call fcn.140059d2c
nop
mov rcx, rdi
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x68]
call fcn.140059d2c
nop
mov rcx, rsi
call fcn.140059d2c
nop
mov rcx, r14
call fcn.140059d2c
test r15b, r15b
mov r15d, dword [rbp - 0x80]
je 0x140021f08
cmp r15d, 0xffffffff
jne 0x140021dbb
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 8], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp + 8], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x38], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x68], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x78], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, r13
call fcn.140059d48
mov r14, rax
mov qword [rbp - 0x48], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x40]
call fcn.140059d48
mov rsi, rax
mov qword [rbp - 0x50], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x50]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.14001f610
mov r15, rax
lea rcx, [0x1400834a0]
call fcn.140059d48
mov rdi, rax
mov qword [rbp - 0x28], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x40]
call fcn.140059d48
mov rbx, rax
mov qword [rbp + 0x18], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x28]
lea r8, [rbp + 0x18]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.14001f610
nop
movzx ecx, byte [rbp + 0x410]
mov dword [rsp + 0x80], 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], r8
lea rdx, [rbp - 8]
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x58], r8
lea rcx, [rbp]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 8]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 - 1]
mov rcx, r12
call fcn.140014980
mov dword [rbp - 0x80], eax
mov rcx, qword [rbp + 0x10]
call fcn.140059d2c
nop
mov rcx, rbx
call fcn.140059d2c
nop
mov rcx, rdi
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x10]
call fcn.140059d2c
nop
mov rcx, rsi
call fcn.140059d2c
nop
mov rcx, r14
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x78]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x68]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x38]
call fcn.140059d2c
nop
mov rcx, qword [rbp + 8]
call fcn.140059d2c
nop
mov rcx, qword [rbp]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 8]
call fcn.140059d2c
mov r15d, dword [rbp - 0x80]
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x38], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov r14, qword [rbp + 0x40]
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x68], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea rcx, [0x1400834a0]
call fcn.140059d48
mov rdi, rax
mov qword [rbp - 0x48], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x40]
call fcn.140059d48
mov rbx, rax
mov qword [rbp - 0x50], rax
xor ecx, ecx
call fcn.140059d2c
nop
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x50]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.14001f610
mov rsi, rax
mov rax, qword [rbp - 0x58]
test rax, rax
cmovne r13, rax
mov rcx, r13
call fcn.140059d48
mov qword [rbp - 0x78], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov dword [rsp + 0x80], 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rcx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x68], rax
movzx eax, byte [rbp + 0x410]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x58], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0xc]
mov r8d, r15d
mov edx, dword [rbp - 0x70]
mov rcx, r12
call fcn.140014980
nop
mov rcx, qword [rbp - 0x78]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x28]
call fcn.140059d2c
nop
mov rcx, rbx
call fcn.140059d2c
nop
mov rcx, rdi
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x68]
call fcn.140059d2c
nop
mov rcx, qword [rbp - 0x38]
call fcn.140059d2c
mov rbx, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x18]
mov rsi, qword [rbp + 0x20]
jmp 0x140021f1e
mov r15d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x70]
lea rcx, [rbp + 0x58]
call fcn.1400118f0
mov rcx, qword [rbp + 0x50]
call fcn.140059d2c
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140021f58
mov r15d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x70]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140021f58
mov rbx, qword [rbp - 0x70]
mov r15d, dword [rbp - 0x80]
mov rcx, qword [rbp + 0x30]
call fcn.140059d2c
nop
mov rcx, rsi
call fcn.140059d2c
nop
mov rcx, rdi
call fcn.140059d2c
nop
mov rcx, rbx
call fcn.140059d2c
mov eax, r15d
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14004bd30
mov rbx, qword [rsp + 0x518]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret