Function at 0x1400a82d0
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
movzx ebx, word [0x14045e53c]
movzx ecx, bx
call fcn.1400a8360
cmp dword [0x14045e968], 0
jne 0x1400a8351
movzx ecx, bx
call fcn.1400aa180
cmp dword [0x14045e968], 0
jne 0x1400a8351
cmp dword [0x14045ebc8], 0
je 0x1400a8315
movzx ecx, bx
add rsp, 0x40
pop rbx
jmp 0x1400aa450
call fcn.1400aa880
cmp dword [0x14045e968], 0
jne 0x1400a8351
mov rcx, qword [0x14045df08]
lea r8, [0x140339590]
xor r9d, r9d
mov edx, 0x52d
call qword [sym.imp.USER32.dll_PostMessageW]
lea rcx, [rsp + 0x20]
call fcn.1400ab0c0
mov rcx, rax
call fcn.1400a8220
add rsp, 0x40
pop rbx
ret
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x180], rax
call fcn.140084710
test eax, eax
je 0x1400aa85f
mov r9d, 1
lea rax, [rsp + 0x48]
lea rdx, [0x140339880]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400aa81a
mov rcx, qword [0x14045df08]
lea r8, [0x140339980]
mov qword [rsp + 0x2c8], rbx
xor r9d, r9d
mov qword [rsp + 0x2a8], r12
mov edx, 0x52d
xor r12d, r12d
mov dword [rsp + 0x5c], 0x104
mov ebx, r12d
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400aa7ff
mov qword [rsp + 0x2d0], rsi
mov qword [rsp + 0x2d8], rdi
mov qword [rsp + 0x2a0], r13
mov qword [rsp + 0x298], r14
mov qword [rsp + 0x290], r15
nop word [rax + rax]
inc ebx
cmp dword [0x14045e968], 0
jne 0x1400aa7d7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 1
mov qword [rsp + 0x50], r12
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400aa5ce
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400aa5de
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044b738]
lea rax, [rsp + 0x58]
lea rdx, [0x140339990]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400aa5de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x58]
cmp esi, 0x10
je 0x1400aa5f8
cmp esi, 0x20
je 0x1400aa5f8
cmp esi, 0x100
jne 0x1400aa787
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 1
mov qword [rsp + 0x50], r12
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400aa667
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400aa677
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x14044b738]
lea rax, [rsp + 0x58]
lea rdx, str.Start
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400aa677
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], 2
jne 0x1400aa787
mov rcx, qword [rsp + 0x48]
lea r8, str.ImagePath
lea rdx, [rsp + 0x70]
call fcn.140060200
mov r14, rax
test rax, rax
je 0x1400aa787
mov rcx, rax
call fcn.140054e40
mov rcx, rax
mov r15, rax
call fcn.140084e80
test eax, eax
jne 0x1400aa77f
lea ecx, [rax + 0x38]
call fcn.14012a2dc
mov rdi, rax
lea rcx, [rsp + 0x70]
xor eax, eax
xor r8d, r8d
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
test eax, eax
je 0x1400aa73f
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r13
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
lea r8, [r13*2]
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.14027b2c0
mov r8d, r13d
lea rcx, [rsp + 0x70]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rdi], r12
lea r8, [0x140339908]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call fcn.14005ffc0
mov rdx, rdi
mov qword [rdi + 8], rax
mov rcx, r15
mov dword [rdi + 0x10], esi
mov dword [rdi + 0x14], 2
call fcn.140082ee0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r12d, r12d
mov rcx, r14
call fcn.14012a2d4
xor edx, edx
mov dword [rsp + 0x5c], 0x104
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14027b2c0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], r12
mov edx, ebx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400aa550
mov r14, qword [rsp + 0x298]
mov r13, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2d8]
mov rsi, qword [rsp + 0x2d0]
mov r15, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x2c8]
cmp dword [0x14045ebc8], 0
je 0x1400aa85f
lea rdx, [0x14032daf8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea rdx, [0x14032db10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea rdx, [0x14032dbb8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x2b0
pop rbp
ret