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

Disassembly:
sub esp, 0x52c
mov eax, dword [0xb196ec]
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.00a7ffb0
push 0x103
lea ecx, [esp + 0x235]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x23c], bl
call fcn.00a7ffb0
add esp, 0x18
cmp esi, ebx
je 0x98f427
cmp byte [esi], bl
je 0x98f427
cmp edi, ebx
je 0x98f427
cmp byte [edi], bl
je 0x98f427
push esi
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push esi
call fcn.00a7a2c0
add esp, 8
test eax, eax
je 0x98f219
lea ecx, [esp + 0x224]
mov dword [esp + 0x14], 1
call fcn.00958390
jmp 0x98f21d
mov dword [esp + 0x14], ebx
push edi
lea eax, [esp + 0x32c]
push str.typelib_s
push eax
call fcn.00a78f30
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 9
push ebx
lea edx, [esp + 0x334]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x98f40c
push ebp
push 0x103
lea eax, [esp + 0x435]
push ebx
push eax
mov byte [esp + 0x43c], bl
call fcn.00a7ffb0
push 0x207
lea ecx, [esp + 0x31]
push ebx
push ecx
call fcn.00a7ffb0
mov eax, dword [esp + 0x28]
add esp, 0x18
push 0x208
lea edx, [esp + 0x24]
push edx
push ebx
push eax
xor ebp, ebp
mov byte [esp + 0x30], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x98f400
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x438]
push str.typelib_s_s0win32
push edx
call fcn.00a78f30
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 1
push ebx
lea ecx, [esp + 0x43c]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x98f3ae
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x34], 0x208
mov byte [esp + 0x38], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x20], bl
je 0x98f3ae
cmp dword [esp + 0x18], ebx
je 0x98f34c
push 1
lea eax, [esp + 0x24]
push eax
call fcn.00977760
lea ecx, [esp + 0x20]
call fcn.00958390
push ebx
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x98f3f8
lea eax, [esp + 0x20]
push 0x2e
push eax
call fcn.00a7aa50
add esp, 8
cmp eax, ebx
je 0x98f3aa
push 0x5c
push eax
call fcn.00a7a2c0
add esp, 8
cmp eax, ebx
je 0x98f3aa
push ebx
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [eax], bl
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x98f3f8
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push 0x208
lea eax, [esp + 0x24]
push eax
inc ebp
push ebp
push ecx
mov byte [esp + 0x30], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x98f2b1
mov edx, dword [esp + 0x10]
push edx
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.00a78f21
add esp, 0x52c
ret
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x10]
push edx
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.00a78f21
add esp, 0x52c
ret
mov ecx, dword [esp + 0x530]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x52c
ret