Function at 0x4076da
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b2d1
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0041ab10
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2228], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x222c], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2220], ecx
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407ced
push 0x7d
pop eax
cmp word [edi], ax
je 0x407cdc
push str.Delete
push edi
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2230], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407790
test esi, esi
je 0x40784b
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40784d
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x223c], esi
call fcn.00406ccc
test eax, eax
jne 0x407cd7
push edi
call fcn.00407369
test eax, eax
je 0x407803
mov eax, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2244]
push edi
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], esi
call fcn.00407398
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x223c], esi
cmp dword [ebp - 0x2230], esi
je 0x407843
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.004072fd
mov esi, eax
test esi, esi
js 0x407cdc
and dword [ebp - 0x2240], 0
jmp 0x407a76
mov dword [ebp - 0x2240], esi
jmp 0x40784d
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407879
mov ecx, dword [ebp - 0x2228]
push edi
mov dword [ebp - 0x2234], esi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
push 0x422a6c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4079d0
mov ecx, dword [ebp - 0x2228]
lea eax, [ebp - 0x2218]
push eax
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
push 0x3d
pop eax
cmp word [edi], ax
jne 0x407cd7
cmp dword [ebp + 0x10], 0
je 0x407935
mov eax, dword [ebp - 0x222c]
mov ecx, dword [ebp - 0x2228]
mov byte [ebp - 4], 1
and dword [ebp - 0x2258], 0
and dword [ebp - 0x2254], 0
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x225c]
push eax
call fcn.00406f0b
mov esi, eax
xor eax, eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
test esi, esi
js 0x407cdc
mov byte [ebp - 4], al
mov dword [ebp - 0x2258], eax
jmp 0x407a76
cmp dword [ebp + 0x14], 0
jne 0x4079af
cmp dword [ebp - 0x2234], 0
je 0x4079af
xor esi, esi
lea ecx, [ebp - 0x2250]
push 0x20006
push esi
push dword [ebp - 0x222c]
mov dword [ebp - 0x2250], esi
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.00401c05
test eax, eax
jne 0x407cb2
mov ebx, dword [ebp - 0x2250]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x407998
cmp eax, 2
jne 0x407c9c
test ebx, ebx
je 0x4079a9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2250], esi
mov dword [ebp - 0x224c], esi
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.004072fd
mov ebx, dword [ebp - 0x2224]
mov esi, eax
test esi, esi
js 0x407ce2
jmp 0x407bb4
push 0x5c
pop edx
mov ecx, edi
call fcn.00406ccc
test eax, eax
jne 0x407cd7
cmp dword [ebp + 0x10], eax
je 0x407abd
mov ebx, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
push 0x2001f
push edi
push ebx
call fcn.00401c05
test eax, eax
je 0x407a35
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2224]
call fcn.00401c05
test eax, eax
je 0x407a35
sub esp, 0x14
lea ecx, [ebp - 0x2224]
push edi
push ebx
call fcn.00406d79
test eax, eax
jne 0x407ccc
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
push 0x3d
pop eax
cmp word [edi], ax
jne 0x407a70
push edi
push 0
lea eax, [ebp - 0x2224]
mov ecx, ebx
push eax
call fcn.00406f0b
mov esi, eax
test esi, esi
js 0x407cdc
mov ebx, dword [ebp - 0x2224]
push 0x7b
pop eax
cmp word [edi], ax
jne 0x407bae
push edi
call fcn.0040d7ad
pop ecx
cmp eax, 1
jne 0x407bae
push 0
push dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
call fcn.004076da
mov esi, eax
test esi, esi
js 0x407cdc
push edi
mov ecx, ebx
call fcn.0040757b
jmp 0x4079bb
cmp dword [ebp + 0x14], 0
jne 0x407ae2
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.00401c05
mov ebx, dword [ebp - 0x2224]
jmp 0x407ae5
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x2230], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x2238], ecx
call fcn.0040ff77
push eax
call fcn.00402158
mov ecx, dword [ebp - 0x2228]
add esp, 0x14
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.004072fd
mov esi, eax
test esi, esi
js 0x407cdc
push 0x7b
pop eax
cmp word [edi], ax
jne 0x407b95
push edi
call fcn.0040d7ad
pop ecx
cmp eax, 1
jne 0x407b95
push dword [ebp - 0x2238]
mov ecx, dword [ebp - 0x2228]
push 0
push ebx
push edi
call fcn.004076da
mov esi, eax
test esi, esi
jns 0x407b7f
cmp dword [ebp - 0x2238], 0
je 0x407cdc
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040757b
mov esi, eax
test esi, esi
js 0x407cdc
mov eax, dword [ebp - 0x2230]
cmp eax, 2
je 0x407bae
test eax, eax
je 0x407bcb
cmp dword [ebp + 0x14], 0
je 0x407ccc
mov ebx, dword [ebp - 0x2224]
push 0x7d
pop eax
cmp word [edi], ax
je 0x407ce2
mov ebx, dword [ebp - 0x2224]
jmp 0x407757
cmp dword [ebp + 0x14], 0
je 0x407c08
push ebx
call fcn.0040746d
test eax, eax
je 0x407c08
lea eax, [ebp - 0x218]
push eax
call fcn.00407369
test eax, eax
je 0x407bae
cmp dword [ebp - 0x2234], 0
je 0x407bae
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.00407398
jmp 0x407bae
push ebx
call fcn.0040746d
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2230], ecx
test ebx, ebx
je 0x407c33
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2230]
xor ebx, ebx
mov dword [ebp - 0x2224], ebx
jmp 0x407c39
mov ebx, dword [ebp - 0x2224]
and dword [ebp - 0x2220], 0
test eax, eax
jne 0x407c91
cmp dword [ebp - 0x2234], eax
je 0x407bb4
test ecx, ecx
jne 0x407bb4
mov eax, dword [ebp - 0x222c]
and dword [ebp - 0x2264], ecx
and dword [ebp - 0x2260], ecx
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004074f4
and dword [ebp - 0x2268], 0
test eax, eax
je 0x407bb4
mov ecx, eax
call fcn.0040756d
mov esi, eax
jmp 0x407ce2
mov ecx, eax
call fcn.0040756d
mov esi, eax
test ebx, ebx
je 0x407cdc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407cdc
mov ecx, eax
call fcn.0040756d
cmp dword [ebp - 0x2250], 0
mov esi, eax
je 0x407cdc
push dword [ebp - 0x2250]
jmp 0x407caa
mov ecx, eax
call fcn.0040756d
mov esi, eax
jmp 0x407cdc
mov esi, 0x80020009
mov ebx, dword [ebp - 0x2224]
test ebx, ebx
je 0x407ced
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408808
leave
ret 0x10