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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [ebp - 0x3c]
push str.Tool_RemoveRegistry
push eax
call fcn.0040ac70
add esp, 0xc
mov ebx, dword [ebp + 0xc]
push ebx
push str.szRegPath___s
lea ecx, [ebp - 0x3c]
push 1
push ecx
mov dword [ebp - 4], esi
call fcn.0040aed0
mov edi, dword [ebp + 8]
add esp, 0x10
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea edx, [ebp - 0x10]
push edx
push 0x20019
push esi
push ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x422c50
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x422b1c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push str.return___08x
lea ecx, [ebp - 0x3c]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], esi
jne 0x422b44
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push str.return___08x
push 2
lea edx, [ebp - 0x3c]
push edx
jmp 0x422c6e
mov eax, dword [ebp - 0x14]
lea ecx, [eax + eax + 2]
push ecx
call fcn.005367b6
add esp, 4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 0x14]
lea edx, [eax + eax + 4]
push edx
call fcn.005367b6
mov edi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x422bee
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
inc eax
push esi
dec edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x422be2
push esi
push ebx
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00422a10
add esp, 0x18
test eax, eax
jne 0x422be9
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0053677c
add esp, 4
push edi
call fcn.0053677c
add esp, 4
push 0
jmp 0x422c63
cmp eax, 0x103
jne 0x422c25
dec dword [ebp - 0x1c]
jne 0x422b79
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
call fcn.0053677c
add esp, 4
push edi
call fcn.0053677c
add esp, 4
xor esi, esi
push esi
push str.return___08x
push 2
lea edx, [ebp - 0x3c]
push edx
jmp 0x422c6e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0053677c
add esp, 4
push edi
call fcn.0053677c
add esp, 4
push 0
push str.return___08x
push 2
lea edx, [ebp - 0x3c]
push edx
jmp 0x422c6e
cmp eax, 2
je 0x422ae1
cmp eax, 3
je 0x422ae1
push esi
push str.return___08x
push 2
lea eax, [ebp - 0x3c]
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret