Function at 0x1005d420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x10086ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp - 0x274]
add eax, 4
push eax
call fcn.10013a30
add esp, 4
cmp eax, 1
jae 0x1005d455
jmp 0x1005d67c
mov ecx, dword [ebp - 0x274]
cmp dword [ecx], 3
jne 0x1005d4ba
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x274]
add eax, 4
push eax
push reloc.RtlIhvOid.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov dword [ebp - 0xc], 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x274]
add edx, 0x198
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005d67c
push 0x20019
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1005d67c
cmp dword [ebp + 8], 0
je 0x1005d4f3
cmp dword [ebp + 8], 2
jne 0x1005d572
mov edx, dword [ebp - 0x274]
cmp dword [edx + 0x194], 0
jne 0x1005d572
mov eax, dword [ebp - 0x274]
add eax, 0x198
push eax
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
push 0x1007b35c
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 4], 0xffffffff
je 0x1005d56d
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.default
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005d672
cmp dword [ebp + 8], 1
jne 0x1005d5f0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 4], 0xffffffff
je 0x1005d5eb
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x274]
add ecx, 0x198
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1005d5e1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 2
mov ecx, dword [ebp - 0x274]
call fcn.1005d420
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005d672
mov eax, dword [ebp - 0x274]
add eax, 0x130
push eax
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
push str._s_s
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 4], 0xffffffff
je 0x1005d672
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x274]
add ecx, 0x198
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001362b
mov esp, ebp
pop ebp
ret 0xc