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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1428
call fcn.0041a210
mov dword [ebp - 0x1434], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40fd65
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x24c]
jmp 0x4105e9
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x7d
je 0x4105cb
mov dword [ebp - 0x10], 1
mov edx, dword [str.Delete]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x130], eax
mov ecx, dword [str.ForceRemove]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40fdb9
cmp dword [ebp - 0x130], 0
je 0x40ffaf
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40fdd6
jmp 0x4105cb
cmp dword [ebp + 0x10], 0
je 0x40ffaf
mov dword [ebp - 0x134], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], 0
cmp dword [ebp - 0x298], 0
jne 0x40fe16
mov dword [ebp - 0x29c], 0
jmp 0x40fe60
mov edx, dword [ebp - 0x298]
movsx eax, byte [edx]
test eax, eax
je 0x40fe54
mov ecx, dword [ebp - 0x298]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40fe3f
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x294], eax
jmp 0x40fe54
mov ecx, dword [ebp - 0x298]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x298], eax
jmp 0x40fe16
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x29c], edx
cmp dword [ebp - 0x29c], 0
je 0x40fe9c
mov dword [ebp - 0x250], 0x80020009
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.00410680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x250]
jmp 0x4105e9
mov dword [ebp - 0x2a0], 0
jmp 0x40feb7
mov eax, dword [ebp - 0x2a0]
add eax, 1
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0xc
jge 0x40feea
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ecx*4 + 0x425368]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40fee8
mov dword [ebp - 0x2a4], 0
jmp 0x40fef4
jmp 0x40fea8
mov dword [ebp - 0x2a4], 1
cmp dword [ebp - 0x2a4], 0
je 0x40ff2b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x134]
call fcn.004107c0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x134], 0
cmp dword [ebp - 0x130], 0
je 0x40ffa0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40ff60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.00410680
jmp 0x4105cb
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.00411440
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40ff8c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.00410680
jmp 0x4105cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.00410680
jmp 0x410568
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.00410680
mov eax, dword [str.NoRemove]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ffe7
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40ffe7
jmp 0x4105cb
mov eax, dword [0x425428]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41021b
lea edx, [ebp - 0x23c]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x41001f
jmp 0x4105cb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x41003c
jmp 0x4105cb
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x41006b
mov dword [ebp - 0x254], 0x80020009
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x254]
jmp 0x4105e9
cmp dword [ebp + 0x10], 0
je 0x41010e
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.004109f0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x1420], ecx
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x20], 0
jge 0x4100fa
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00410680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x258]
jmp 0x4105e9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00410680
jmp 0x410568
cmp dword [ebp + 0x14], 0
jne 0x4101f9
cmp dword [ebp - 0x10], 0
je 0x4101f9
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x1424], 0
lea eax, [ebp - 0x1424]
push eax
push 0x20006
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1428], eax
cmp dword [ebp - 0x1428], 0
jne 0x41017c
lea ecx, [ebp - 0x244]
call fcn.00410680
mov dword [ebp - 0x1428], eax
mov edx, dword [ebp - 0x1424]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x1428]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4101cf
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4101cd
cmp dword [ebp - 0x18], 2
je 0x4101cd
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410600
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x244]
call fcn.00410680
jmp 0x4105cb
jmp 0x4101ee
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00410600
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x244]
call fcn.00410680
jmp 0x4105cb
lea ecx, [ebp - 0x244]
call fcn.00410680
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.00411440
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x410216
jmp 0x4105cb
jmp 0x40fd65
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.004109a0
add esp, 8
test eax, eax
je 0x410251
mov dword [ebp - 0x25c], 0x80020009
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x25c]
jmp 0x4105e9
cmp dword [ebp + 0x10], 0
je 0x410339
push 0x2001f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00410750
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4102e9
push 0x20019
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00410750
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4102e9
push 0
push 0
push 0x2001f
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004106c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4102e9
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00410600
add esp, 4
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x260]
jmp 0x4105e9
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x410306
jmp 0x4105cb
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x3d
jne 0x410334
mov edx, dword [ebp + 8]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.004109f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x410334
jmp 0x4105cb
jmp 0x410568
cmp dword [ebp + 0x14], 0
jne 0x410359
push 0x20019
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00410750
mov dword [ebp - 0x18], eax
jmp 0x410360
mov dword [ebp - 0x18], 2
cmp dword [ebp - 0x18], 0
je 0x41036d
mov dword [ebp + 0x14], 1
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4103a0
jmp 0x4105cb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.00411440
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4103bd
jmp 0x4105cb
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x7b
jne 0x410414
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.0040fce0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4103f7
cmp dword [ebp + 0x14], 0
jne 0x4103f7
jmp 0x4105cb
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x410414
jmp 0x4105cb
mov edx, dword [ebp - 0x1c]
mov dword [ebp + 0x14], edx
cmp dword [ebp - 0x18], 2
jne 0x410425
jmp 0x40fd65
cmp dword [ebp - 0x18], 0
je 0x41044a
cmp dword [ebp + 0x14], 0
je 0x410436
jmp 0x40fd65
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410600
add esp, 4
mov dword [ebp - 0x20], eax
jmp 0x4105cb
cmp dword [ebp + 0x14], 0
je 0x410493
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1434]
call fcn.004113f0
test eax, eax
je 0x410493
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.004113a0
test eax, eax
je 0x41048e
cmp dword [ebp - 0x10], 0
je 0x41048e
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004107c0
jmp 0x40fd65
mov dword [ebp - 0x142c], 0
cmp dword [ebp - 0x14], 0
je 0x4104ba
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x142c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x4104f5
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410600
add esp, 4
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x264]
jmp 0x4105e9
cmp dword [ebp - 0x10], 0
je 0x410568
mov dword [ebp - 0x248], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x248], ecx
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x1430], ecx
mov dword [ebp - 0x248], 0
cmp dword [ebp - 0x18], 0
je 0x41055d
mov edx, dword [ebp - 0x18]
push edx
call fcn.00410600
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x248]
call fcn.00410680
jmp 0x4105cb
lea ecx, [ebp - 0x248]
call fcn.00410680
cmp dword [ebp + 0x10], 0
je 0x4105c6
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x7b
jne 0x4105c6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4105c6
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1434]
call fcn.0040fce0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4105ac
jmp 0x4105cb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1434]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4105c6
jmp 0x4105cb
jmp 0x40fd65
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x268], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410680
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10