Function at 0x1008a800
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x52c
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x32d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x334], bl
call fcn.1012e060
push 0x103
lea ecx, [esp + 0x235]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x23c], bl
call fcn.1012e060
add esp, 0x18
cmp esi, ebx
je 0x1008aabf
cmp byte [esi], bl
je 0x1008aabf
cmp edi, ebx
je 0x1008aabf
cmp byte [edi], bl
je 0x1008aabf
push esi
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push esi
call fcn.10128490
add esp, 8
test eax, eax
je 0x1008a8ad
lea eax, [esp + 0x224]
push eax
mov dword [esp + 0x18], 1
call fcn.1005f590
add esp, 4
jmp 0x1008a8b1
mov dword [esp + 0x14], ebx
push edi
lea ecx, [esp + 0x32c]
push str.typelib_s
push ecx
call fcn.10127dc0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 9
push ebx
lea eax, [esp + 0x334]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1008aaa4
push ebp
push 0x103
lea ecx, [esp + 0x435]
push ebx
push ecx
mov byte [esp + 0x43c], bl
call fcn.1012e060
push 0x207
lea edx, [esp + 0x31]
push ebx
push edx
call fcn.1012e060
mov ecx, dword [esp + 0x28]
add esp, 0x18
push 0x208
lea eax, [esp + 0x24]
push eax
push ebx
push ecx
xor ebp, ebp
mov byte [esp + 0x30], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1008aa98
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x438]
push str.typelib_s_s0win32
push eax
call fcn.10127dc0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
lea edx, [esp + 0x43c]
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1008aa46
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x34], 0x208
mov byte [esp + 0x38], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x20], bl
je 0x1008aa46
cmp dword [esp + 0x18], ebx
je 0x1008a9e4
push 1
lea ecx, [esp + 0x24]
push ecx
call fcn.100796e0
lea edx, [esp + 0x20]
push edx
call fcn.1005f590
add esp, 4
push ebx
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1008aa90
lea edx, [esp + 0x20]
push 0x2e
push edx
call fcn.10129030
add esp, 8
cmp eax, ebx
je 0x1008aa42
push 0x5c
push eax
call fcn.10128490
add esp, 8
cmp eax, ebx
je 0x1008aa42
mov byte [eax], bl
push ebx
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1008aa90
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
push 0x208
lea edx, [esp + 0x24]
push edx
inc ebp
push ebp
push eax
mov byte [esp + 0x30], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1008a945
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.10127db1
add esp, 0x52c
ret
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, dword [esp + 8]
pop esi
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.10127db1
add esp, 0x52c
ret
mov ecx, dword [esp + 0x530]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10127db1
add esp, 0x52c
ret