Function at 0x41b460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
xor ebp, ebp
mov ecx, dword [eax + 8]
push esi
cmp ecx, ebp
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
jne 0x41b4b1
push str.sPath.empty__
push str.Error______s
push 0x26
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push ebp
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b67f
mov esi, dword [esp + 0x30]
cmp dword [esi + 8], ebp
jne 0x41b4c8
push str.sValueName.empty__
push str.Error______s
push 0x27
jmp 0x41b499
mov ebx, dword [esp + 0x34]
cmp ebx, ebp
jne 0x41b4de
push str.psValueData__0
push str.Error______s
push 0x28
jmp 0x41b499
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
jne 0x41b4f4
push str.hkRoot__0
push str.Error______s
push 0x29
jmp 0x41b499
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x41b500
mov eax, 0x42a144
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x41b52c
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x2b
jmp 0x41b499
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x41b538
mov eax, 0x42a144
lea ecx, [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x41b67f
cmp dword [esp + 0x20], 1
je 0x41b576
push str.dwType___REG_SZ
push str.Error______s
push 0x2f
jmp 0x41b499
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x41b58f
push str.cbData__0
push str.Error______s
push 0x30
jmp 0x41b499
push eax
call fcn.00422d90
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x24], esi
jne 0x41b5b3
push str.pbData__0
push str.Error______s
push 0x32
jmp 0x41b499
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
cmp eax, ebp
jne 0x41b5c3
mov eax, 0x42a144
lea edx, [esp + 0x1c]
push edx
push esi
push ebp
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x41b5ec
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x35
jmp 0x41b499
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
call fcn.004042f0
cmp eax, ebp
jae 0x41b60a
call fcn.004220b6
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41b62f
mov al, byte [ecx - 1]
test al, al
je 0x41b62f
cmp al, 0xff
je 0x41b62f
test ebp, ebp
jne 0x41b653
dec al
push ebp
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404060
jmp 0x41b678
test ebp, ebp
jne 0x41b63e
push 1
mov ecx, ebx
call fcn.00404060
jmp 0x41b678
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x41b64a
cmp eax, ebp
jae 0x41b65b
push 1
mov ecx, ebx
call fcn.00404060
push ebp
mov ecx, ebx
call fcn.004059a0
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov byte [esp + 0x13], 1
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41b68e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x41b69f
push eax
call fcn.0042240d
add esp, 4
mov edx, dword [esp + 0x18]
cmp edx, ebp
je 0x41b6e6
cmp byte [esp + 0x38], 1
jne 0x41b6e6
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov ecx, 0x42a144
cmp eax, ebp
je 0x41b6c0
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x41b6d0
mov eax, 0x42a144
push edx
push ecx
push eax
push str.RegGetStringValue___s___s__Failed__lResult___d
push ebp
push 0x42f278
call fcn.00401480
add esp, 0x18
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret