Function at 0x40a947
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
xor eax, eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
call fcn.004045c9
lea eax, [ebp - 0x34]
push eax
lea edi, [ebp - 0x20]
call fcn.0041dcc6
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.004046a2
cmp dword [ebp - 0x30], 2
je 0x40a992
lea esi, [ebp - 0x34]
call fcn.00408ca5
xor al, al
jmp 0x40aacf
mov edi, dword [ebp - 0x34]
mov eax, dword [edi]
push ebx
push 0x10
pop esi
sub eax, esi
call fcn.00409a5a
mov ebx, eax
push str._cmdloc
lea eax, [ebp - 0x14]
add ebx, esi
push eax
mov dword [ebp - 0x14], ebx
call fcn.00408e89
test eax, eax
jne 0x40a9e6
mov eax, dword [edi + 4]
sub eax, esi
call fcn.00409a5a
mov edi, eax
add edi, esi
push 0x5c
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], edi
call fcn.00408aa2
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x40a9ee
lea eax, [edi - 0x10]
call fcn.004046a2
lea eax, [ebx - 0x10]
jmp 0x40aabf
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
xor edx, edx
lea eax, [ebp - 0xc]
call fcn.00408b38
mov eax, dword [0x455ee0]
mov esi, 0x455ee0
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [0x455ee0]
add edi, 0x10
mov ecx, esi
mov dword [ebp - 0x18], edi
call dword [eax + 0xc]
mov ebx, eax
add ebx, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 0x20], ebx
call fcn.0041efff
push 0x5c
xor ecx, ecx
lea esi, [ebp - 8]
mov dword [ebp - 0x1c], eax
call fcn.00408a47
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx - 0xc]
inc eax
lea edx, [ebp - 4]
push edx
sub ecx, eax
mov edx, eax
mov eax, esi
call fcn.00408b38
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push dword [ebp - 4]
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40aad3
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40aad3
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [ebx - 0x10]
call fcn.004046a2
lea eax, [edi - 0x10]
call fcn.004046a2
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046a2
lea esi, [ebp - 0x34]
call fcn.00408ca5
xor al, al
pop ebx
pop edi
pop esi
leave
ret
push 0x5c
lea esi, [ebp - 4]
call fcn.00408aa2
mov esi, eax
mov ecx, esi
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00408baf
lea edi, [ebp - 0x18]
call fcn.0040872e
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004046a2
lea edx, [esi + 1]
mov esi, dword [ebp - 4]
mov ecx, dword [esi - 0xc]
lea eax, [ebp - 0x24]
push eax
sub ecx, edx
lea eax, [ebp - 4]
call fcn.00408b38
lea eax, [ebp - 0x24]
lea edi, [ebp - 0x20]
call fcn.0040872e
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [esi - 0x10]
call fcn.004046a2
xor esi, esi
cmp dword [ebp - 0x10], esi
jne 0x40ab83
xor bl, bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046a2
lea esi, [ebp - 0x34]
call fcn.00408ca5
mov al, bl
jmp 0x40aace
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
inc edx
push eax
sub ecx, edx
lea eax, [ebp - 0xc]
call fcn.00408b38
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00420f6b
mov edi, dword [ebp - 0x24]
pop ecx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40ac04
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ac04
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40ac04
cmp dword [ebp - 0x24], esi
jne 0x40ac04
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [edi - 0x10]
call fcn.004046a2
mov bl, 1
jmp 0x40ab3d