Function at 0x180021a20
Capabilities:
Query or enumerate registry key

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x18009b1a0]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
xor eax, 0xfffff750
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.1800368b0
lea rcx, [rsp + 0xb0]
call fcn.18001ec60
nop
cmp qword [rsp + 0x138], 0
je 0x180021aef
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x80]
call fcn.18001ec10
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xb0]
call fcn.18001f260
nop
lea rcx, [rsp + 0x80]
call fcn.180013e90
mov qword [rsp + 0xa0], 0
mov eax, dword [rsp + 0x140]
or eax, 0x2001f
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0xb0]
call fcn.18000be20
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x70]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
add eax, 0xb146cf5
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x40], 0
je 0x180021d09
cmp dword [rsp + 0x40], 2
jne 0x180021ceb
movzx eax, byte [rsp + 0x148]
test eax, eax
je 0x180021ceb
mov edx, 1
lea rcx, [rsp + 0xe0]
call fcn.1800368b0
lea rcx, [rsp + 0xb0]
call fcn.18000be20
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180027160
nop
mov edx, 1
lea rcx, [rsp + 0xf8]
call fcn.1800368b0
lea rcx, [rsp + 0xb0]
call fcn.18000be20
mov rcx, rax
call fcn.180026800
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.18001ec10
nop
lea rcx, [rsp + 0xe0]
call fcn.180027e90
movzx eax, al
test eax, eax
jne 0x180021cd0
lea rcx, [rsp + 0xf8]
call fcn.180027e90
movzx eax, al
test eax, eax
jne 0x180021cd0
lea rcx, [rsp + 0xf8]
call fcn.18000be20
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe0]
call fcn.18000be20
mov r9d, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x78]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.1800204a0
test eax, eax
jne 0x180021cb1
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0xf8]
call fcn.180013e90
nop
lea rcx, [rsp + 0xe0]
call fcn.180013e90
nop
lea rcx, [rsp + 0xb0]
call fcn.180013e90
mov eax, dword [rsp + 0x58]
jmp 0x18002219e
mov dword [rsp + 0x5c], SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x5c]
movsxd rcx, ecx
lea rdx, [0x18009a980]
mov dword [rdx + rcx*4], eax
lea rcx, [rsp + 0xf8]
call fcn.180013e90
nop
lea rcx, [rsp + 0xe0]
call fcn.180013e90
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0xb0]
call fcn.180013e90
mov eax, dword [rsp + 0x64]
jmp 0x18002219e
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
xor eax, 0xfffff717
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x54], 0
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x54]
movsxd rcx, ecx
lea rdx, [0x18009a980]
mov dword [rdx + rcx*4], eax
mov edx, 1
lea rcx, [rsp + 0xc8]
call fcn.1800368b0
lea rcx, [rsp + 0xc8]
call fcn.18001ec60
nop
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
add eax, 0xb77afc4
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
mov edx, 0x8000
lea rcx, [rsp + 0xc8]
call fcn.180028f80
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
xor eax, 0xfffff6fc
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0xc8]
call fcn.180030fd0
mov qword [rsp + 0x68], rax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009a980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a980]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009a980]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x180021e6b
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a980]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0xc8]
call fcn.180016da0
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
je 0x180021e91
cmp qword [rsp + 0x68], 0
jne 0x180021ebd
mov dword [rsp + 0x50], 8
lea rcx, [rsp + 0xc8]
call fcn.180013e90
nop
lea rcx, [rsp + 0xb0]
call fcn.180013e90
mov eax, dword [rsp + 0x50]
jmp 0x18002219e
lea rax, [rsp + 0x110]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180022020
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009a980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a980]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009a980]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x180021f88
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a980]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x140]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.180021a20
mov dword [rsp + 0x40], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
xor eax, 0xfffff6d6
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x40], 0
je 0x180022007
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0xc8]
call fcn.180013e90
nop
lea rcx, [rsp + 0xb0]
call fcn.180013e90
mov eax, dword [rsp + 0x4c]
jmp 0x18002219e
lea rcx, [rsp + 0xc8]
call fcn.180016da0
mov dword [rsp + 0xa8], eax
jmp 0x180021ebd
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
xor eax, 0xfffff6ca
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0xb0]
call fcn.18000be20
mov r8d, dword [rsp + 0x140]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.180020350
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x18002214c
mov eax, SafeArrayGetDim
mov word [rsp + 0x44], ax
movsx rax, word [rsp + 0x44]
lea rcx, [0x18009a980]
cmp dword [rcx + rax*4], 1
jne 0x1800220cc
movsx rax, word [rsp + 0x44]
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x44]
lea rdx, [0x18009a980]
mov dword [rdx + rcx*4], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009a980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009a980]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009a980]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18002214a
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009a980]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
jmp 0x180022177
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009a980]
mov eax, dword [rcx + rax]
xor eax, 0xfffff69e
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009a980]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0xc8]
call fcn.180013e90
nop
lea rcx, [rsp + 0xb0]
call fcn.180013e90
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.18005afa0
add rsp, 0x128
ret