Function at 0x407033
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push dword [ebp + 8]
xor eax, eax
lea esi, [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call fcn.004015d9
lea eax, [ebp - 0x3c]
push eax
mov eax, esi
call fcn.00408db3
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
cmp dword [ebp - 0x38], 2
je 0x407077
mov byte [ebp - 1], 0
jmp 0x4072ae
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi]
push ebx
push 0x10
pop ebx
sub eax, ebx
call fcn.00401c33
mov edi, eax
add edi, ebx
push str._cmdloc
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4070a7
mov byte [ebp - 1], 0
jmp 0x4072a5
mov eax, dword [esi + 4]
sub eax, ebx
call fcn.00401c33
mov esi, eax
add esi, ebx
push 0x5c
mov eax, esi
mov dword [ebp - 0x14], esi
call fcn.004026aa
test eax, eax
pop ecx
je 0x4070d0
sub eax, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x4070d9
mov byte [ebp - 1], 0
jmp 0x40729d
lea ecx, [ebp - 0xc]
push ecx
xor ecx, ecx
lea edi, [ebp - 0x14]
call fcn.00406cc7
mov eax, dword [0x438af8]
mov esi, 0x438af8
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x438af8]
add ebx, 0x10
mov ecx, esi
mov dword [ebp - 0x18], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
call fcn.004079ca
push 0x5c
xor ecx, ecx
lea esi, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
call fcn.0040259b
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax - 0xc]
inc ecx
lea edx, [ebp - 8]
sub eax, ecx
push edx
mov edi, esi
call fcn.00406cc7
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push edi
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40717f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40717f
lea eax, [edi - 0x10]
call fcn.0040147d
mov byte [ebp - 1], 0
jmp 0x407279
push 0x5c
lea esi, [ebp - 8]
call fcn.004025c0
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
mov eax, ebx
call fcn.00402629
lea edi, [ebp - 0x18]
call fcn.00401bc0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 1]
mov eax, esi
call fcn.004072bd
lea edi, [ebp - 0x20]
call fcn.00401bc0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
cmp dword [ebp - 0x10], 0
jne 0x4071e7
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 1], 0
jmp 0x407279
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
inc ecx
lea edx, [ebp - 8]
sub eax, ecx
push edx
lea edi, [ebp - 0x14]
call fcn.00406cc7
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call fcn.0042351b
mov edi, dword [ebp - 8]
pop ecx
pop ecx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
mov ebx, dword [ebp - 0x18]
jne 0x40726d
lea eax, [ebp - 0x18]
push eax
push 0xf003f
xor esi, esi
push esi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40726d
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40726d
cmp dword [ebp - 0x1c], esi
jne 0x40726d
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [edi - 0x10]
call fcn.0040147d
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [ebx - 0x10]
call fcn.0040147d
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040147d
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x14]
lea eax, [esi - 0x10]
call fcn.0040147d
lea eax, [edi - 0x10]
call fcn.0040147d
pop ebx
lea edi, [ebp - 0x3c]
call fcn.004045dd
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret