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

Disassembly:
mov eax, 0x10055c98
call fcn.100457f4
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.1003c394
mov esi, eax
cmp esi, ebx
jl 0x1003cbe1
cmp byte [edi], 0x7d
je 0x1003cbb3
push dword [0x10058b40]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x10058b38]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x1003c75f
test ebx, ebx
je 0x1003c82d
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
cmp dword [ebp + 0x10], 0
je 0x1003c82d
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
test cl, cl
je 0x1003c7a4
cmp cl, 0x5c
je 0x1003c79c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x1003c788
test eax, eax
jne 0x1003cb8d
mov esi, 0x100661a0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003c7d4
add esi, 4
cmp esi, str.TYPELIB
jl 0x1003c7a9
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.1000754a
and dword [ebp + 8], 0
test ebx, ebx
je 0x1003c81a
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x1003cba5
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003cf22
mov esi, eax
cmp esi, ebx
jl 0x1003cba5
and byte [ebp - 4], bl
cmp dword [ebp + 8], ebx
je 0x1003cb3f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003cb3f
and byte [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1003c82d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x10058b3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003c854
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x1c], eax
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
push dword [0x10058b34]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003c8ff
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x128]
push eax
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
cmp byte [edi], 0x3d
jne 0x1003cbdb
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1003c8d8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.1003cbfb
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x1003cbe1
and byte [ebp - 4], bl
jmp 0x1003cb3f
cmp dword [ebp + 0x14], ebx
jne 0x1003c8ed
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003cf22
mov esi, eax
cmp esi, ebx
jmp 0x1003cb86
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x1003c923
cmp cl, 0x5c
je 0x1003c917
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x1003c903
xor ebx, ebx
cmp eax, ebx
jne 0x1003cbe6
jmp 0x1003c925
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1003c9c9
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.100074a1
test eax, eax
je 0x1003c999
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.100074a1
test eax, eax
je 0x1003c999
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x1003cbe6
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x1003c98b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jne 0x1003cbe6
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
cmp byte [edi], 0x3d
jne 0x1003cb3f
mov ecx, dword [ebp - 0x14]
push edi
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.1003cbfb
jmp 0x1003cb39
cmp dword [ebp + 0x14], ebx
jne 0x1003c9ea
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.100074a1
test eax, eax
je 0x1003c9ea
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], ebx
jne 0x1003c9fc
mov eax, 0x104
call fcn.100462e0
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x1003ca32
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1003ce76
test eax, eax
jne 0x1003ca32
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1003ceab
test eax, eax
je 0x1003caf1
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003cf22
mov esi, eax
test esi, esi
jl 0x1003cbb3
cmp byte [edi], 0x7b
jne 0x1003caa5
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
push edi
call fcn.1003c6ea
mov esi, eax
test esi, esi
jl 0x1003cbb3
cmp dword [ebp + 0x14], 0
je 0x1003caaf
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push edi
mov dword [ebp + 0x14], eax
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003cf22
jmp 0x1003cb82
cmp dword [ebp + 0x14], 0
jne 0x1003c72b
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1003ce76
test eax, eax
je 0x1003caf1
mov esi, 0x100661a0
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003cb79
add esi, 4
cmp esi, str.TYPELIB
jl 0x1003cac3
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.1000754a
jmp 0x1003cb79
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x1003cb0c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 0x10], esi
jne 0x1003cbf4
cmp dword [ebp - 0x1c], esi
je 0x1003cb1d
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003cf22
mov esi, eax
test esi, esi
jl 0x1003cbb3
cmp dword [ebp + 0x10], 0
je 0x1003c72b
cmp byte [edi], 0x7b
jne 0x1003c72b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1003c72b
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.1003c6ea
mov esi, eax
test esi, esi
jl 0x1003cbb3
mov ecx, dword [ebp - 0x14]
push edi
call fcn.1003c394
mov esi, eax
test esi, esi
jl 0x1003cbb3
jmp 0x1003c72b
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1003cba0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
jmp 0x1003cbe9
cmp dword [ebp + 8], ebx
je 0x1003cbb3
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x1003cbc2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x134]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
cmp dword [ebp - 0x10], 0
jmp 0x1003cbe9
cmp dword [ebp - 0x10], ebx
jmp 0x1003cbb7
cmp dword [ebp - 0x10], ebx
je 0x1003cbf4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1003cbc4