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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465388
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2254
call fcn.0044d420
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0x2268]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2270], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x50], ecx
push edi
mov ecx, eax
call fcn.00406168
mov esi, eax
test esi, esi
js 0x406817
push 0x7d
pop eax
cmp word [edi], ax
je 0x40680c
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb esi, esi
push str.ForceRemove
inc esi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40636b
test esi, esi
je 0x406416
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x406418
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004058be
test eax, eax
jne 0x406807
push edi
call fcn.00405ead
test eax, eax
je 0x4063d8
mov eax, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00405f8c
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
cmp dword [esp + 0x18], esi
je 0x406410
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
mov ecx, dword [esp + 0x10]
push edi
call fcn.00405e48
mov esi, eax
test esi, esi
js 0x40680c
and dword [esp + 0x30], 0
jmp 0x40660c
mov dword [esp + 0x30], esi
jmp 0x406418
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406440
mov ecx, dword [esp + 0x10]
push edi
mov dword [esp + 0x2c], esi
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
push 0x47b0fc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406574
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x25c]
push eax
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406807
cmp dword [ebp + 0x10], 0
je 0x4064f0
mov ecx, dword [esp + 0x10]
xor eax, eax
inc eax
mov byte [esp + 0x2270], al
mov eax, dword [esp + 0x14]
and dword [esp + 0x48], 0
and dword [esp + 0x4c], 0
mov dword [esp + 0x44], eax
push edi
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00405ac3
mov esi, eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
test esi, esi
js 0x40680c
mov byte [esp + 0x2270], al
mov dword [esp + 0x48], eax
jmp 0x40660c
cmp dword [ebp + 0x14], 0
jne 0x40655b
cmp dword [esp + 0x28], 0
je 0x40655b
xor eax, eax
push 0x20006
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00405f3c
test eax, eax
jne 0x4067dc
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x25c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x406546
cmp eax, 2
jne 0x4067dc
test esi, esi
je 0x406556
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x38], 0
and dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x10]
push edi
call fcn.00405e48
mov esi, eax
test esi, esi
js 0x40680c
jmp 0x40632b
push 0x5c
pop edx
mov ecx, edi
call fcn.004058be
test eax, eax
jne 0x406807
cmp dword [ebp + 0x10], eax
je 0x406653
mov ebx, dword [esp + 0x14]
push 0x2001f
push edi
push ebx
lea ecx, [esp + 0x28]
call fcn.00405f3c
test eax, eax
je 0x4065d1
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x28]
call fcn.00405f3c
test eax, eax
je 0x4065d1
sub esp, 0x14
lea ecx, [esp + 0x30]
push edi
push ebx
call fcn.0040595d
test eax, eax
jne 0x4067f8
mov ebx, dword [esp + 0x10]
push edi
mov ecx, ebx
call fcn.00406168
mov esi, eax
test esi, esi
js 0x406801
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406608
push edi
push 0
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00405ac3
mov esi, eax
test esi, esi
js 0x406801
mov ebx, dword [esp + 0x1c]
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40632b
push edi
call fcn.00437bfc
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x40632b
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004062a6
mov esi, eax
test esi, esi
js 0x40680c
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406168
jmp 0x406565
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x406673
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.00405f3c
mov ebx, dword [esp + 0x1c]
jmp 0x406676
push 2
pop eax
push 1
test eax, eax
mov dword [esp + 0x1c], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
push edi
lea eax, [esp + 0x5c]
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.00438788
push eax
call fcn.004013f6
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
mov ecx, dword [esp + 0x10]
push edi
call fcn.00405e48
mov esi, eax
test esi, esi
js 0x40680c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x406712
push edi
call fcn.00437bfc
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x406712
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push ebx
push edi
call fcn.004062a6
mov esi, eax
test esi, esi
jns 0x4066fe
cmp dword [ebp + 0x14], 0
je 0x40680c
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406168
mov esi, eax
test esi, esi
js 0x40680c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x40632b
test eax, eax
je 0x406740
test ecx, ecx
jne 0x40632b
mov ecx, eax
call fcn.0040615a
mov esi, eax
jmp 0x40680c
test ecx, ecx
je 0x406782
push ebx
call fcn.00406098
test eax, eax
je 0x406782
lea eax, [esp + 0x54]
push eax
call fcn.00405ead
test eax, eax
je 0x40632b
cmp dword [esp + 0x28], 0
je 0x40632b
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
call fcn.00405f8c
mov ebx, dword [esp + 0x1c]
jmp 0x40632b
push ebx
call fcn.00406098
mov ecx, eax
xor eax, eax
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x4067a5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
and dword [esp + 0x20], 0
test eax, eax
jne 0x406732
cmp dword [esp + 0x28], eax
je 0x40632b
test ecx, ecx
jne 0x40632b
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x406732
jmp 0x40632b
mov ecx, eax
call fcn.0040615a
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x40680c
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40680c
mov ecx, eax
call fcn.0040615a
mov esi, eax
mov ebx, dword [esp + 0x1c]
jmp 0x40680c
mov esi, 0x80020009
test ebx, ebx
je 0x406817
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2250]
xor ecx, esp
call fcn.00437bed
mov esp, ebp
pop ebp
ret 0x10