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

Disassembly:
mov eax, 0x44adff
call fcn.00439464
sub esp, 0x220
mov eax, dword [0x45f56c]
and dword [ebp - 0x21c], 0
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x228], eax
call fcn.00413a69
mov esi, eax
test esi, esi
jge 0x413edc
lea ecx, [ebp - 0x21c]
call fcn.004144af
mov eax, esi
jmp 0x4143fd
push ebx
jmp 0x41401e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x224], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x413f15
test ebx, ebx
je 0x41403f
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
cmp dword [ebp + 0x10], 0
je 0x41403f
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x413f51
cmp cl, 0x5c
je 0x413f57
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x413f43
jmp 0x413f5f
test eax, eax
jne 0x414415
mov esi, 0x44d724
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413f8f
add esi, 4
cmp esi, str.TypeLib
jl 0x413f64
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00414595
and dword [ebp + 8], 0
test ebx, ebx
je 0x41402c
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00413a69
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x41444c
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00414530
mov esi, eax
cmp esi, ebx
jl 0x41444c
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
je 0x413fd6
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x41401e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x41401e
mov ecx, dword [ebp - 0x220]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x21c]
push edi
call fcn.00413e87
mov esi, eax
test esi, esi
jl 0x4143e5
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
cmp byte [edi], 0x7d
jne 0x413ee2
jmp 0x4143e5
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 0
je 0x41403f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41406b
mov ecx, dword [ebp - 0x220]
and dword [ebp - 0x224], eax
push edi
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
push 0x44d814
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x414160
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
cmp byte [edi], 0x3d
jne 0x41445c
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4140f7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x220]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00414640
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x41446e
mov byte [ebp - 4], bl
jmp 0x413fd6
cmp dword [ebp + 0x14], ebx
jne 0x41414b
cmp dword [ebp - 0x224], ebx
je 0x41414b
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.004144c6
cmp eax, ebx
jne 0x414443
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x41413d
cmp eax, 2
jne 0x414443
cmp dword [ebp + 8], ebx
je 0x41414b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00414530
mov esi, eax
cmp esi, ebx
jmp 0x414018
mov cl, byte [edi]
mov eax, edi
jmp 0x414174
cmp cl, 0x5c
je 0x41417a
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x414166
jmp 0x414182
test eax, eax
jne 0x41445c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x414258
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004144c6
test eax, eax
je 0x414215
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004144c6
test eax, eax
je 0x414215
lea eax, [ebp - 0x22c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x414465
xor eax, eax
cmp dword [ebp - 0x21c], ebx
je 0x414201
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
jne 0x414465
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
cmp byte [edi], 0x3d
jne 0x413fd6
mov ecx, dword [ebp - 0x220]
push edi
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00414640
mov esi, eax
test esi, esi
jl 0x4143e5
jmp 0x413fd6
cmp dword [ebp + 0x14], esi
jne 0x414276
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004144c6
mov dword [ebp + 8], eax
jmp 0x41427d
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x414289
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x220]
push edi
mov ecx, ebx
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
push edi
mov ecx, ebx
call fcn.00414530
mov esi, eax
test esi, esi
jl 0x4143e5
cmp byte [edi], 0x7b
jne 0x414300
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x21c]
push edi
call fcn.00413e87
mov esi, eax
test esi, esi
jge 0x4142ee
cmp dword [ebp + 0x14], 0
je 0x4143e5
push edi
mov ecx, ebx
call fcn.00413a69
mov esi, eax
test esi, esi
jl 0x4143e5
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x228]
mov dword [ebp + 0x14], eax
je 0x41401e
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41432a
cmp eax, ebx
jne 0x41401e
push dword [ebp + 8]
jmp 0x4143dd
cmp dword [ebp - 0x228], ebx
je 0x414392
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
call fcn.004144fb
test eax, eax
je 0x414392
mov ebx, 0x44d724
push dword [ebx]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41401e
add ebx, 4
cmp ebx, str.TypeLib
jl 0x41434c
cmp dword [ebp - 0x224], 0
je 0x41401e
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00414595
jmp 0x41401e
cmp dword [ebp - 0x21c], ebx
je 0x4143b7
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x21c], 0
test eax, eax
jne 0x414479
cmp dword [ebp - 0x224], 0
je 0x41401e
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x41401e
push eax
call fcn.0041449c
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x4143fa
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.00438bfc
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x414428
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x21c], esi
je 0x41443c
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4143fc
push eax
call fcn.0041449c
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x4143e5
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4143e5
cmp dword [ebp - 0x21c], 0
jmp 0x41442e
push eax
call fcn.0041449c
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], ebx
jmp 0x4143ec
push eax
call fcn.0041449c
cmp dword [ebp - 0x21c], 0
pop ecx
mov esi, eax
je 0x4143fa
push dword [ebp - 0x21c]
call ebx
jmp 0x4143fa