Function at 0x41bab0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x42aaa8
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.00402000
mov edi, 0x431f30
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.004020f0
test al, al
je 0x41bb29
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, 0x431f30
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.00408e60
mov al, byte [esp + 0x60]
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], ebx
mov byte [esp + 0x30], al
call fcn.00402000
mov edi, 0x431f30
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.004020f0
test al, al
je 0x41bb83
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, 0x431f30
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.00408e60
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 0x41bbad
push str.sPath.empty__
push str.Error______s
push 0x295
jmp 0x41bebf
cmp dword [esp + 0x64], ebx
jne 0x41bbc7
push str.hkRoot__0
push str.Error______s
push 0x296
jmp 0x41bebf
mov ecx, dword [0x42b140]
mov dword [esp + 0x14], 0xffffffff
push ecx
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00401e00
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x41bbfd
push str.sRegKey.empty__
push str.Error______s
push 0x299
jmp 0x41bebf
mov esi, dword [esp + 0x20]
lea edi, [eax - 1]
cmp eax, edi
jb 0x41bc21
cmp esi, ebx
je 0x41bc21
lea ecx, [esp + 0x1c]
call fcn.0041cd20
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add edi, esi
jmp 0x41bc26
mov edi, 0x42b144
cmp byte [edi], 0x5c
jne 0x41bcc4
mov ebp, dword [0x42b140]
lea ebx, [eax - 1]
cmp eax, ebx
jae 0x41bc49
call fcn.00422373
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41bc83
mov cl, byte [esi - 1]
test cl, cl
je 0x41bc83
cmp cl, 0xff
je 0x41bc83
push 1
lea ecx, [esp + 0x20]
call fcn.00402000
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.00402050
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub eax, ebx
cmp eax, ebp
jae 0x41bc8b
mov ebp, eax
test ebp, ebp
jbe 0x41bcc2
lea ecx, [esi + ebx]
sub eax, ebp
push eax
lea edx, [ecx + ebp]
push edx
push ecx
call fcn.00422880
mov esi, dword [esp + 0x30]
add esp, 0xc
sub esi, ebp
lea ecx, [esp + 0x1c]
push 0
push esi
call fcn.004020f0
test al, al
je 0x41bcc2
push esi
lea ecx, [esp + 0x20]
call fcn.00408e60
xor ebx, ebx
mov edx, dword [0x42b140]
push 1
lea eax, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1f], 0x5c
call fcn.00410990
mov esi, eax
mov eax, dword [0x42b140]
cmp esi, eax
jne 0x41bcff
push str.isRegKey__CHpCiString::npos
push str.Error______s
push 0x29d
jmp 0x41bebf
lea ecx, [esi + 1]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004106b0
mov ecx, dword [0x42b140]
mov byte [esp + 0x54], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00401e00
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.00402000
cmp dword [esp + 0x34], ebx
jne 0x41bd53
push str.sSubkey.empty__
push str.Error______s
push 0x29f
jmp 0x41bebf
mov eax, dword [esp + 0x24]
mov ebp, dword [0x42b140]
cmp eax, esi
jae 0x41bd6a
call fcn.00422373
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x41bdac
mov dl, byte [ecx - 1]
test dl, dl
je 0x41bdac
cmp dl, 0xff
je 0x41bdac
mov ebx, ecx
push 1
lea ecx, [esp + 0x20]
call fcn.00402000
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.00402050
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov edx, eax
sub edx, esi
cmp edx, ebp
jae 0x41bdb6
mov ebp, edx
cmp ebp, ebx
jbe 0x41bdf7
sub eax, ebp
lea edx, [ecx + ebp]
sub eax, esi
add edx, esi
push eax
add ecx, esi
push edx
push ecx
call fcn.00422880
mov esi, dword [esp + 0x30]
add esp, 0xc
sub esi, ebp
lea ecx, [esp + 0x1c]
push ebx
push esi
call fcn.004020f0
test al, al
je 0x41bdef
push esi
lea ecx, [esp + 0x20]
call fcn.00408e60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ebx
jne 0x41be0f
push str.sRegKey.empty__
push str.Error______s
push 0x2a1
jmp 0x41bebf
cmp ecx, ebx
jne 0x41be18
mov ecx, 0x42b144
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 0x41be48
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x2a4
jmp 0x41bebf
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], 0xffffffff
cmp ecx, ebx
jne 0x41be69
push str.hRegKey__0
push str.Error______s
push 0x2a6
jmp 0x41bebf
cmp byte [esp + 0x60], 1
jne 0x41be93
lea edx, [esp + 0x2c]
push edx
push ecx
call fcn.0041bfa0
add esp, 8
test al, al
jne 0x41bed4
push str.RegRecursiveDeleteKey__hRegKey__sSubkey____false
push str.Error______s
push 0x2a8
jmp 0x41bebf
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x41bea0
mov eax, 0x42b144
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x41bed4
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x2ac
push str.....includehpzgluehpzglue_registry.cpp
push ebx
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41bedd
mov dword [esp + 0x14], ebx
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41beec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41bf19
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41bf04
mov eax, 0x42b144
push ecx
push eax
push str.RegDeleteKey___s__Failed__lResult__0x_.8x
push ebx
push 0x4321c8
call fcn.004183b0
add esp, 0x14
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x41bf3d
mov al, byte [ecx - 1]
test al, al
je 0x41bf33
cmp al, 0xff
je 0x41bf33
dec al
mov byte [ecx - 1], al
jmp 0x41bf3d
dec ecx
push ecx
call fcn.0042213c
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 0x41bf82
mov al, byte [ecx - 1]
test al, al
je 0x41bf78
cmp al, 0xff
je 0x41bf78
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.0042213c
add esp, 4
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 2]
mov dword fs:[0], ecx
add esp, 0x48
ret