Function at 0x18001e260
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x180094030]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x34], 0
lea rax, [0x180096a14]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18001e310
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18001e310
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x180093980]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x180093980]
mov dword [rdx + rcx], eax
mov eax, SafeArrayUnaccessData
mov word [rsp + 0x30], ax
movsx rax, word [rsp + 0x30]
lea rcx, [0x180093980]
cmp dword [rcx + rax*4], 1
jne 0x18001e34f
movsx rax, word [rsp + 0x30]
lea rcx, [0x180093980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x30]
lea rdx, [0x180093980]
mov dword [rdx + rcx*4], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180093980]
mov eax, dword [rcx + rax]
xor eax, 0xfffffcf2
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180093980]
mov dword [rdx + rcx], eax
mov edx, 1
lea rcx, [rsp + 0x190]
call fcn.18001b0e0
lea rcx, [rsp + 0x190]
call fcn.18001c230
nop
cmp qword [rsp + 0x1d0], 0
je 0x18001e3e5
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0xc8]
call fcn.18001c1b0
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x190]
call fcn.18001c880
nop
lea rcx, [rsp + 0xc8]
call fcn.180013670
mov eax, dword [rsp + 0x1e0]
or eax, 0x20019
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x190]
call fcn.18000bd00
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x58]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x1c8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18001e475
mov r8, 0xffffffffffffffff
lea rdx, [0x180096cc0]
mov rcx, qword [rsp + 0x1c0]
call fcn.18001c1b0
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x190]
call fcn.180013670
mov rax, qword [rsp + 0x1c0]
jmp 0x18001eaaa
mov edx, 1
lea rcx, [rsp + 0x178]
call fcn.18001b0e0
lea rcx, [rsp + 0x178]
call fcn.18001c230
nop
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180093980]
mov eax, dword [rcx + rax]
xor eax, 0xfffffcdf
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x180093980]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x148], 0
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180093980]
mov eax, dword [rcx + rax]
xor eax, 0xfffffcd4
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180093980]
mov dword [rdx + rcx], eax
lea rax, [rsp + 0x148]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x158]
xor r8d, r8d
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x148], 0
ja 0x18001e546
mov dword [rsp + 0x148], 0x20000
mov edx, 1
lea rcx, [rsp + 0x160]
call fcn.18001b0e0
lea rcx, [rsp + 0x160]
call fcn.18001c230
nop
mov eax, dword [rsp + 0x148]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x160]
call fcn.180025760
lea rcx, [rsp + 0x160]
call fcn.180001c50
mov dword [rsp + 0x148], eax
lea rcx, [rsp + 0x160]
call fcn.18000bd00
lea rcx, [rsp + 0x148]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x158]
xor r8d, r8d
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18001e740
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180093980]
mov eax, dword [rcx + rax]
xor eax, 0xfffffcb8
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180093980]
mov dword [rdx + rcx], eax
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180093980]
mov eax, dword [rcx + rax]
xor eax, 0xfffffcaf
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180093980]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x50], SafeArrayCopy
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x50]
movsxd rcx, ecx
lea rdx, [0x180093980]
mov dword [rdx + rcx*4], eax
mov r8, 0xffffffffffffffff
lea rdx, [0x180096cc0]
mov rcx, qword [rsp + 0x1c0]
call fcn.18001c1b0
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x160]
call fcn.180013670
nop
lea rcx, [rsp + 0x178]
call fcn.180013670
nop
lea rcx, [rsp + 0x190]
call fcn.180013670
mov rax, qword [rsp + 0x1c0]
jmp 0x18001eaaa
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jbe 0x18001ea4b
cmp dword [rsp + 0x40], 3
jbe 0x18001e774
cmp dword [rsp + 0x40], 4
je 0x18001e9eb
cmp dword [rsp + 0x40], 7
je 0x18001e774
jmp 0x18001ea4b
movzx eax, byte [rsp + 0x1e8]
test eax, eax
je 0x18001e81e
mov dword [rsp + 0x48], SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x48]
movsxd rcx, ecx
lea rdx, [0x180093980]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x148]
xor edx, edx
mov ecx, 2
div rcx
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x160]
call fcn.18000bd00
mov rcx, qword [rsp + 0x90]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.18001c1b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x178]
call fcn.18001c880
nop
lea rcx, [rsp + 0x100]
call fcn.180013670
jmp 0x18001e9e9
cmp dword [rsp + 0x158], 7
jne 0x18001e910
mov eax, dword [rsp + 0x148]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x148], eax
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jbe 0x18001e89c
lea rcx, [rsp + 0x160]
call fcn.18000bd00
mov ecx, dword [rsp + 0x38]
dec ecx
mov ecx, ecx
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x18001e89c
mov dword [rsp + 0x4c], SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x4c]
movsxd rcx, ecx
lea rdx, [0x180093980]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x160]
call fcn.18000bd00
mov rcx, qword [rsp + 0xb8]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.18001c1b0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x178]
call fcn.18001c880
nop
lea rcx, [rsp + 0x118]
call fcn.180013670
jmp 0x18001e9e9
mov dword [rsp + 0x54], 7
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x54]
movsxd rcx, ecx
lea rdx, [0x180093980]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x148]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x148], eax
jmp 0x18001e95b
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x148]
cmp dword [rsp + 0x3c], eax
jae 0x18001e986
mov eax, dword [rsp + 0x3c]
mov edx, eax
lea rcx, [rsp + 0x160]
call fcn.18001c9c0
movzx eax, word [rax]
test eax, eax
jne 0x18001e984
jmp 0x18001e986
jmp 0x18001e951
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x160]
call fcn.18000bd00
mov rcx, qword [rsp + 0x78]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.18001c1b0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x178]
call fcn.18001c880
nop
lea rcx, [rsp + 0x130]
call fcn.180013670
jmp 0x18001ea4b
lea rcx, [rsp + 0x160]
call fcn.18000bd00
mov r9d, 0xffffffff
mov r8b, 0xa
mov edx, dword [rax]
lea rcx, [rsp + 0xe8]
call fcn.18001b740
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x178]
call fcn.18001c880
nop
lea rcx, [rsp + 0xe8]
call fcn.180013670
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x1c0]
call fcn.18001c0b0
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x160]
call fcn.180013670
nop
lea rcx, [rsp + 0x178]
call fcn.180013670
nop
lea rcx, [rsp + 0x190]
call fcn.180013670
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.18004a8d0
add rsp, 0x1b8
ret