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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463da5
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x48d044]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x48d044]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x460], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jge 0x413e63
or dword [esp + 0x460], 0xffffffff
jmp 0x4142e5
push str.Delete
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
push str.ForceRemove
inc esi
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413d8b
cmp esi, ebx
je 0x413e79
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
cmp dword [ebp + 0x10], ebx
je 0x413e79
mov dword [esp + 0x28], ebx
mov byte [esp + 0x460], 1
push 0x5c
mov eax, edi
call fcn.00413a6f
test eax, eax
pop ecx
jne 0x414268
push edi
call fcn.004148a3
test eax, eax
je 0x413de7
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.004148cf
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x20], ebx
je 0x413e72
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c0
mov ecx, dword [esp + 0x18]
call fcn.0041483e
mov esi, eax
cmp esi, ebx
jl 0x4142c0
mov byte [esp + 0x460], bl
cmp word [edi], 0x7b
jne 0x413e63
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x413e63
mov ecx, dword [esp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push edi
call fcn.00413cd4
mov esi, eax
cmp esi, ebx
jl 0x4142c7
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
cmp word [edi], 0x7d
jne 0x413d54
jmp 0x4142c7
mov byte [esp + 0x460], bl
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413ea2
mov ecx, dword [esp + 0x18]
mov eax, edi
mov dword [esp + 0x1c], ebx
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
push 0x46bb58
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413fb2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x244]
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
cmp word [edi], 0x3d
jne 0x414268
cmp dword [ebp + 0x10], ebx
je 0x413f31
mov dword [esp + 0x34], ebx
mov byte [esp + 0x460], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
push edi
lea eax, [esp + 0x248]
push eax
lea edx, [esp + 0x3c]
call fcn.00414351
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x34], ebx
jl 0x4142c7
jmp 0x413e19
cmp dword [ebp + 0x14], ebx
jne 0x413fa4
cmp dword [esp + 0x1c], ebx
je 0x413fa4
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x460], 3
lea eax, [esp + 0x1c]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4142b9
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x244]
push eax
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x413f8e
cmp eax, 2
jne 0x41428b
mov byte [esp + 0x460], bl
cmp esi, ebx
je 0x413fa4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x18]
call fcn.0041483e
jmp 0x413e59
push 0x5c
mov eax, edi
call fcn.00413a6f
test eax, eax
pop ecx
jne 0x414268
cmp dword [ebp + 0x10], ebx
je 0x41409e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push ebx
push edi
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x41400f
xor eax, eax
cmp dword [esp + 0x14], ebx
je 0x414003
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
je 0x414061
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x41404b
xor eax, eax
cmp dword [esp + 0x14], ebx
je 0x41403f
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
je 0x414061
push edi
push dword [esp + 0x28]
lea esi, [esp + 0x1c]
call fcn.0041430b
cmp eax, ebx
jne 0x4141a9
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
cmp word [edi], 0x3d
jne 0x413e20
mov ecx, dword [esp + 0x18]
push edi
push ebx
lea edx, [esp + 0x1c]
call fcn.00414351
mov esi, eax
cmp esi, ebx
jl 0x4142c7
jmp 0x413e20
cmp dword [ebp + 0x14], ebx
jne 0x4140e5
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x34]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4140df
xor eax, eax
cmp dword [esp + 0x14], ebx
je 0x4140d7
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jmp 0x4140ed
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], ebx
je 0x4140fa
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x44]
push 0x104
push eax
call fcn.0044f72c
push eax
call fcn.0040ad16
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
mov ecx, dword [esp + 0x18]
call fcn.0041483e
mov esi, eax
cmp esi, ebx
jl 0x4142c7
cmp word [edi], 0x7b
jne 0x414185
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x414185
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x1c]
push edi
call fcn.00413cd4
mov esi, eax
cmp esi, ebx
jge 0x414170
cmp dword [ebp + 0x14], ebx
je 0x4142c7
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.00413bc3
mov esi, eax
cmp esi, ebx
jl 0x4142c7
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x14], eax
je 0x413e63
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4141b5
cmp dword [esp + 0x30], ebx
jne 0x413e63
call fcn.00414a7a
mov esi, eax
jmp 0x4142c7
cmp dword [esp + 0x30], ebx
je 0x4141f7
push dword [esp + 0x14]
call fcn.00414a34
test eax, eax
je 0x4141f7
lea eax, [esp + 0x3c]
push eax
call fcn.004148a3
test eax, eax
je 0x413e63
cmp dword [esp + 0x1c], ebx
je 0x413e63
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.004148cf
jmp 0x413e63
push dword [esp + 0x14]
call fcn.00414a34
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
je 0x414220
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x4142af
cmp dword [esp + 0x1c], ebx
je 0x413e63
cmp dword [esp + 0x20], ebx
jne 0x413e63
mov dword [esp + 0x38], ebx
mov byte [esp + 0x460], 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
mov dword [esp + 0x38], ebx
jne 0x4142b9
mov byte [esp + 0x460], bl
jmp 0x413e63
or dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x414284
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, 0x80020009
jmp 0x4142e5
call fcn.00414a7a
mov esi, eax
mov byte [esp + 0x460], bl
cmp dword [esp + 0x1c], ebx
je 0x4142c7
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], ebx
jmp 0x4142c7
call fcn.00414a7a
jmp 0x413d47
call fcn.00414a7a
mov esi, eax
mov byte [esp + 0x460], bl
or dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x4142e3
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, esi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0044c8d7
mov esp, ebp
pop ebp
ret 0x10