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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452e3b
mov eax, dword fs:[0]
push eax
mov eax, 0x1144
call fcn.004149f0
mov eax, dword [0x468114]
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 - 0x1118], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1124], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1130], ebx
mov dword [ebp - 0x1128], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123de
jmp 0x4123a7
push str.Delete
push edi
mov dword [ebp - 0x111c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.ForceRemove
mov esi, eax
push edi
mov dword [ebp - 0x1120], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x411e6f
test esi, esi
jne 0x411f34
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
cmp dword [ebp + 0x10], 0
je 0x411f34
and dword [ebp - 0x1140], 0
and dword [ebp - 0x1138], 0
push 0x5c
push edi
call fcn.0041293f
pop ecx
pop ecx
test eax, eax
jne 0x4123ce
mov esi, dword [ebp - 0x1118]
mov ecx, esi
push edi
call fcn.00410e7f
test eax, eax
je 0x411eee
mov eax, dword [ebp - 0x1124]
lea ecx, [ebp - 0x1140]
and dword [ebp - 0x113c], 0
push edi
mov dword [ebp - 0x1140], eax
call fcn.004116a0
and dword [ebp - 0x1140], 0
and dword [ebp - 0x1138], 0
cmp dword [ebp - 0x1120], 0
jne 0x411f2b
push edi
mov ecx, esi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00412870
mov esi, eax
test esi, esi
js 0x4123d3
and dword [ebp - 0x113c], 0
jmp 0x4121b2
and dword [ebp - 0x113c], 0
jmp 0x411f3a
mov esi, dword [ebp - 0x1118]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x411f62
and dword [ebp - 0x111c], eax
mov ecx, esi
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
push 0x456140
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4120a1
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x1114]
push eax
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
cmp byte [edi], 0x3d
jne 0x4123ce
cmp dword [ebp + 0x10], 0
je 0x41201b
mov eax, dword [ebp - 0x1124]
mov ecx, 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]
mov byte [ebp - 4], 1
push eax
call fcn.0040fd3c
mov esi, eax
xor eax, eax
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1144], eax
test esi, esi
js 0x4123d3
mov byte [ebp - 4], al
mov dword [ebp - 0x1148], eax
jmp 0x4121b2
cmp dword [ebp + 0x14], 0
jne 0x412086
cmp dword [ebp - 0x111c], 0
je 0x412086
lea eax, [ebp - 0x111c]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [ebp - 0x1124]
mov dword [ebp - 0x111c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41215e
mov esi, dword [ebp - 0x111c]
lea eax, [ebp - 0x1114]
push eax
push esi
mov dword [ebp - 0x1120], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x41207b
cmp eax, 2
jne 0x4123b2
test esi, esi
je 0x412086
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00412870
mov esi, eax
test esi, esi
js 0x4123d3
jmp 0x4123a7
push 0x5c
push edi
call fcn.0041293f
pop ecx
pop ecx
test eax, eax
jne 0x4123ce
cmp dword [ebp + 0x10], eax
je 0x4121f8
mov ebx, dword [ebp - 0x1124]
lea ecx, [ebp - 0x1130]
mov esi, 0x2001f
push esi
push edi
push ebx
call fcn.004113f5
test eax, eax
je 0x41216c
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x1130]
call fcn.004113f5
test eax, eax
je 0x41216c
mov ecx, dword [ebp - 0x1128]
lea eax, [ebp - 0x1150]
push eax
xor edx, edx
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], edx
push eax
push edx
push esi
push edx
push edx
push edx
push edi
push ebx
test ecx, ecx
je 0x412121
call fcn.0041178e
jmp 0x412127
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412154
cmp dword [ebp - 0x1130], eax
je 0x41213f
push dword [ebp - 0x1130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x111c]
and dword [ebp - 0x112c], 0
mov dword [ebp - 0x1130], ebx
jmp 0x41215a
mov ebx, dword [ebp - 0x1130]
test eax, eax
je 0x412172
push eax
call fcn.0041052b
pop ecx
mov esi, eax
jmp 0x4123d3
mov ebx, dword [ebp - 0x1130]
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
cmp byte [edi], 0x3d
jne 0x4121b2
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x1130]
push edi
push 0
push eax
call fcn.0040fd3c
mov ebx, dword [ebp - 0x1130]
mov esi, eax
test esi, esi
js 0x4123d3
cmp byte [edi], 0x7b
jne 0x4123a7
push edi
call fcn.00422d70
pop ecx
cmp eax, 1
jne 0x4123a7
mov ecx, dword [ebp - 0x1118]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00411dc3
mov esi, eax
test esi, esi
js 0x4123d3
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004112f3
jmp 0x412092
cmp dword [ebp + 0x14], 0
jne 0x41221d
push 0x20019
push edi
push dword [ebp - 0x1124]
lea ecx, [ebp - 0x1130]
call fcn.004113f5
mov ebx, dword [ebp - 0x1130]
jmp 0x412220
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x1120], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push 0x104
push eax
mov dword [ebp - 0x1134], ecx
call fcn.00436fa5
push eax
call fcn.00407f54
mov ecx, dword [ebp - 0x1118]
add esp, 0x14
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.00412870
mov esi, eax
test esi, esi
js 0x4123d3
cmp byte [edi], 0x7b
jne 0x4122cd
push edi
call fcn.00422d70
pop ecx
cmp eax, 1
jne 0x4122cd
push dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x1118]
push 0
push ebx
push edi
call fcn.00411dc3
mov esi, eax
test esi, esi
jns 0x4122b7
cmp dword [ebp - 0x1134], 0
je 0x4123d3
mov ecx, dword [ebp - 0x1118]
push edi
call fcn.004112f3
mov esi, eax
test esi, esi
js 0x4123d3
mov eax, dword [ebp - 0x1120]
cmp eax, 2
je 0x4123a7
test eax, eax
je 0x4122ef
cmp dword [ebp + 0x14], 0
je 0x41215e
jmp 0x4123a7
cmp dword [ebp + 0x14], 0
je 0x412342
mov ecx, dword [ebp - 0x1118]
push ebx
call fcn.00411185
test eax, eax
je 0x412342
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x114]
push eax
call fcn.00410e7f
test eax, eax
je 0x4123a7
cmp dword [ebp - 0x111c], 0
je 0x4123a7
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1130]
call fcn.004116a0
mov ebx, dword [ebp - 0x1130]
jmp 0x4123a7
mov ecx, dword [ebp - 0x1118]
push ebx
call fcn.00411185
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x1120], ecx
test ebx, ebx
je 0x412371
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1120]
xor ebx, ebx
mov dword [ebp - 0x1130], ebx
and dword [ebp - 0x112c], 0
test eax, eax
jne 0x41215e
cmp dword [ebp - 0x111c], eax
je 0x4123a7
test ecx, ecx
jne 0x4123a7
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x1124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x41215e
cmp byte [edi], 0x7d
jne 0x411e39
jmp 0x4123d3
push eax
call fcn.0041052b
mov esi, eax
mov eax, dword [ebp - 0x1120]
pop ecx
test eax, eax
je 0x4123d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4123d3
mov esi, 0x80020009
test ebx, ebx
je 0x4123de
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004146b1
leave
ret 0x10