Function at 0x4104bf
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x18
mov eax, 0x493b0e
call fcn.004648f7
mov eax, dword [ebp + 0x420]
mov edi, dword [ebp + 0x41c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x428]
and dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
jmp 0x41091f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x41053b
test ebx, ebx
je 0x4105cc
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410984
cmp dword [ebp + 0x424], 0
je 0x4105cc
and dword [ebp - 0x14], 0
push 0x5c
push edi
call fcn.0040dda7
test eax, eax
pop ecx
pop ecx
jne 0x410937
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040df1a
test eax, eax
je 0x41058d
mov eax, dword [ebp - 0x20]
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040ec3b
and dword [ebp - 0x14], 0
test ebx, ebx
je 0x4105c4
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410946
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040df7b
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040da8a
test esi, esi
jl 0x410984
jmp 0x4108e7
lea ecx, [ebp - 0x14]
call fcn.0040da8a
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4105f2
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410984
push 0x49f72c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4106d3
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.0040de17
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x410984
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040de17
mov esi, eax
cmp esi, ebx
jl 0x410984
cmp word [edi], 0x3d
jne 0x41093f
cmp dword [ebp + 0x424], ebx
je 0x410676
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.004101d6
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
jl 0x41097f
mov byte [ebp - 4], bl
jmp 0x4108e2
cmp dword [ebp + 0x428], ebx
jne 0x4106c1
cmp dword [ebp - 0x1c], ebx
je 0x4106c1
push 0x20006
push ebx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0040daef
cmp eax, ebx
jne 0x41094b
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4106b9
cmp eax, 2
jne 0x41094b
lea ecx, [ebp - 0x14]
call fcn.0040da8a
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040df7b
mov esi, eax
cmp esi, ebx
jmp 0x410929
push 0x5c
push edi
call fcn.0040dda7
test eax, eax
pop ecx
pop ecx
jne 0x41093f
cmp dword [ebp + 0x424], eax
je 0x410768
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.0040daef
test eax, eax
je 0x410735
push 0x20019
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.0040daef
test eax, eax
je 0x410735
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.0040daa1
mov esi, eax
cmp esi, ebx
jne 0x410957
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410984
cmp word [edi], 0x3d
jne 0x4108e7
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.004101d6
mov esi, eax
jmp 0x4105b7
cmp dword [ebp + 0x428], 0
jne 0x410786
push 0x20019
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.0040daef
mov ebx, eax
jmp 0x410789
push 2
pop ebx
test ebx, ebx
je 0x410797
mov dword [ebp + 0x428], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.00467326
push eax
call fcn.0040a14e
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410984
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040df7b
mov esi, eax
test esi, esi
jl 0x410984
cmp word [edi], 0x7b
jne 0x410826
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x410826
push dword [ebp + 0x428]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x18]
push edi
call fcn.004104bf
mov esi, eax
test esi, esi
jge 0x410813
cmp dword [ebp + 0x428], 0
je 0x410984
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410984
cmp ebx, 2
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x428], eax
je 0x41092b
test ebx, ebx
je 0x410852
test eax, eax
jne 0x41092b
push ebx
call fcn.0040da2f
pop ecx
mov esi, eax
jmp 0x410984
test eax, eax
je 0x41089a
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.0040df46
test eax, eax
je 0x41089a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x208]
push eax
call fcn.0040df1a
test eax, eax
je 0x41092b
cmp dword [ebp - 0x1c], 0
je 0x41092b
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ec3b
jmp 0x41092b
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.0040df46
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.0040da8a
mov ebx, eax
test ebx, ebx
jne 0x410968
cmp dword [ebp - 0x1c], eax
je 0x41092b
cmp dword [ebp - 0x14], eax
jne 0x41092b
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x1c], ebx
test eax, eax
jne 0x410973
lea ecx, [ebp - 0x1c]
call fcn.0040da8a
cmp dword [ebp + 0x424], 0
je 0x41092b
cmp word [edi], 0x7b
jne 0x41092b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x41092b
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x424]
push dword [ebp - 0x18]
push edi
call fcn.004104bf
mov esi, eax
test esi, esi
jl 0x410984
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040de17
mov esi, eax
test esi, esi
jl 0x410984
cmp word [edi], 0x7d
jne 0x41050b
jmp 0x410984
lea ecx, [ebp - 0x14]
call fcn.0040da8a
mov esi, 0x80020009
jmp 0x410984
lea ecx, [ebp - 0x14]
jmp 0x41097f
push eax
call fcn.0040da2f
pop ecx
lea ecx, [ebp - 0x14]
jmp 0x41097d
lea ecx, [ebp - 0x18]
call fcn.0040da8a
push esi
call fcn.0040da2f
pop ecx
jmp 0x41098e
lea ecx, [ebp - 0x18]
call fcn.0040da8a
push ebx
jmp 0x410960
push eax
call fcn.0040da2f
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040da8a
lea ecx, [ebp - 0x18]
call fcn.0040da8a
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 + 0x410]
xor ecx, ebp
call fcn.004648e8
add ebp, 0x414
leave
ret 0x10