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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40abe8
xor eax, eax
jmp 0x40adca
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40ac12
mov eax, dword [ebp - 0x20]
jmp 0x40adca
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40ac44
mov dword [ebp - 4], 0x32
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [eax + edx + 2]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x40ac7d
or eax, 0xffffffff
jmp 0x40adca
mov eax, dword [ebp - 4]
add eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x40aca3
or eax, 0xffffffff
jmp 0x40adca
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040ae00
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x40acec
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40ad79
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040ae00
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.0040ab90
test eax, eax
je 0x40ad49
jmp 0x40ad79
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40ad1c
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8