Function at 0x41ba30
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x429c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov al, byte [esp + 0x50]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x16], 0
mov byte [esp + 0x20], 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 + 0x20]
push ebp
call fcn.00405880
test al, al
je 0x41baa9
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, 0x42ea90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00405860
mov al, byte [esp + 0x60]
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], ebx
mov byte [esp + 0x30], 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 + 0x30]
push ebp
call fcn.00405880
test al, al
je 0x41bb03
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, 0x42ea90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.00405860
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x54], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [eax + 8], ebx
jne 0x41bb2d
push str.sPath.empty__
push str.Error______s
push 0x295
jmp 0x41be3f
cmp dword [esp + 0x64], ebx
jne 0x41bb47
push str.hkRoot__0
push str.Error______s
push 0x296
jmp 0x41be3f
mov ecx, dword [0x42a140]
mov dword [esp + 0x14], 0xffffffff
push ecx
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004055c0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x41bb7d
push str.sRegKey.empty__
push str.Error______s
push 0x299
jmp 0x41be3f
mov esi, dword [esp + 0x20]
lea edi, [eax - 1]
cmp eax, edi
jb 0x41bba1
cmp esi, ebx
je 0x41bba1
lea ecx, [esp + 0x1c]
call fcn.0041cca0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add edi, esi
jmp 0x41bba6
mov edi, 0x42a144
cmp byte [edi], 0x5c
jne 0x41bc44
mov ebp, dword [0x42a140]
lea ebx, [eax - 1]
cmp eax, ebx
jae 0x41bbc9
call fcn.004222e2
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41bc03
mov cl, byte [esi - 1]
test cl, cl
je 0x41bc03
cmp cl, 0xff
je 0x41bc03
push 1
lea ecx, [esp + 0x20]
call fcn.00404060
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.004057c0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub eax, ebx
cmp eax, ebp
jae 0x41bc0b
mov ebp, eax
test ebp, ebp
jbe 0x41bc42
lea ecx, [esi + ebx]
sub eax, ebp
push eax
lea edx, [ecx + ebp]
push edx
push ecx
call fcn.004227f0
mov esi, dword [esp + 0x30]
add esp, 0xc
sub esi, ebp
lea ecx, [esp + 0x1c]
push 0
push esi
call fcn.00405880
test al, al
je 0x41bc42
push esi
lea ecx, [esp + 0x20]
call fcn.00405860
xor ebx, ebx
mov edx, dword [0x42a140]
push 1
lea eax, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f], 0x5c
call fcn.00413f50
mov esi, eax
mov eax, dword [0x42a140]
cmp esi, eax
jne 0x41bc7f
push str.isRegKey__CHpCiString::npos
push str.Error______s
push 0x29d
jmp 0x41be3f
lea ecx, [esi + 1]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00413be0
mov ecx, dword [0x42a140]
mov byte [esp + 0x54], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.004055c0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.00404060
cmp dword [esp + 0x34], ebx
jne 0x41bcd3
push str.sSubkey.empty__
push str.Error______s
push 0x29f
jmp 0x41be3f
mov eax, dword [esp + 0x24]
mov ebp, dword [0x42a140]
cmp eax, esi
jae 0x41bcea
call fcn.004222e2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x41bd2c
mov dl, byte [ecx - 1]
test dl, dl
je 0x41bd2c
cmp dl, 0xff
je 0x41bd2c
mov ebx, ecx
push 1
lea ecx, [esp + 0x20]
call fcn.00404060
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x24]
call fcn.004057c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov edx, eax
sub edx, esi
cmp edx, ebp
jae 0x41bd36
mov ebp, edx
cmp ebp, ebx
jbe 0x41bd77
sub eax, ebp
lea edx, [ecx + ebp]
sub eax, esi
add edx, esi
push eax
add ecx, esi
push edx
push ecx
call fcn.004227f0
mov esi, dword [esp + 0x30]
add esp, 0xc
sub esi, ebp
lea ecx, [esp + 0x1c]
push ebx
push esi
call fcn.00405880
test al, al
je 0x41bd6f
push esi
lea ecx, [esp + 0x20]
call fcn.00405860
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ebx
jne 0x41bd8f
push str.sRegKey.empty__
push str.Error______s
push 0x2a1
jmp 0x41be3f
cmp ecx, ebx
jne 0x41bd98
mov ecx, 0x42a144
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebx
push ecx
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x41bdc8
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x2a4
jmp 0x41be3f
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], 0xffffffff
cmp ecx, ebx
jne 0x41bde9
push str.hRegKey__0
push str.Error______s
push 0x2a6
jmp 0x41be3f
cmp byte [esp + 0x60], 1
jne 0x41be13
lea edx, [esp + 0x2c]
push edx
push ecx
call fcn.0041bf20
add esp, 8
test al, al
jne 0x41be54
push str.RegRecursiveDeleteKey__hRegKey__sSubkey____false
push str.Error______s
push 0x2a8
jmp 0x41be3f
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x41be20
mov eax, 0x42a144
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x41be54
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x2ac
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push ebx
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41be5d
mov dword [esp + 0x14], ebx
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41be6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41be99
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41be84
mov eax, 0x42a144
push ecx
push eax
push str.RegDeleteKey___s__Failed__lResult__0x_.8x
push ebx
push 0x42f278
call fcn.00401480
add esp, 0x14
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x41bebd
mov al, byte [ecx - 1]
test al, al
je 0x41beb3
cmp al, 0xff
je 0x41beb3
dec al
mov byte [ecx - 1], al
jmp 0x41bebd
dec ecx
push ecx
call fcn.0042240d
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
pop ebp
cmp ecx, ebx
pop ebx
je 0x41bf02
mov al, byte [ecx - 1]
test al, al
je 0x41bef8
cmp al, 0xff
je 0x41bef8
dec al
mov byte [ecx - 1], al
mov al, byte [esp + 2]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
dec ecx
push ecx
call fcn.0042240d
add esp, 4
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 2]
mov dword fs:[0], ecx
add esp, 0x48
ret