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

Disassembly:
push rbx
sub rsp, 0x40
movzx ebx, word [0x140455b60]
movzx ecx, bx
call fcn.1400a42e0
cmp dword [0x140455b64], 0
jne 0x1400a42d1
movzx ecx, bx
call fcn.1400a6610
cmp dword [0x140455b64], 0
jne 0x1400a42d1
cmp dword [0x140455d78], 0
je 0x1400a4295
movzx ecx, bx
add rsp, 0x40
pop rbx
jmp 0x1400a68e0
call fcn.1400a6d20
cmp dword [0x140455b64], 0
jne 0x1400a42d1
mov rcx, qword [0x140456df8]
lea r8, [0x140333718]
xor r9d, r9d
mov edx, 0x52d
call qword [sym.imp.USER32.dll_PostMessageW]
lea rcx, [rsp + 0x20]
call fcn.1400a7110
mov rcx, rax
call fcn.1400a41a0
add rsp, 0x40
pop rbx
ret
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x180], rax
call fcn.14007f830
test eax, eax
je 0x1400a6cfb
mov r9d, 1
lea rax, [rsp + 0x48]
lea rdx, [0x140333be0]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a6cb6
mov rcx, qword [0x140456df8]
lea r8, [0x140333b18]
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 0x1400a6c9b
mov qword [rsp + 0x2d8], rdi
movabs rdi, 0x1000100010000
mov qword [rsp + 0x2d0], rsi
mov qword [rsp + 0x2a0], r13
mov qword [rsp + 0x298], r14
mov qword [rsp + 0x290], r15
inc ebx
cmp dword [0x140455b64], 0
jne 0x1400a6c73
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 0x1400a6a5f
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a6a6f
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x140443784]
lea rax, [rsp + 0x58]
lea rdx, [0x140333c70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a6a6f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x58]
cmp esi, 0x30
ja 0x1400a6a7e
bt rdi, rsi
jb 0x1400a6a8a
cmp esi, 0x100
jne 0x1400a6c23
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 0x1400a6af9
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a6b09
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [0x140443784]
lea rax, [rsp + 0x58]
lea rdx, [0x140333c60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a6b09
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], 2
jne 0x1400a6c23
mov rcx, qword [rsp + 0x48]
lea r8, str.ImagePath
lea rdx, [rsp + 0x70]
call fcn.14005fa90
mov r14, rax
test rax, rax
je 0x1400a6c23
mov rcx, rax
call fcn.140054780
mov rcx, rax
mov r15, rax
call fcn.14004d2b0
test eax, eax
jne 0x1400a6c1b
lea ecx, [rax + 0x38]
call fcn.140125a94
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 0x1400a6bd1
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r13
cmovo rax, rcx
mov rcx, rax
call fcn.140125a94
lea r8, [r13*2]
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.1402767a0
mov r8d, r13d
lea rcx, [rsp + 0x70]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rdi], r12
lea r8, [0x140333c30]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call fcn.14005f970
mov rdx, rdi
mov qword [rdi + 8], rax
mov rcx, r15
mov dword [rdi + 0x10], esi
mov dword [rdi + 0x14], 2
call fcn.14007de60
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r12d, r12d
movabs rdi, 0x1000100010000
mov rcx, r14
call fcn.140125e14
xor edx, edx
mov dword [rsp + 0x5c], 0x104
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1402767a0
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 0x1400a69e1
mov r14, qword [rsp + 0x298]
mov r13, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x2d0]
mov r15, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x2c8]
cmp dword [0x140455d78], 0
je 0x1400a6cfb
lea rdx, [0x140326b98]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea rdx, [0x140326bb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea rdx, [0x140326c58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x2b0
pop rbp
ret