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

Disassembly:
jmp 0x40547f
mov eax, 0x410590
call fcn.00408370
sub esp, 0x11c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.004010f0
mov esi, eax
cmp esi, ebx
jl 0x405976
cmp byte [edi], 0x7d
je 0x405948
push dword [0x4120e0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x4120d8]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4054f4
test ebx, ebx
je 0x4055c2
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
cmp dword [ebp + 0x10], 0
je 0x4055c2
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
test cl, cl
je 0x405539
cmp cl, 0x5c
je 0x405531
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x40551d
test eax, eax
jne 0x405922
mov esi, 0x414e50
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405569
add esi, 4
cmp esi, 0x414e58
jl 0x40553e
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040114f
and dword [ebp + 8], 0
test ebx, ebx
je 0x4055af
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40593a
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040100a
mov esi, eax
cmp esi, ebx
jl 0x40593a
and byte [ebp - 4], bl
cmp dword [ebp + 8], ebx
je 0x4058d4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4058d4
and byte [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4055c2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x4120dc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4055e9
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x1c], eax
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
push dword [0x4120d4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405694
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x128]
push eax
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
cmp byte [edi], 0x3d
jne 0x405970
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40566d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x128]
push edi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.00401019
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x405976
and byte [ebp - 4], bl
jmp 0x4058d4
cmp dword [ebp + 0x14], ebx
jne 0x405682
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040100a
mov esi, eax
cmp esi, ebx
jmp 0x40591b
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x4056b8
cmp cl, 0x5c
je 0x4056ac
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x405698
xor ebx, ebx
cmp eax, ebx
jne 0x40597b
jmp 0x4056ba
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40575e
mov esi, 0xf003f
lea ecx, [ebp - 0x10]
push esi
push edi
push dword [ebp + 0xc]
call fcn.004011c7
test eax, eax
je 0x40572e
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004011c7
test eax, eax
je 0x40572e
lea eax, [ebp - 0x24]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40597b
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x405720
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40597b
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
cmp byte [edi], 0x3d
jne 0x4058d4
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00401019
jmp 0x4058ce
cmp dword [ebp + 0x14], ebx
jne 0x40577f
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004011c7
test eax, eax
je 0x40577f
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], ebx
jne 0x405791
mov eax, 0x104
call fcn.00408ca0
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x4057c7
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00401122
test eax, eax
jne 0x4057c7
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00401005
test eax, eax
je 0x405886
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040100a
mov esi, eax
test esi, esi
jl 0x405948
cmp byte [edi], 0x7b
jne 0x40583a
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
push edi
call fcn.004011e5
mov esi, eax
test esi, esi
jl 0x405948
cmp dword [ebp + 0x14], 0
je 0x405844
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push edi
mov dword [ebp + 0x14], eax
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040100a
jmp 0x405917
cmp dword [ebp + 0x14], 0
jne 0x4054c0
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00401122
test eax, eax
je 0x405886
mov esi, 0x414e50
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40590e
add esi, 4
cmp esi, 0x414e58
jl 0x405858
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.0040114f
jmp 0x40590e
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x4058a1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 0x10], esi
jne 0x405989
cmp dword [ebp - 0x1c], esi
je 0x4058b2
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040100a
mov esi, eax
test esi, esi
jl 0x405948
cmp dword [ebp + 0x10], 0
je 0x4054c0
cmp byte [edi], 0x7b
jne 0x4054c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4054c0
push 0
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.004011e5
mov esi, eax
test esi, esi
jl 0x405948
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004010f0
mov esi, eax
test esi, esi
jl 0x405948
jmp 0x4054c0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405935
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
jmp 0x40597e
cmp dword [ebp + 8], ebx
je 0x405948
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x405957
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x134]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp - 0x10], 0
jmp 0x40597e
cmp dword [ebp - 0x10], ebx
jmp 0x40594c
cmp dword [ebp - 0x10], ebx
je 0x405989
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x405959