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

Disassembly:
mov eax, 0x40a32d
call fcn.004098a8
sub esp, 0x218
and dword [ebp - 0x10], 0
push ebx
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jge 0x402647
jmp 0x4029c9
cmp byte [ebx], 0x7d
push edi
je 0x4029c6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push ebx
mov dword [ebp - 0x18], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x402681
test edi, edi
je 0x40270b
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40270d
mov dword [ebp + 8], esi
push 0x5c
mov eax, ebx
mov byte [ebp - 4], 1
call fcn.0040235c
test eax, eax
pop ecx
jne 0x402a9a
push ebx
push dword [ebp - 0x14]
call fcn.00403033
test eax, eax
je 0x4026d4
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040305f
mov dword [ebp + 8], esi
cmp edi, esi
je 0x402705
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
mov ecx, dword [ebp - 0x14]
mov edi, ebx
call fcn.00402fb6
mov esi, eax
test esi, esi
jl 0x4029b7
jmp 0x4027ae
and byte [ebp - 4], 0
jmp 0x40270d
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402736
and dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
xor esi, esi
push 0x40c18c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40285b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x224]
call fcn.00402502
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x4029b7
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
cmp esi, edi
jl 0x4029b7
cmp byte [ebx], 0x3d
jne 0x402a5d
cmp dword [ebp + 0x10], edi
je 0x402800
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402b05
mov esi, eax
cmp esi, edi
jl 0x402a62
and byte [ebp - 4], 0
cmp byte [ebx], 0x7b
jne 0x4027f2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4027f2
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push ebx
call fcn.0040260f
mov esi, eax
test esi, esi
jl 0x4029b7
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
cmp byte [ebx], 0x7d
jne 0x402651
jmp 0x4029b7
cmp dword [ebp + 0x14], edi
jne 0x40284f
cmp dword [ebp - 0x18], edi
je 0x40284f
push 0x20006
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.00402f83
cmp eax, edi
jne 0x402a7c
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x402844
cmp eax, 2
jne 0x402a6a
test edi, edi
je 0x40284f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov edi, ebx
call fcn.00402fb6
jmp 0x4027e8
push 0x5c
mov eax, ebx
call fcn.0040235c
test eax, eax
pop ecx
jne 0x402a9a
cmp dword [ebp + 0x10], esi
je 0x4028fb
push 0x2001f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.00402f83
test eax, eax
je 0x4028c0
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.00402f83
test eax, eax
je 0x4028c0
xor esi, esi
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x10]
call fcn.00402abc
cmp eax, esi
jne 0x4029b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
cmp byte [ebx], 0x3d
jne 0x4027b2
push ebx
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.00402b05
mov esi, eax
test esi, esi
jl 0x4029b7
jmp 0x4027b2
cmp dword [ebp + 0x14], esi
jne 0x402916
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.00402f83
mov dword [ebp + 8], eax
jmp 0x40291d
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x402929
mov dword [ebp + 0x14], 1
push 0x104
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
mov ecx, dword [ebp - 0x14]
mov edi, ebx
call fcn.00402fb6
mov esi, eax
test esi, esi
jl 0x4029b7
cmp byte [ebx], 0x7b
jne 0x40298e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
push ebx
call fcn.0040260f
mov esi, eax
test esi, esi
jge 0x40297e
cmp dword [ebp + 0x14], 0
je 0x4029b7
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00402502
mov esi, eax
test esi, esi
jl 0x4029b7
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
je 0x4027f2
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x4029d9
cmp dword [ebp - 0x1c], edi
jne 0x4027f2
call fcn.0040313b
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x4029c6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
cmp dword [ebp - 0x1c], edi
je 0x402a22
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00402ffe
test eax, eax
je 0x402a22
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x14]
call fcn.00403033
test eax, eax
je 0x4027f2
cmp dword [ebp - 0x18], 0
je 0x4027f2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040305f
jmp 0x4027f2
cmp dword [ebp - 0x10], edi
je 0x402a37
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x10], edi
jne 0x402ab2
cmp dword [ebp - 0x18], edi
je 0x4027f2
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4029b0
jmp 0x4027f2
cmp dword [ebp - 0x10], edi
jmp 0x402a9d
cmp dword [ebp - 0x10], edi
jmp 0x4029bb
call fcn.0040313b
test edi, edi
mov esi, eax
je 0x4029b7
push edi
jmp 0x402a8f
call fcn.0040313b
cmp dword [ebp + 8], edi
mov esi, eax
je 0x4029b7
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4029b7
cmp dword [ebp - 0x10], esi
je 0x402aa8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4029c8
call fcn.0040313b
jmp 0x4029c8