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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call fcn.00405d14
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0044ef90
pop ecx
lea ecx, [ebp - 0x20]
call fcn.004058a3
cmp dword [ebp - 0x34], 2
je 0x4570e6
lea esi, [ebp - 0x38]
call fcn.0043a2a0
xor al, al
jmp 0x4571eb
mov esi, dword [ebp - 0x38]
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0041f17d
push str._cmdloc
lea eax, [ebp - 0x10]
push eax
call fcn.0042e27d
test eax, eax
je 0x45710f
lea ecx, [ebp - 0x10]
call fcn.004058a3
jmp 0x4570d7
add esi, 4
push esi
lea eax, [ebp - 8]
push eax
call fcn.0041f17d
push 0x5c
lea esi, [ebp - 8]
call fcn.00438f27
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x457139
mov ecx, esi
call fcn.004058a3
jmp 0x457105
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor edx, edx
call fcn.00438f7e
lea ecx, [ebp - 0x18]
call fcn.0040932c
lea ecx, [ebp - 0x1c]
call fcn.0040932c
lea eax, [ebp - 0xc]
call fcn.0045efe9
push 0x5c
xor ecx, ecx
lea esi, [ebp - 0xc]
mov dword [ebp - 0x20], eax
call fcn.00438efd
lea edx, [eax + 1]
lea eax, [ebp - 4]
push eax
mov eax, esi
push eax
call fcn.00438f45
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push edi
push dword [ebp - 4]
push dword [ebp - 0x20]
call ebx
cmp eax, edi
je 0x4571ef
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push dword [ebp - 4]
push dword [ebp - 0x20]
call ebx
cmp eax, edi
je 0x4571ef
lea ecx, [ebp - 4]
call fcn.004058a3
lea ecx, [ebp - 0x1c]
call fcn.004058a3
lea ecx, [ebp - 0x18]
call fcn.004058a3
mov ecx, esi
call fcn.004058a3
lea ecx, [ebp - 8]
call fcn.004058a3
lea ecx, [ebp - 0x10]
call fcn.004058a3
lea esi, [ebp - 0x38]
call fcn.0043a2a0
xor al, al
pop ebx
pop edi
pop esi
leave
ret
push 0x5c
lea esi, [ebp - 4]
call fcn.00438f27
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0042e143
lea edi, [ebp - 0x18]
call fcn.00438ebc
lea ecx, [ebp - 0x28]
call fcn.004058a3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
lea edx, [esi + 1]
push eax
call fcn.00438f45
lea edi, [ebp - 0x1c]
call fcn.00438ebc
lea ecx, [ebp - 0x28]
call fcn.004058a3
lea ecx, [ebp - 4]
call fcn.004058a3
xor esi, esi
cmp dword [ebp - 0x14], esi
jne 0x457282
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.004058a3
lea ecx, [ebp - 0x18]
call fcn.004058a3
lea ecx, [ebp - 0xc]
call fcn.004058a3
lea ecx, [ebp - 8]
call fcn.004058a3
lea ecx, [ebp - 0x10]
call fcn.004058a3
lea esi, [ebp - 0x38]
call fcn.0043a2a0
mov al, bl
jmp 0x4571ea
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
inc edx
push eax
call fcn.00438f45
push dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00460d44
pop ecx
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4572f7
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call ebx
test eax, eax
jne 0x4572f7
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4572f7
cmp dword [ebp - 0x20], esi
jne 0x4572f7
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x24]
call fcn.004058a3
mov bl, 1
jmp 0x45724b