Function at 0x408165
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00490990
push 0xffffffffffffffff
push 0x4c5555
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x509354]
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.00406a4f
mov esi, eax
cmp esi, ebx
jmp 0x408628
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 0x408207
test ebx, ebx
je 0x4082ac
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408683
cmp dword [ebp + 0x221c], 0
je 0x4082ac
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.004069df
pop ecx
pop ecx
test eax, eax
jne 0x408636
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406b5d
test eax, eax
je 0x40826a
mov eax, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
call fcn.00406d40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp ebx, esi
je 0x4082a0
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408645
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406bbe
mov esi, eax
lea ecx, [ebp - 0x24]
test esi, esi
jl 0x40867e
mov byte [ebp - 4], 0
jmp 0x4085e1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004066a8
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4082d2
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x28], eax
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408683
push 0x4cde4c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4083b7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00406a4f
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x408683
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406a4f
mov esi, eax
cmp esi, ebx
jl 0x408683
cmp word [edi], 0x3d
jne 0x40863e
cmp dword [ebp + 0x221c], ebx
je 0x408353
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.00407e39
mov esi, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x40]
cmp esi, ebx
jmp 0x408291
cmp dword [ebp + 0x2220], ebx
jne 0x4083a9
cmp dword [ebp - 0x28], ebx
je 0x4083a9
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.0040671d
cmp eax, ebx
jne 0x40864a
lea eax, [ebp]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40839d
cmp eax, 2
jne 0x40864a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.004066a8
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406bbe
jmp 0x4081ce
push 0x5c
push edi
call fcn.004069df
pop ecx
pop ecx
test eax, eax
jne 0x40863e
cmp dword [ebp + 0x221c], eax
je 0x408458
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040671d
test eax, eax
je 0x40841d
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040671d
test eax, eax
je 0x40841d
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.004066c3
mov esi, eax
cmp esi, ebx
jne 0x408656
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408683
cmp word [edi], 0x3d
jne 0x4085e6
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00407e39
mov esi, eax
test esi, esi
jl 0x408683
jmp 0x4085e6
cmp dword [ebp + 0x2220], 0
jne 0x408476
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040671d
mov ebx, eax
jmp 0x408479
push 2
pop ebx
test ebx, ebx
je 0x408487
mov dword [ebp + 0x2220], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.004908b6
push eax
call fcn.0040414a
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408683
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406bbe
mov esi, eax
test esi, esi
jl 0x408683
cmp word [edi], 0x7b
jne 0x408516
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408516
push dword [ebp + 0x2220]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x1c]
push edi
call fcn.00408165
mov esi, eax
test esi, esi
jge 0x408503
cmp dword [ebp + 0x2220], 0
je 0x408683
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408683
mov eax, dword [ebp - 0x44]
mov dword [ebp + 0x2220], eax
cmp ebx, 2
je 0x40862a
test ebx, ebx
je 0x408542
test eax, eax
jne 0x40862a
push ebx
call fcn.00406585
pop ecx
mov esi, eax
jmp 0x408683
test eax, eax
je 0x40858a
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
call fcn.00406b89
test eax, eax
je 0x40858a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x2000]
push eax
call fcn.00406b5d
test eax, eax
je 0x40862a
cmp dword [ebp - 0x28], 0
je 0x40862a
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406d40
jmp 0x40862a
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
call fcn.00406b89
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x48], eax
call fcn.004066a8
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x408667
cmp dword [ebp - 0x28], eax
je 0x40862a
cmp dword [ebp - 0x48], eax
jne 0x40862a
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.0040664d
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
test eax, eax
jne 0x408672
lea ecx, [ebp - 0x38]
call fcn.004066a8
cmp dword [ebp + 0x221c], 0
je 0x40862a
cmp word [edi], 0x7b
jne 0x40862a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40862a
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x221c]
push dword [ebp - 0x1c]
push edi
call fcn.00408165
mov esi, eax
test esi, esi
jl 0x408683
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406a4f
mov esi, eax
test esi, esi
jl 0x408683
cmp word [edi], 0x7d
jne 0x4081d7
jmp 0x408683
lea ecx, [ebp - 0x24]
call fcn.004066a8
mov esi, 0x80020009
jmp 0x408683
lea ecx, [ebp - 0x24]
jmp 0x40867e
push eax
call fcn.00406585
pop ecx
lea ecx, [ebp - 0x30]
jmp 0x40867c
lea ecx, [ebp - 0x1c]
call fcn.004066a8
push esi
call fcn.00406585
pop ecx
jmp 0x40868d
lea ecx, [ebp - 0x1c]
call fcn.004066a8
push ebx
jmp 0x40865f
push eax
call fcn.00406585
pop ecx
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.004066a8
lea ecx, [ebp - 0x1c]
call fcn.004066a8
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.0048e25d
add ebp, 0x220c
leave
ret 0x10