Function at 0x407fc2
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230e3
mov eax, dword fs:[0]
push eax
mov eax, 0x2254
call fcn.0041dbf0
mov eax, dword [0x4310f0]
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, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2254], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.00407eac
mov edi, eax
cmp edi, esi
jmp 0x408564
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x222c], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x408063
test esi, esi
je 0x408125
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x4085d2
cmp dword [ebp + 0x10], 0
je 0x408125
xor edi, edi
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
call fcn.0040779d
pop ecx
test eax, eax
jne 0x408572
push ebx
call fcn.00407ce3
test eax, eax
je 0x4080d8
mov eax, dword [ebp - 0x2228]
push ebx
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], edi
call fcn.00407d0f
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
cmp esi, edi
je 0x40811a
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x408584
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.00407c7e
lea esi, [ebp - 0x2234]
mov edi, eax
call fcn.0040177a
test edi, edi
jl 0x4085d2
jmp 0x40851e
lea esi, [ebp - 0x2234]
call fcn.0040177a
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408152
and dword [ebp - 0x222c], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x4085d2
push 0x42ce98
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408274
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.00407eac
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x4085d2
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
cmp edi, esi
jl 0x4085d2
cmp word [ebx], 0x3d
jne 0x40857d
cmp dword [ebp + 0x10], esi
je 0x4081fd
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x223c], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x223c]
mov dword [ebp - 0x2238], esi
call fcn.004078e9
mov edi, eax
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp edi, esi
lea esi, [ebp - 0x223c]
jl 0x4085cd
mov byte [ebp - 4], 0
jmp 0x408519
cmp dword [ebp + 0x14], esi
jne 0x408262
cmp dword [ebp - 0x222c], esi
je 0x408262
push esi
push dword [ebp - 0x2228]
mov eax, 0x20006
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
call fcn.0040173c
cmp eax, esi
jne 0x40858c
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2244]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x408255
cmp eax, 2
jne 0x40858c
lea esi, [ebp - 0x2244]
call fcn.0040177a
xor esi, esi
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.00407c7e
jmp 0x408027
push 0x5c
mov eax, ebx
call fcn.0040779d
pop ecx
test eax, eax
jne 0x40857d
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40835b
push ebx
push dword [ebp - 0x2228]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2224]
call fcn.0040173c
test eax, eax
je 0x40831f
push ebx
push dword [ebp - 0x2228]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2224]
call fcn.0040173c
test eax, eax
je 0x40831f
lea eax, [ebp - 0x225c]
push eax
lea eax, [ebp - 0x222c]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x2228]
mov dword [ebp - 0x222c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x408599
lea esi, [ebp - 0x2224]
call fcn.0040177a
and dword [ebp - 0x2220], 0
mov edi, eax
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], eax
test edi, edi
jne 0x408599
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x4085d2
cmp word [ebx], 0x3d
jne 0x40851e
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2224]
call fcn.004078e9
mov edi, eax
jmp 0x40810d
cmp dword [ebp + 0x14], edi
jne 0x40837b
push ebx
push dword [ebp - 0x2228]
mov eax, 0x20019
lea ecx, [ebp - 0x2224]
call fcn.0040173c
mov esi, eax
jmp 0x40837e
push 2
pop esi
cmp esi, edi
je 0x408389
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00412422
push eax
call fcn.00407c49
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x4085d2
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.00407c7e
mov edi, eax
test edi, edi
jl 0x4085d2
cmp word [ebx], 0x7b
jne 0x408424
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408424
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push ebx
call fcn.00407fc2
mov edi, eax
test edi, edi
jge 0x40840d
cmp dword [ebp + 0x14], 0
je 0x4085d2
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x4085d2
mov eax, dword [ebp - 0x2254]
mov dword [ebp + 0x14], eax
cmp esi, 2
je 0x408566
test esi, esi
je 0x408450
test eax, eax
jne 0x408566
mov eax, esi
call fcn.00407e7d
mov edi, eax
jmp 0x4085d2
test eax, eax
je 0x40849b
push dword [ebp - 0x2224]
call fcn.00407df1
test eax, eax
je 0x40849b
lea eax, [ebp - 0x218]
push eax
call fcn.00407ce3
test eax, eax
je 0x408566
cmp dword [ebp - 0x222c], 0
je 0x408566
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.00407d0f
jmp 0x408566
push dword [ebp - 0x2224]
call fcn.00407df1
lea esi, [ebp - 0x2224]
mov dword [ebp - 0x2250], eax
call fcn.0040177a
xor ecx, ecx
mov dword [ebp - 0x2258], eax
cmp eax, ecx
jne 0x4085ad
cmp dword [ebp - 0x222c], ecx
je 0x408566
cmp dword [ebp - 0x2250], ecx
jne 0x408566
mov eax, dword [ebp - 0x2228]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x224c]
mov dword [ebp - 0x2248], ecx
call fcn.00407e26
and dword [ebp - 0x224c], 0
and dword [ebp - 0x2248], 0
test eax, eax
jne 0x4085c0
call fcn.0040177a
cmp dword [ebp + 0x10], 0
je 0x408566
cmp word [ebx], 0x7b
jne 0x408566
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408566
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push ebx
call fcn.00407fc2
mov edi, eax
test edi, edi
jl 0x4085d2
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00407eac
mov edi, eax
test edi, edi
jl 0x4085d2
cmp word [ebx], 0x7d
jne 0x408030
jmp 0x4085d2
lea esi, [ebp - 0x2234]
call fcn.0040177a
mov edi, 0x80020009
jmp 0x4085d2
lea esi, [ebp - 0x2234]
jmp 0x4085cd
call fcn.00407e7d
lea esi, [ebp - 0x2244]
jmp 0x4085cb
lea esi, [ebp - 0x2224]
call fcn.0040177a
mov eax, edi
call fcn.00407e7d
jmp 0x4085df
lea esi, [ebp - 0x2224]
call fcn.0040177a
mov eax, dword [ebp - 0x2258]
jmp 0x4085a6
call fcn.00407e7d
lea esi, [ebp - 0x224c]
mov edi, eax
call fcn.0040177a
lea esi, [ebp - 0x2224]
call fcn.0040177a
mov eax, edi
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.00410ee0
leave
ret 0x10