Function at 0x41c390
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x429c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov al, byte [esp + 0x68]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x40], al
call fcn.00404060
mov edi, 0x42ea90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.00405880
test al, al
je 0x41c41e
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
mov esi, 0x42ea90
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 [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x64], ebx
cmp edi, ebx
jne 0x41c43b
push str.hRegKey__0
push str.Error______s
push 0x32a
jmp 0x41c4af
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 8], ebx
jne 0x41c455
push str.sPath.empty__
push str.Error______s
push 0x32b
jmp 0x41c4af
mov esi, dword [esp + 0x74]
cmp dword [esi + 8], ebx
jne 0x41c46f
push str.sValueName.empty__
push str.Error______s
push 0x32c
jmp 0x41c4af
cmp dword [esp + 0x7c], ebx
jne 0x41c486
push str.psLocation__0
push str.Error______s
push 0x32d
jmp 0x41c4af
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push ebx
push edx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x41c4c7
push str._lResult__RegQueryInfoKey__hRegKey__0__0__0__nSubkeys__0__0__0__0__0__0__0______ERROR_SUCCESS
push str.Error______s
push 0x32f
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push ebx
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41c703
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x41c4d3
mov eax, 0x42a144
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push ebx
push edx
push ebx
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x41c77b
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x41c503
cmp eax, 7
jne 0x41c77b
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41c77b
push eax
call fcn.00422d90
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], esi
jne 0x41c536
push str.pbData__0
push str.Error______s
push 0x337
jmp 0x41c903
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41c546
mov eax, 0x42a144
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push esi
push edx
push ebx
push eax
mov eax, dword [esp + 0x80]
push eax
call edi
cmp eax, ebx
je 0x41c575
push str._lResult__RegQueryValueEx__hRegKey__sValueName.c_str____0__dwType__pbData__cbData______ERROR_SUCCESS
push str.Error______s
push 0x33a
jmp 0x41c903
mov ebp, dword [esp + 0x78]
mov edx, dword [ebp + 8]
cmp edx, ebx
jne 0x41c5a3
mov ecx, dword [0x42a140]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x80]
push ebx
push edx
call fcn.004055c0
mov byte [esp + 0x13], 1
jmp 0x41c6f2
mov al, byte [esp + 0x80]
test al, al
jne 0x41c5ef
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
push ebx
mov ecx, ebp
call fcn.00407800
cmp eax, ebx
jne 0x41c77f
mov eax, dword [0x42a140]
mov ecx, dword [esp + 0x70]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x88]
call fcn.004055c0
mov byte [esp + 0x13], 1
jmp 0x41c6f2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2c], dl
push ecx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004057c0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov byte [esp + 0x64], 1
mov dword [esp + 0x28], ecx
mov ebx, 0x42a144
je 0x41c634
mov ebx, eax
test ecx, ecx
jne 0x41c63c
xor esi, esi
jmp 0x41c69d
mov edi, dword [esp + 0x34]
test edi, edi
jbe 0x41c697
cmp ecx, edi
ja 0x41c697
mov ebp, dword [esp + 0x30]
mov eax, 1
sub eax, ecx
push ebx
add edi, eax
push edi
push ebp
call fcn.0041cc50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c693
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push esi
call fcn.00413ec0
add esp, 0xc
test eax, eax
je 0x41c6da
sub ebp, esi
push ebx
lea edi, [edi + ebp - 1]
lea ebp, [esi + 1]
push edi
push ebp
call fcn.0041cc50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41c666
mov ebp, dword [esp + 0x78]
mov esi, dword [0x42a140]
mov eax, dword [0x42a140]
cmp esi, eax
je 0x41c74d
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
push eax
push 0
push edx
call fcn.004055c0
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x41c6f0
mov al, byte [ecx - 1]
test al, al
je 0x41c6e6
cmp al, 0xff
je 0x41c6e6
dec al
mov byte [ecx - 1], al
jmp 0x41c6f0
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x78]
sub esi, eax
jmp 0x41c69d
dec ecx
push ecx
call fcn.0042240d
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41c703
push eax
call fcn.0042240d
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41c712
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
cmp ecx, ebx
pop ebx
je 0x41c993
mov al, byte [ecx - 1]
test al, al
je 0x41c989
cmp al, 0xff
je 0x41c989
dec al
mov byte [ecx - 1], al
mov al, byte [esp + 3]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x64], 0
test ecx, ecx
je 0x41c777
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x41c76e
cmp al, 0xff
je 0x41c76e
dec al
xor ebx, ebx
mov byte [ecx], al
jmp 0x41c77f
push ecx
call fcn.0042240d
add esp, 4
xor ebx, ebx
jmp 0x41c77f
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, ebx
jbe 0x41c6f2
push 0x105
call fcn.00422d90
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41c8f4
mov eax, dword [esp + 0x6c]
push 0x105
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41c91b
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41c92c
cmp dword [esp + 0x14], ebx
je 0x41c93d
mov eax, dword [esp + 0x70]
push 0x42c4d4
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00406880
push esi
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x7c], 2
call fcn.00406880
add esp, 0x18
mov ecx, dword [0x42a140]
mov byte [esp + 0x64], 3
push ecx
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.004055c0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x41c84b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c842
cmp al, 0xff
je 0x41c842
dec al
mov byte [ecx], al
jmp 0x41c84b
push ecx
call fcn.0042240d
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x64], 0
je 0x41c881
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c878
cmp al, 0xff
je 0x41c878
dec al
mov byte [ecx], al
jmp 0x41c881
push ecx
call fcn.0042240d
add esp, 4
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.0042240d
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
je 0x41c975
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.0041c390
add esp, 0x18
cmp al, 1
mov byte [esp + 0x13], al
je 0x41c6f2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x14], ebx
jb 0x41c78d
jmp 0x41c6f2
push str.pszSubkeyName__0
push str.Error______s
push 0x35a
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push ebx
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41c6f2
push str._lResult__RegEnumKey__hRegKey__iSubkey__pszSubkeyName___MAX_PATH__1______ERROR_SUCCESS
push str.Error______s
push 0x35c
jmp 0x41c94c
push str._lResult__RegOpenKeyEx__hRegKey__pszSubkeyName__0__KEY_READ__hRegSubkey______ERROR_SUCCESS
push str.Error______s
push 0x35e
jmp 0x41c94c
push str.hRegSubkey__0
push str.Error______s
push 0x35f
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push ebx
push 0x42f278
call fcn.004016d0
add esp, 0x18
cmp esi, ebx
je 0x41c6f2
push esi
call fcn.0042240d
add esp, 4
jmp 0x41c6f2
push str.sNewPath.empty__
push str.Error______s
push 0x363
jmp 0x41c903
dec ecx
push ecx
call fcn.0042240d
add esp, 4
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
add esp, 0x58
ret