Function at 0x40c74c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
mov eax, 0x48f34c
push ebx
push esi
push edi
call fcn.004696b8
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b594
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40c7b9
mov word [ebp - 0x20], 8
mov edx, 0x48c1f5
lea eax, [ebp - 4]
call fcn.00474b48
inc dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ca09
push ebx
call sub.KERNEL32.DLL_lstrlenA
dec eax
jle 0x40c7dd
push ebx
call sub.KERNEL32.DLL_lstrlenA
movsx ecx, byte [ebx + eax - 1]
cmp ecx, 0x5c
jne 0x40c7dd
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov byte [ebx + eax - 1], 0
mov edi, 0x20019
test ebx, ebx
je 0x40c917
push 0x48c20d
push ebx
call fcn.0040b39c
add esp, 8
mov esi, eax
test esi, esi
jne 0x40c803
mov edi, 0x2001f
lea eax, [ebp - 0x38]
push eax
push edi
push 0
push ebx
mov edx, dword [ebp - 0x34]
push edx
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x40c8be
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000002
je 0x40c865
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000003
je 0x40c865
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000000
je 0x40c865
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000001
je 0x40c865
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000005
je 0x40c865
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000006
je 0x40c865
mov ecx, dword [ebp - 0x34]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
push 0x48c20f
lea eax, [ebp - 0x438]
push eax
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x20], 0x14
add esp, 0xc
lea edx, [ebp - 0x438]
lea eax, [ebp - 8]
call fcn.00474b48
inc dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
mov eax, 1
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ca09
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000002
je 0x40c907
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000003
je 0x40c907
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000000
je 0x40c907
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000001
je 0x40c907
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000005
je 0x40c907
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000006
je 0x40c907
mov ecx, dword [ebp - 0x34]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov ebx, esi
test ebx, ebx
jne 0x40c7ea
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x34]
push edx
call sub.ADVAPI32.DLL_RegDeleteValueA
test eax, eax
je 0x40c9b5
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000002
je 0x40c975
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000003
je 0x40c975
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000000
je 0x40c975
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000001
je 0x40c975
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000005
je 0x40c975
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000006
je 0x40c975
mov ecx, dword [ebp - 0x34]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x20], 0x20
mov edx, 0x48c225
lea eax, [ebp - 0xc]
call fcn.00474b48
inc dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
call fcn.004578d8
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
mov eax, 1
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ca09
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000002
je 0x40c9fe
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000003
je 0x40c9fe
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000000
je 0x40c9fe
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x80000001
je 0x40c9fe
mov eax, dword [ebp - 0x34]
cmp eax, 0x80000005
je 0x40c9fe
mov edx, dword [ebp - 0x34]
cmp edx, 0x80000006
je 0x40c9fe
mov ecx, dword [ebp - 0x34]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret