Function at 0x407e58
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00491300
push 0xffffffffffffffff
push 0x4c624b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0x2220]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], eax
call fcn.004067a4
mov esi, eax
cmp esi, ebx
jmp 0x40831b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x28], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x407efa
test ebx, ebx
je 0x407f9f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408376
cmp dword [ebp + 0x221c], 0
je 0x407f9f
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.00406734
pop ecx
pop ecx
test eax, eax
jne 0x408329
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004068b2
test eax, eax
je 0x407f5d
mov eax, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
call fcn.00406a95
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp ebx, esi
je 0x407f93
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408338
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406913
mov esi, eax
lea ecx, [ebp - 0x24]
test esi, esi
jl 0x408371
mov byte [ebp - 4], 0
jmp 0x4082d4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004063fd
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x407fc5
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x28], eax
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408376
push 0x4cee3c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4080aa
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.004067a4
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x408376
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004067a4
mov esi, eax
cmp esi, ebx
jl 0x408376
cmp word [edi], 0x3d
jne 0x408331
cmp dword [ebp + 0x221c], ebx
je 0x408046
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], ebx
call fcn.00407b2c
mov esi, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x40]
cmp esi, ebx
jmp 0x407f84
cmp dword [ebp + 0x2220], ebx
jne 0x40809c
cmp dword [ebp - 0x28], ebx
je 0x40809c
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
push 0x20006
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00406472
cmp eax, ebx
jne 0x40833d
lea eax, [ebp]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x408090
cmp eax, 2
jne 0x40833d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.004063fd
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406913
jmp 0x407ec1
push 0x5c
push edi
call fcn.00406734
pop ecx
pop ecx
test eax, eax
jne 0x408331
cmp dword [ebp + 0x221c], eax
je 0x40814b
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00406472
test eax, eax
je 0x408110
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00406472
test eax, eax
je 0x408110
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00406418
mov esi, eax
cmp esi, ebx
jne 0x408349
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408376
cmp word [edi], 0x3d
jne 0x4082d9
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00407b2c
mov esi, eax
test esi, esi
jl 0x408376
jmp 0x4082d9
cmp dword [ebp + 0x2220], 0
jne 0x408169
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00406472
mov ebx, eax
jmp 0x40816c
push 2
pop ebx
test ebx, ebx
je 0x40817a
mov dword [ebp + 0x2220], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.00491226
push eax
call fcn.00403f91
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408376
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406913
mov esi, eax
test esi, esi
jl 0x408376
cmp word [edi], 0x7b
jne 0x408209
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408209
push dword [ebp + 0x2220]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x1c]
push edi
call fcn.00407e58
mov esi, eax
test esi, esi
jge 0x4081f6
cmp dword [ebp + 0x2220], 0
je 0x408376
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408376
mov eax, dword [ebp - 0x44]
mov dword [ebp + 0x2220], eax
cmp ebx, 2
je 0x40831d
test ebx, ebx
je 0x408235
test eax, eax
jne 0x40831d
push ebx
call fcn.004062da
pop ecx
mov esi, eax
jmp 0x408376
test eax, eax
je 0x40827d
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
call fcn.004068de
test eax, eax
je 0x40827d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x2000]
push eax
call fcn.004068b2
test eax, eax
je 0x40831d
cmp dword [ebp - 0x28], 0
je 0x40831d
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406a95
jmp 0x40831d
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
call fcn.004068de
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x48], eax
call fcn.004063fd
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x40835a
cmp dword [ebp - 0x28], eax
je 0x40831d
cmp dword [ebp - 0x48], eax
jne 0x40831d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x2000]
mov dword [ebp - 0x38], ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004063a2
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
test eax, eax
jne 0x408365
lea ecx, [ebp - 0x38]
call fcn.004063fd
cmp dword [ebp + 0x221c], 0
je 0x40831d
cmp word [edi], 0x7b
jne 0x40831d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40831d
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x221c]
push dword [ebp - 0x1c]
push edi
call fcn.00407e58
mov esi, eax
test esi, esi
jl 0x408376
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004067a4
mov esi, eax
test esi, esi
jl 0x408376
cmp word [edi], 0x7d
jne 0x407eca
jmp 0x408376
lea ecx, [ebp - 0x24]
call fcn.004063fd
mov esi, 0x80020009
jmp 0x408376
lea ecx, [ebp - 0x24]
jmp 0x408371
push eax
call fcn.004062da
pop ecx
lea ecx, [ebp - 0x30]
jmp 0x40836f
lea ecx, [ebp - 0x1c]
call fcn.004063fd
push esi
call fcn.004062da
pop ecx
jmp 0x408380
lea ecx, [ebp - 0x1c]
call fcn.004063fd
push ebx
jmp 0x408352
push eax
call fcn.004062da
pop ecx
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.004063fd
lea ecx, [ebp - 0x1c]
call fcn.004063fd
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 + 0x2208]
xor ecx, ebp
call fcn.0048ebcd
add ebp, 0x220c
leave
ret 0x10