Function at 0x4184f1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4701df
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0045d890
mov eax, dword [0x4960a8]
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.004183db
mov edi, eax
cmp edi, esi
jmp 0x418a91
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 0x418592
test esi, esi
je 0x418655
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x418afb
cmp dword [ebp + 0x10], eax
je 0x418655
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], eax
push 0x5c
mov eax, ebx
call fcn.00417cca
pop ecx
test eax, eax
jne 0x418a9f
push ebx
call fcn.004181b1
test eax, eax
je 0x418608
mov eax, dword [ebp - 0x2228]
xor edi, edi
push ebx
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], edi
call fcn.0041821e
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
test esi, esi
je 0x41864a
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
test edi, edi
jl 0x418ab1
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.0041814c
lea ecx, [ebp - 0x2234]
mov edi, eax
call fcn.00418335
test edi, edi
jl 0x418afb
jmp 0x418a4b
lea ecx, [ebp - 0x2234]
call fcn.00418335
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418682
and dword [ebp - 0x222c], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
test edi, edi
jl 0x418afb
push 0x489d68
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4187a2
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.004183db
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x418afb
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
cmp edi, esi
jl 0x418afb
cmp word [ebx], 0x3d
jne 0x418aaa
cmp dword [ebp + 0x10], esi
je 0x41872d
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.00417deb
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
lea ecx, [ebp - 0x223c]
jl 0x418af6
mov byte [ebp - 4], 0
jmp 0x418a46
cmp dword [ebp + 0x14], esi
jne 0x418790
cmp dword [ebp - 0x222c], esi
je 0x418790
push 0x20006
push esi
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x224c]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.004181dd
cmp eax, esi
jne 0x418ab9
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x418785
cmp eax, 2
jne 0x418ab9
lea ecx, [ebp - 0x224c]
call fcn.00418335
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.0041814c
jmp 0x418556
push 0x5c
mov eax, ebx
call fcn.00417cca
pop ecx
test eax, eax
jne 0x418aaa
cmp dword [ebp + 0x10], eax
je 0x418889
mov edi, 0x2001f
push edi
push ebx
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x2224]
call fcn.004181dd
test eax, eax
je 0x41884d
push 0x20019
push ebx
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x2224]
call fcn.004181dd
test eax, eax
je 0x41884d
lea eax, [ebp - 0x2258]
push eax
xor esi, esi
lea eax, [ebp - 0x222c]
push eax
push esi
push edi
push esi
push esi
push esi
push ebx
push dword [ebp - 0x2228]
mov dword [ebp - 0x222c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x418ac6
lea ecx, [ebp - 0x2224]
call fcn.00418335
mov edi, eax
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], esi
cmp edi, esi
jne 0x418ac6
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
test edi, edi
jl 0x418afb
cmp word [ebx], 0x3d
jne 0x418a4b
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2224]
call fcn.00417deb
mov edi, eax
jmp 0x41863d
cmp dword [ebp + 0x14], 0
jne 0x4188aa
push 0x20019
push ebx
push dword [ebp - 0x2228]
lea ecx, [ebp - 0x2224]
call fcn.004181dd
mov esi, eax
jmp 0x4188ad
push 2
pop esi
test esi, esi
je 0x4188b8
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0045bb54
push eax
call fcn.00405f45
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.004183db
mov edi, eax
test edi, edi
jl 0x418afb
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.0041814c
mov edi, eax
test edi, edi
jl 0x418afb
cmp word [ebx], 0x7b
jne 0x418953
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x418953
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push ebx
call fcn.004184f1
mov edi, eax
test edi, edi
jge 0x41893c
cmp dword [ebp + 0x14], 0
je 0x418afb
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
test edi, edi
jl 0x418afb
mov eax, dword [ebp - 0x2254]
mov dword [ebp + 0x14], eax
cmp esi, 2
je 0x418a93
test esi, esi
je 0x41897f
test eax, eax
jne 0x418a93
mov eax, esi
call fcn.004183ac
mov edi, eax
jmp 0x418afb
test eax, eax
je 0x4189ca
push dword [ebp - 0x2224]
call fcn.00418300
test eax, eax
je 0x4189ca
lea eax, [ebp - 0x218]
push eax
call fcn.004181b1
test eax, eax
je 0x418a93
cmp dword [ebp - 0x222c], 0
je 0x418a93
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.0041821e
jmp 0x418a93
push dword [ebp - 0x2224]
call fcn.00418300
lea ecx, [ebp - 0x2224]
mov dword [ebp - 0x2250], eax
call fcn.00418335
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x418ada
cmp dword [ebp - 0x222c], eax
je 0x418a93
cmp dword [ebp - 0x2250], eax
jne 0x418a93
mov ecx, dword [ebp - 0x2228]
mov dword [ebp - 0x2240], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x2244]
mov dword [ebp - 0x2244], ecx
call fcn.00418355
and dword [ebp - 0x2244], 0
and dword [ebp - 0x2240], 0
test eax, eax
jne 0x418ae9
mov ecx, esi
call fcn.00418335
cmp dword [ebp + 0x10], 0
je 0x418a93
cmp word [ebx], 0x7b
jne 0x418a93
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x418a93
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push ebx
call fcn.004184f1
mov edi, eax
test edi, edi
jl 0x418afb
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.004183db
mov edi, eax
test edi, edi
jl 0x418afb
cmp word [ebx], 0x7d
jne 0x41855f
jmp 0x418afb
lea ecx, [ebp - 0x2234]
call fcn.00418335
mov edi, 0x80020009
jmp 0x418afb
lea ecx, [ebp - 0x2234]
jmp 0x418af6
call fcn.004183ac
lea ecx, [ebp - 0x224c]
jmp 0x418af4
lea ecx, [ebp - 0x2224]
call fcn.00418335
mov eax, edi
call fcn.004183ac
jmp 0x418b08
lea ecx, [ebp - 0x2224]
call fcn.00418335
mov eax, esi
jmp 0x418ad3
call fcn.004183ac
lea ecx, [ebp - 0x2244]
mov edi, eax
call fcn.00418335
lea ecx, [ebp - 0x2224]
call fcn.00418335
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.00459871
leave
ret 0x10