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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, esp
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], ecx
call sub.ADVAPI32.DLL_RegDeleteKeyA
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x407b6c
mov dword [ebp - 0x10], 1
jmp 0x407de1
xor eax, eax
mov ecx, 0x20019
lea edx, [ebp - 0x124]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, esp
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x124]
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], edi
mov dword [ebx], esi
mov dword [ebx + 0xc], 0x20019
mov dword [ebx + 8], 0
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x407c06
cmp dword [ebp - 0x18], 2
jne 0x407be6
lea eax, str.Key_not_found._n
mov dword [esp], eax
call fcn.0073df84
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x144], eax
jmp 0x407de1
lea eax, str.Error_opening_key._n
mov dword [esp], eax
call fcn.0073df84
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x148], eax
jmp 0x407de1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x14c], eax
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
mov ecx, dword [ebp - 0x14c]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax - 1]
cmp eax, 0x5c
je 0x407c4a
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
xor eax, eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x12c]
lea esi, [ebp - 0x120]
mov dword [ebp - 0x1c], 0x104
mov edi, dword [ebp - 0x124]
mov ebx, esp
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x12c]
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], esi
mov dword [ebx], edi
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x407d8c
jmp 0x407cc3
mov eax, 0x208
lea ecx, [ebp - 0x120]
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], 0x208
mov dword [esp + 8], ecx
mov dword [ebp - 0x15c], eax
call fcn.00407df0
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x160], eax
call fcn.00407b24
cmp eax, 0
jne 0x407d13
jmp 0x407d8a
xor eax, eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x12c]
lea esi, [ebp - 0x120]
mov dword [ebp - 0x1c], 0x104
mov edi, dword [ebp - 0x124]
mov ebx, esp
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x12c]
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], esi
mov dword [ebx], edi
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x407cc3
jmp 0x407d8c
mov eax, dword [ebp - 0x14]
add eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov eax, dword [ebp - 0x124]
mov ecx, esp
mov dword [ecx], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, esp
mov dword [esi + 4], edx
mov dword [esi], ecx
mov dword [ebp - 0x170], eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x407dda
mov dword [ebp - 0x10], 1
jmp 0x407de1
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x18c
pop esi
pop edi
pop ebx
pop ebp
ret