Function at 0x41bf20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x429c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
jne 0x41bf67
push str.hRegKey__0
push str.Error______s
push 0x25c
jmp 0x41c162
mov edi, dword [esp + 0x44]
cmp dword [edi + 8], esi
jne 0x41bf84
push str.sSubkey.empty__
push str.Error______s
push 0x25d
jmp 0x41c162
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x41bf90
mov eax, 0x42a144
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41bfbb
push str._lResult__RegOpenKeyEx__hRegKey__sSubkey.c_str____0__KEY_ALL_ACCESS__hRegSubkey______ERROR_SUCCESS
push str.Error______s
push 0x25f
jmp 0x41c162
push esi
push esi
mov eax, dword [esp + 0x1c]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x30]
push esi
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x41bfed
push str._lResult__RegQueryInfoKey__hRegSubkey__0__0__0__nSubkeys__0__0__0__0__0__0__0______ERROR_SUCCESS
push str.Error______s
push 0x261
jmp 0x41c162
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x41c117
push 0x105
call fcn.00422d90
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x41c153
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, edx
mov edx, dword [esp + 0x14]
push 0x105
dec ecx
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
jne 0x41c177
mov al, byte [esp + 0x40]
mov edi, ebx
mov byte [esp + 0x20], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], esi
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00405880
test al, al
je 0x41c08f
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
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 + 0x24]
mov dword [esp + 0x28], ebp
xor esi, esi
mov byte [eax + ebp], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x40], esi
call fcn.0041bf20
add esp, 8
mov dword [esp + 0x38], 0xffffffff
test al, al
mov eax, dword [esp + 0x24]
sete byte [esp + 0x13]
cmp eax, esi
je 0x41c0d9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c0d0
cmp al, 0xff
je 0x41c0d0
dec al
mov byte [ecx], al
jmp 0x41c0d9
push ecx
call fcn.0042240d
add esp, 4
mov al, byte [esp + 0x13]
mov dword [esp + 0x24], esi
test al, al
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
jne 0x41c188
push ebx
call fcn.0042240d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x41bffd
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 4]
mov dword [esp + 0x14], esi
cmp eax, esi
jne 0x41c132
mov eax, 0x42a144
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x41c1dd
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x271
jmp 0x41c162
push str.pszSubkeyName__0
push str.Error______s
push 0x265
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push esi
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41c1b7
push str._lResult__RegEnumKey__hRegSubkey___nSubkeys___iSubkey___1___pszSubkeyName___MAX_PATH__1______ERROR_SUCCESS
push str.Error______s
push 0x268
jmp 0x41c197
push str.RegRecursiveDeleteKey__hRegSubkey__pszSubkeyName____false
push str.Error______s
push 0x26a
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push esi
push 0x42f278
call fcn.004016d0
add esp, 0x18
cmp ebx, esi
je 0x41c1b7
push ebx
call fcn.0042240d
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
cmp eax, esi
pop esi
pop ebp
pop ebx
je 0x41c1ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 2]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov byte [esp + 0x12], 1
jmp 0x41c1b7