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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428445
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x454b30]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x454b30]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x24], eax
jmp 0x406961
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x18], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4064c6
test ebx, ebx
je 0x40655c
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x4069ca
cmp dword [ebp + 0x10], 0
je 0x40655c
and dword [esp + 0x18], 0
push 0x5c
mov eax, edi
call fcn.0040619f
test eax, eax
pop ecx
jne 0x40697a
push edi
call fcn.00406ee1
test eax, eax
je 0x406519
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00406f0d
and dword [esp + 0x18], 0
test ebx, ebx
je 0x406553
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x40698a
mov ecx, dword [esp + 0x1c]
call fcn.00406e7c
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00407046
test esi, esi
jl 0x4069ca
jmp 0x40692c
lea ecx, [esp + 0x18]
call fcn.00407046
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406585
and dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x4069ca
push 0x44b694
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40669e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x234]
call fcn.0040631d
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4069ca
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
cmp esi, ebx
jl 0x4069ca
cmp word [edi], 0x3d
jne 0x406983
cmp dword [ebp + 0x10], ebx
je 0x40661d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x450], 1
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x238]
push eax
lea edx, [esp + 0x18]
call fcn.004069fb
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
jl 0x4069c5
mov byte [esp + 0x450], bl
jmp 0x406927
cmp dword [ebp + 0x14], ebx
jne 0x40668c
cmp dword [esp + 0x10], ebx
je 0x40668c
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x406990
lea ecx, [esp + 0x18]
call fcn.00407046
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x406990
lea eax, [esp + 0x234]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x406683
cmp eax, 2
jne 0x406990
lea ecx, [esp + 0x18]
call fcn.00407046
mov ecx, dword [esp + 0x1c]
call fcn.00406e7c
mov esi, eax
cmp esi, ebx
jmp 0x40696c
push 0x5c
mov eax, edi
call fcn.0040619f
test eax, eax
pop ecx
jne 0x406983
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40679e
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call esi
xor ebx, ebx
cmp eax, ebx
jne 0x4066f2
lea ecx, [esp + 0x14]
call fcn.00407046
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x406768
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x30]
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x406721
lea ecx, [esp + 0x14]
call fcn.00407046
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x406768
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push dword [esp + 0x40]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x40699b
lea ecx, [esp + 0x14]
call fcn.00407046
mov esi, eax
cmp esi, ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jne 0x40699b
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x4069ca
cmp word [edi], 0x3d
jne 0x40692c
mov ecx, dword [esp + 0x1c]
push edi
push 0
lea edx, [esp + 0x1c]
call fcn.004069fb
mov esi, eax
jmp 0x406546
cmp dword [ebp + 0x14], esi
jne 0x4067d6
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4067d2
lea ecx, [esp + 0x14]
call fcn.00407046
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ebx, eax
jmp 0x4067d9
push 2
pop ebx
cmp ebx, esi
je 0x4067e4
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0041536c
push eax
call fcn.00405c09
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x4069ca
mov ecx, dword [esp + 0x1c]
call fcn.00406e7c
mov esi, eax
test esi, esi
jl 0x4069ca
cmp word [edi], 0x7b
jne 0x406871
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406871
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
push 0
push dword [esp + 0x1c]
push edi
call fcn.0040642e
mov esi, eax
test esi, esi
jge 0x40685c
cmp dword [ebp + 0x14], 0
je 0x4069ca
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x4069ca
cmp ebx, 2
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], eax
je 0x40696e
test ebx, ebx
je 0x40689b
test eax, eax
jne 0x40696e
mov eax, ebx
call fcn.0040705d
mov esi, eax
jmp 0x4069ca
test eax, eax
je 0x4068dc
push dword [esp + 0x14]
call fcn.00407011
test eax, eax
je 0x4068dc
lea eax, [esp + 0x2c]
push eax
call fcn.00406ee1
test eax, eax
je 0x40696e
cmp dword [esp + 0x10], 0
je 0x40696e
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00406f0d
jmp 0x40696e
push dword [esp + 0x14]
call fcn.00407011
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.00407046
mov ebx, eax
test ebx, ebx
jne 0x4069ad
cmp dword [esp + 0x10], eax
je 0x40696e
cmp dword [esp + 0x18], eax
jne 0x40696e
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [esp + 0x10], ebx
test eax, eax
jne 0x4069ba
lea ecx, [esp + 0x10]
call fcn.00407046
cmp dword [ebp + 0x10], 0
je 0x40696e
cmp word [edi], 0x7b
jne 0x40696e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40696e
mov ecx, dword [esp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push edi
call fcn.0040642e
mov esi, eax
test esi, esi
jl 0x4069ca
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.0040631d
mov esi, eax
test esi, esi
jl 0x4069ca
cmp word [edi], 0x7d
jne 0x406495
jmp 0x4069ca
lea ecx, [esp + 0x18]
call fcn.00407046
mov esi, 0x80020009
jmp 0x4069ca
lea ecx, [esp + 0x18]
jmp 0x4069c5
call fcn.0040705d
lea ecx, [esp + 0x18]
jmp 0x4069c3
lea ecx, [esp + 0x14]
call fcn.00407046
mov eax, esi
call fcn.0040705d
jmp 0x4069d5
lea ecx, [esp + 0x14]
call fcn.00407046
mov eax, ebx
jmp 0x4069a6
call fcn.0040705d
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00407046
lea ecx, [esp + 0x14]
call fcn.00407046
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0041618f
mov esp, ebp
pop ebp
ret 0x10