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

Disassembly:
sub esp, 0xd54
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0xd50], eax
push ebx
push esi
xor ebx, ebx
push 0x40f
lea eax, [esp + 0x12d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x134], bl
call fcn.1012e060
push 0x40f
lea ecx, [esp + 0x549]
push ebx
push ecx
mov byte [esp + 0x550], bl
call fcn.1012e060
push 0x40f
lea edx, [esp + 0x965]
push ebx
push edx
mov byte [esp + 0x96c], bl
call fcn.1012e060
push 0x103
lea eax, [esp + 0x4d]
push ebx
push eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x54], bl
call fcn.1012e060
add esp, 0x30
cmp esi, ebx
je 0x1008a62a
cmp byte [esi], bl
je 0x1008a62a
push esi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push esi
call fcn.10128490
add esp, 8
test eax, eax
je 0x1008a405
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], 1
call fcn.1005f590
add esp, 4
jmp 0x1008a409
mov dword [esp + 0x14], ebx
push ebp
push edi
lea eax, [esp + 0x540]
push 0x10157f78
push eax
call fcn.10127dc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 9
push ebx
lea edx, [esp + 0x54c]
push edx
push bind
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebp
cmp esi, ebx
jne 0x1008a60d
mov ecx, dword [esp + 0x14]
push 0x410
lea eax, [esp + 0x134]
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x140], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1008a5d6
lea esp, [esp]
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x954]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x950]
push ecx
lea edx, [esp + 0x544]
push str.clsid_sInProcServer32
push edx
mov byte [esp + 0x13c], bl
call fcn.10127dc0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 1
push ebx
lea ecx, [esp + 0x54c]
push ecx
push bind
call edi
mov esi, eax
push esi
call ebp
cmp esi, ebx
je 0x1008a51b
lea edx, [esp + 0x950]
push edx
lea eax, [esp + 0x544]
push str.clsid_sLocalServer32
push eax
call fcn.10127dc0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
lea edx, [esp + 0x54c]
push edx
push bind
call edi
mov esi, eax
push esi
call ebp
cmp esi, ebx
jne 0x1008a5a6
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push eax
mov dword [esp + 0x3c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x1008a55d
cmp eax, 2
jne 0x1008a5a6
cmp byte [esp + 0x130], bl
je 0x1008a5a6
cmp dword [esp + 0x1c], ebx
je 0x1008a58b
push 1
lea edx, [esp + 0x134]
push edx
call fcn.100796e0
lea eax, [esp + 0x130]
push eax
call fcn.1005f590
add esp, 4
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x138]
push edx
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1008a5fe
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0x410
lea eax, [esp + 0x134]
push eax
push ecx
push edx
mov byte [esp + 0x140], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1008a480
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0xd50]
xor ecx, esp
call fcn.10127db1
add esp, 0xd54
ret
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0xd50]
xor ecx, esp
call fcn.10127db1
add esp, 0xd54
ret
mov ecx, dword [esp + 0xd58]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10127db1
add esp, 0xd54
ret