Function at 0x1009823
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1017048]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x68], ebx
call fcn.01008658
push eax
push 0x2001b
push ebx
push dword [ebp - 0x94]
push edi
call fcn.01008692
add esp, 0x14
cmp eax, ebx
je 0x100988e
cmp eax, 2
je 0x10098c0
jmp 0x10098c2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x10098c2
cmp dword [ebp - 0x9c], ebx
jne 0x10098d1
mov bl, 1
lea ecx, [ebp - 0x68]
call fcn.01008676
mov al, bl
jmp 0x1009cc4
mov eax, dword [ebp - 0xa4]
cmp eax, ebx
jne 0x10098e0
mov eax, 0x1001ac0
push eax
mov eax, dword [ebp - 0x88]
push dword [eax + 4]
push dword [ebp - 0x94]
push esi
push 0x1001e88
call fcn.0100f591
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add eax, eax
push eax
mov byte [ebp - 0x55], bl
call fcn.0100f60c
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x6c], eax
jne 0x100991a
mov byte [ebp - 0x55], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x64], ebx
xor esi, esi
mov dword [ebp - 0x8c], ebx
jmp 0x1009c5b
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x8c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0xb0], eax
jne 0x1009c7e
mov edi, dword [ebp - 0x68]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
call fcn.01008658
push eax
push 0x2001b
push ebx
push dword [ebp - 0x6c]
push edi
call fcn.01008692
add esp, 0x14
test eax, eax
jne 0x1009c66
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1009c66
inc dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
add eax, eax
push eax
call fcn.0100f60c
inc dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
add eax, eax
push eax
call fcn.0100f60c
mov esi, eax
mov eax, dword [ebp - 0x78]
pop ecx
pop ecx
add eax, eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x98]
push eax
push ebx
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x7c], ebx
push ebx
jmp 0x1009bb0
cmp dword [ebp - 0x98], 7
mov byte [ebp - 0x5d], bl
mov dword [ebp - 0x80], ebx
jne 0x1009b7f
cmp esi, ebx
je 0x1009b7f
cmp byte [ebp - 0x55], bl
mov dword [ebp - 0xa8], esi
jne 0x1009b36
cmp word [esi], bx
je 0x1009b36
inc dword [ebp - 0x80]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push esi
call sub.msi.dll_MsiEnumRelatedProductsW
test eax, eax
jne 0x1009b32
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
push esi
jne 0x1009b23
dec dword [ebp - 0x80]
mov byte [ebp - 0x5d], 1
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x70]
lea eax, [eax + ecx*2]
push esi
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 + 2], bx
push esi
jne 0x1009aaa
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov word [edi], bx
jmp 0x1009adc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
jmp 0x1009ace
mov word [edi], cx
inc edi
inc edi
inc eax
inc eax
xor ecx, ecx
mov cx, word [eax]
cmp cx, bx
jne 0x1009ab6
mov word [edi], cx
inc edi
inc edi
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x1009ab6
mov ax, cx
mov word [edi], ax
push dword [ebp - 0x70]
push dword [ebp - 0xa8]
push 7
push ebx
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1009b32
push dword [ebp - 0x6c]
mov eax, dword [ebp - 0x88]
push dword [eax + 4]
push dword [ebp - 0x64]
push dword [eax + 8]
push 0x1001e30
call fcn.0100f591
add esp, 0x14
mov byte [0x101881c], 1
jmp 0x1009a33
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
jmp 0x1009a33
mov byte [ebp - 0x55], 1
cmp byte [ebp - 0x5d], bl
mov esi, dword [ebp - 0xa8]
je 0x1009b7f
cmp dword [ebp - 0x80], ebx
jne 0x1009b7f
push dword [ebp - 0x64]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1009b5d
inc dword [ebp - 0x7c]
mov byte [ebp - 0x55], 1
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x88]
push dword [eax + 8]
push 0x1001e00
call fcn.0100f591
add esp, 0xc
mov byte [0x101881c], 1
jmp 0x1009b82
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x78]
add eax, eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x98]
push eax
push ebx
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x7c]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
je 0x1009a09
mov edi, 0x103
cmp eax, edi
jne 0x1009c66
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x1009c66
cmp dword [ebp - 0xac], ebx
jne 0x1009c44
push ebx
lea ecx, [ebp - 0x5c]
call fcn.01008634
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call fcn.010086c9
test eax, eax
pop ecx
pop ecx
jne 0x1009c70
cmp dword [ebp - 0xb4], 0x80000002
mov eax, 0x1001df4
je 0x1009c24
mov eax, 0x1001de8
push dword [ebp - 0x6c]
push dword [ebp - 0x94]
push eax
push 0x1001dbc
call fcn.0100f591
add esp, 0x10
mov byte [0x101881c], 1
jmp 0x1009c4a
inc dword [ebp - 0x8c]
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xa0], eax
call fcn.01008676
cmp byte [ebp - 0x55], bl
je 0x1009933
jmp 0x1009c8b
lea ecx, [ebp - 0x5c]
call fcn.01008676
jmp 0x1009c8b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x55], 1
call fcn.01008676
jmp 0x1009c83
mov edi, 0x103
cmp dword [ebp - 0xb0], edi
je 0x1009c8f
mov byte [ebp - 0x55], 1
cmp dword [ebp - 0x64], ebx
je 0x1009c9d
push dword [ebp - 0x64]
call fcn.0100f5fc
pop ecx
cmp esi, ebx
je 0x1009ca8
push esi
call fcn.0100f5fc
pop ecx
cmp dword [ebp - 0x6c], ebx
je 0x1009cb6
push dword [ebp - 0x6c]
call fcn.0100f5fc
pop ecx
lea ecx, [ebp - 0x68]
call fcn.01008676
cmp byte [ebp - 0x55], bl
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f0dc
leave
ret