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

Disassembly:
mov eax, 0x44c0b1
call fcn.0043a704
sub esp, 0x220
mov eax, dword [0x46159c]
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.0041428f
mov esi, eax
test esi, esi
jge 0x414702
lea ecx, [ebp - 0x21c]
call fcn.00414cd5
mov eax, esi
jmp 0x414c23
push ebx
jmp 0x414844
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 0x41473b
test ebx, ebx
je 0x414865
mov ecx, dword [ebp - 0x220]
push edi
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
cmp dword [ebp + 0x10], 0
je 0x414865
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x414777
cmp cl, 0x5c
je 0x41477d
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x414769
jmp 0x414785
test eax, eax
jne 0x414c3b
mov esi, 0x44e7e8
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4147b5
add esi, 4
cmp esi, str.TypeLib
jl 0x41478a
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00414dbb
and dword [ebp + 8], 0
test ebx, ebx
je 0x414852
mov ecx, dword [ebp - 0x220]
push edi
call fcn.0041428f
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x414c72
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00414d56
mov esi, eax
cmp esi, ebx
jl 0x414c72
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
je 0x4147fc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x414844
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x414844
mov ecx, dword [ebp - 0x220]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x21c]
push edi
call fcn.004146ad
mov esi, eax
test esi, esi
jl 0x414c0b
mov ecx, dword [ebp - 0x220]
push edi
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
cmp byte [edi], 0x7d
jne 0x414708
jmp 0x414c0b
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 0
je 0x414865
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 0x414891
mov ecx, dword [ebp - 0x220]
and dword [ebp - 0x224], eax
push edi
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
push 0x44e8d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x414986
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
mov ecx, dword [ebp - 0x220]
push edi
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
cmp byte [edi], 0x3d
jne 0x414c82
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x41491d
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.00414e66
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x414c94
mov byte [ebp - 4], bl
jmp 0x4147fc
cmp dword [ebp + 0x14], ebx
jne 0x414971
cmp dword [ebp - 0x224], ebx
je 0x414971
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00414cec
cmp eax, ebx
jne 0x414c69
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x414963
cmp eax, 2
jne 0x414c69
cmp dword [ebp + 8], ebx
je 0x414971
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00414d56
mov esi, eax
cmp esi, ebx
jmp 0x41483e
mov cl, byte [edi]
mov eax, edi
jmp 0x41499a
cmp cl, 0x5c
je 0x4149a0
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x41498c
jmp 0x4149a8
test eax, eax
jne 0x414c82
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x414a7e
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00414cec
test eax, eax
je 0x414a3b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00414cec
test eax, eax
je 0x414a3b
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 0x414c8b
xor eax, eax
cmp dword [ebp - 0x21c], ebx
je 0x414a27
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 0x414c8b
mov ecx, dword [ebp - 0x220]
push edi
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
cmp byte [edi], 0x3d
jne 0x4147fc
mov ecx, dword [ebp - 0x220]
push edi
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00414e66
mov esi, eax
test esi, esi
jl 0x414c0b
jmp 0x4147fc
cmp dword [ebp + 0x14], esi
jne 0x414a9c
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00414cec
mov dword [ebp + 8], eax
jmp 0x414aa3
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x414aaf
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.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
push edi
mov ecx, ebx
call fcn.00414d56
mov esi, eax
test esi, esi
jl 0x414c0b
cmp byte [edi], 0x7b
jne 0x414b26
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x21c]
push edi
call fcn.004146ad
mov esi, eax
test esi, esi
jge 0x414b14
cmp dword [ebp + 0x14], 0
je 0x414c0b
push edi
mov ecx, ebx
call fcn.0041428f
mov esi, eax
test esi, esi
jl 0x414c0b
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x228]
mov dword [ebp + 0x14], eax
je 0x414844
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x414b50
cmp eax, ebx
jne 0x414844
push dword [ebp + 8]
jmp 0x414c03
cmp dword [ebp - 0x228], ebx
je 0x414bb8
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
call fcn.00414d21
test eax, eax
je 0x414bb8
mov ebx, 0x44e7e8
push dword [ebx]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x414844
add ebx, 4
cmp ebx, str.TypeLib
jl 0x414b72
cmp dword [ebp - 0x224], 0
je 0x414844
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00414dbb
jmp 0x414844
cmp dword [ebp - 0x21c], ebx
je 0x414bdd
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x21c], 0
test eax, eax
jne 0x414c9f
cmp dword [ebp - 0x224], 0
je 0x414844
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x414844
push eax
call fcn.00414cc2
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], 0
je 0x414c20
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.00439e9c
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x414c4e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x21c], esi
je 0x414c62
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x414c22
push eax
call fcn.00414cc2
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x414c0b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414c0b
cmp dword [ebp - 0x21c], 0
jmp 0x414c54
push eax
call fcn.00414cc2
pop ecx
mov esi, eax
cmp dword [ebp - 0x21c], ebx
jmp 0x414c12
push eax
call fcn.00414cc2
cmp dword [ebp - 0x21c], 0
pop ecx
mov esi, eax
je 0x414c20
push dword [ebp - 0x21c]
call ebx
jmp 0x414c20