Function at 0x408264
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506c7f
mov eax, dword fs:[0]
push eax
mov eax, 0x1158
call fcn.004f0e50
mov eax, dword [0xaba010]
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 - 0x112c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1118], ecx
xor ecx, ecx
mov dword [ebp - 0x1128], ecx
mov dword [ebp - 0x1124], ecx
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
cmp byte [edi], 0x7d
je 0x40882a
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x1130], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40830e
test ebx, ebx
je 0x4083e0
mov ecx, dword [ebp - 0x112c]
push edi
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
cmp dword [ebp + 0x10], 0
je 0x4083e0
xor eax, eax
mov dl, 0x5c
mov ecx, edi
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
call fcn.00407583
test eax, eax
jne 0x40881a
push edi
call fcn.00407dfc
test eax, eax
je 0x408397
mov eax, dword [ebp - 0x1118]
lea ecx, [ebp - 0x113c]
and dword [ebp - 0x1138], 0
and dword [ebp - 0x1134], 0
push edi
mov dword [ebp - 0x113c], eax
call fcn.00407eec
xor eax, eax
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
test ebx, ebx
je 0x4083d5
mov ebx, dword [ebp - 0x112c]
mov ecx, ebx
push edi
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x408812
push edi
mov ecx, ebx
call fcn.00407d96
lea ecx, [ebp - 0x113c]
mov esi, eax
call fcn.00408049
test esi, esi
js 0x40882a
jmp 0x4087cf
lea ecx, [ebp - 0x113c]
call fcn.00408049
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [ebp - 0x112c]
test eax, eax
jne 0x40840e
and dword [ebp - 0x1130], eax
mov ecx, ebx
push edi
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
push 0x51e9d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40853d
lea eax, [ebp - 0x1114]
mov ecx, ebx
push eax
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
push edi
mov ecx, ebx
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
cmp byte [edi], 0x3d
jne 0x408825
cmp dword [ebp + 0x10], 0
je 0x4084c3
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x1118]
and dword [ebp - 0x1148], 0
and dword [ebp - 0x1144], 0
mov dword [ebp - 0x114c], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x114c]
push eax
call fcn.00407859
mov esi, eax
lea ecx, [ebp - 0x114c]
xor eax, eax
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1144], eax
call fcn.00408049
test esi, esi
js 0x40882a
mov byte [ebp - 4], 0
jmp 0x4087cf
cmp dword [ebp + 0x14], 0
jne 0x408530
cmp dword [ebp - 0x1130], 0
je 0x408530
xor eax, eax
lea ecx, [ebp - 0x1164]
push 0x20006
push eax
push dword [ebp - 0x1118]
mov dword [ebp - 0x1164], eax
mov dword [ebp - 0x1160], eax
mov dword [ebp - 0x115c], eax
call fcn.00407e8e
test eax, eax
jne 0x408855
lea eax, [ebp - 0x1114]
push eax
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x408525
cmp eax, 2
jne 0x408855
lea ecx, [ebp - 0x1164]
call fcn.00408049
push edi
mov ecx, ebx
call fcn.00407d96
jmp 0x4082c9
mov dl, 0x5c
mov ecx, edi
call fcn.00407583
test eax, eax
jne 0x408825
cmp dword [ebp + 0x10], eax
je 0x4085dc
mov esi, dword [ebp - 0x1118]
lea ecx, [ebp - 0x1128]
push 0x2001f
push edi
push esi
call fcn.00407e8e
test eax, eax
je 0x4085a9
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x1128]
call fcn.00407e8e
test eax, eax
je 0x4085a9
xor eax, eax
lea ecx, [ebp - 0x1128]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.00407626
test eax, eax
jne 0x4086bf
push edi
mov ecx, ebx
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
cmp byte [edi], 0x3d
jne 0x4087cf
push edi
push 0
lea eax, [ebp - 0x1128]
mov ecx, ebx
push eax
call fcn.00407859
mov esi, eax
jmp 0x4083c8
cmp dword [ebp + 0x14], 0
jne 0x4085fb
push 0x20019
push edi
push dword [ebp - 0x1118]
lea ecx, [ebp - 0x1128]
call fcn.00407e8e
jmp 0x4085fe
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x111c], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x114]
push edi
push 0x104
push eax
mov dword [ebp - 0x1140], ecx
call fcn.004f5e1b
push eax
call fcn.00407d5b
add esp, 0x14
mov ecx, ebx
push edi
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
push edi
mov ecx, ebx
call fcn.00407d96
mov esi, eax
test esi, esi
js 0x40882a
cmp byte [edi], 0x7b
jne 0x4086a2
push edi
call fcn.004f5d90
pop ecx
cmp eax, 1
jne 0x4086a2
push dword [ebp - 0x1140]
mov ecx, ebx
push 0
push dword [ebp - 0x1128]
push edi
call fcn.00408264
mov esi, eax
test esi, esi
jns 0x408690
cmp dword [ebp - 0x1140], 0
je 0x40882a
push edi
mov ecx, ebx
call fcn.0040813c
mov esi, eax
test esi, esi
js 0x40882a
mov eax, dword [ebp - 0x111c]
cmp eax, 2
je 0x4082d3
test eax, eax
je 0x4086cd
cmp dword [ebp + 0x14], 0
jne 0x4082d3
mov ecx, eax
call fcn.0040812e
mov esi, eax
jmp 0x40882a
cmp dword [ebp + 0x14], 0
je 0x40871a
push dword [ebp - 0x1128]
call fcn.00408012
test eax, eax
je 0x40871a
lea eax, [ebp - 0x114]
push eax
call fcn.00407dfc
test eax, eax
je 0x4082d3
cmp dword [ebp - 0x1130], 0
je 0x4082d3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1128]
call fcn.00407eec
jmp 0x4082d3
push dword [ebp - 0x1128]
call fcn.00408012
mov ecx, dword [ebp - 0x1128]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x111c], edx
test ecx, ecx
je 0x40874e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x111c]
xor ecx, ecx
mov dword [ebp - 0x1128], ecx
xor ecx, ecx
mov dword [ebp - 0x1124], ecx
test eax, eax
jne 0x4086bf
cmp dword [ebp - 0x1130], ecx
je 0x4082d3
test edx, edx
jne 0x4082d3
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x1158], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x1154], ecx
mov dword [ebp - 0x1150], ecx
lea ecx, [ebp - 0x1158]
push eax
call fcn.004080b5
mov dword [ebp - 0x111c], eax
lea ecx, [ebp - 0x1158]
xor eax, eax
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
mov dword [ebp - 0x1150], eax
call fcn.00408049
mov eax, dword [ebp - 0x111c]
test eax, eax
jne 0x4086bf
cmp dword [ebp + 0x10], 0
je 0x4082d3
cmp byte [edi], 0x7b
jne 0x4082d3
push edi
call fcn.004f5d90
pop ecx
cmp eax, 1
jne 0x4082d3
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x1128]
push edi
call fcn.00408264
mov esi, eax
test esi, esi
js 0x40882a
mov ecx, ebx
jmp 0x4082c3
lea ecx, [ebp - 0x113c]
jmp 0x408864
lea ecx, [ebp - 0x113c]
call fcn.00408049
mov esi, 0x80020009
lea ecx, [ebp - 0x1128]
call fcn.00408049
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.004efcea
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.0040812e
mov esi, eax
lea ecx, [ebp - 0x1164]
call fcn.00408049
jmp 0x40882a