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

Disassembly:
push 0xffffffffffffffff
push 0x42aac8
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 0x41bfe7
push str.hRegKey__0
push str.Error______s
push 0x25c
jmp 0x41c1e2
mov edi, dword [esp + 0x44]
cmp dword [edi + 8], esi
jne 0x41c004
push str.sSubkey.empty__
push str.Error______s
push 0x25d
jmp 0x41c1e2
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x41c010
mov eax, 0x42b144
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 0x41c03b
push str._lResult__RegOpenKeyEx__hRegKey__sSubkey.c_str____0__KEY_ALL_ACCESS__hRegSubkey______ERROR_SUCCESS
push str.Error______s
push 0x25f
jmp 0x41c1e2
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 0x41c06d
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 0x41c1e2
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x41c197
push 0x105
call fcn.00422872
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x41c1d3
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 0x41c1f7
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.004020f0
test al, al
je 0x41c10f
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.0041bfa0
add esp, 8
mov dword [esp + 0x38], 0xffffffff
test al, al
mov eax, dword [esp + 0x24]
sete byte [esp + 0x13]
cmp eax, esi
je 0x41c159
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c150
cmp al, 0xff
je 0x41c150
dec al
mov byte [ecx], al
jmp 0x41c159
push ecx
call fcn.0042213c
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 0x41c208
push ebx
call fcn.0042213c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x41c07d
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 0x41c1b2
mov eax, 0x42b144
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x41c25d
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x271
jmp 0x41c1e2
push str.pszSubkeyName__0
push str.Error______s
push 0x265
push str.....includehpzgluehpzglue_registry.cpp
push esi
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41c237
push str._lResult__RegEnumKey__hRegSubkey___nSubkeys___iSubkey___1___pszSubkeyName___MAX_PATH__1______ERROR_SUCCESS
push str.Error______s
push 0x268
jmp 0x41c217
push str.RegRecursiveDeleteKey__hRegSubkey__pszSubkeyName____false
push str.Error______s
push 0x26a
push str.....includehpzgluehpzglue_registry.cpp
push esi
push 0x4321c8
call fcn.00418600
add esp, 0x18
cmp ebx, esi
je 0x41c237
push ebx
call fcn.0042213c
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
cmp eax, esi
pop esi
pop ebp
pop ebx
je 0x41c24a
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 0x41c237