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

Disassembly:
mov eax, 0x1002c840
call fcn.100113a0
sub esp, 0x11c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.10003637
mov esi, eax
cmp esi, ebx
jge 0x10003e09
cmp dword [ebp - 0x10], ebx
jmp 0x10003e16
push dword [0x1002f408]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x1002f400]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x100039f2
test ebx, ebx
je 0x10003abc
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
cmp dword [ebp + 0x10], 0
je 0x10003abc
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x10003a2f
cmp cl, 0x5c
je 0x10003e3a
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10003a1d
mov esi, 0x100380b0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10003a63
add esi, 4
cmp esi, str.TYPELIB
jl 0x10003a38
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.10003ed0
and dword [ebp + 8], 0
test ebx, ebx
je 0x10003aa9
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10003e52
mov ecx, dword [ebp - 0x14]
push edi
call fcn.100042b3
mov esi, eax
cmp esi, ebx
jl 0x10003e52
and byte [ebp - 4], bl
cmp dword [ebp + 8], ebx
je 0x10003dcc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003dcc
and byte [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x10003abc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x1002f404]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003ae3
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x1c], eax
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
push dword [0x1002f3fc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003b8e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x128]
push eax
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
cmp byte [edi], 0x3d
jne 0x10003e62
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10003b67
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x128]
push edi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.10003fa8
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x100039bf
and byte [ebp - 4], bl
jmp 0x10003dcc
cmp dword [ebp + 0x14], ebx
jne 0x10003b7c
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.100042b3
mov esi, eax
cmp esi, ebx
jmp 0x10003e07
mov cl, byte [edi]
mov eax, edi
jmp 0x10003ba6
cmp cl, 0x5c
je 0x10003e62
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10003b94
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10003c50
mov esi, 0xf003f
lea ecx, [ebp - 0x10]
push esi
push edi
push dword [ebp + 0xc]
call fcn.10003e92
test eax, eax
je 0x10003c20
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10003e92
test eax, eax
je 0x10003c20
lea eax, [ebp - 0x24]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10003e68
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x10003c12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x10003e68
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
cmp byte [edi], 0x3d
jne 0x10003dcc
mov ecx, dword [ebp - 0x14]
push edi
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.10003fa8
jmp 0x10003dc6
cmp dword [ebp + 0x14], ebx
jne 0x10003c71
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10003e92
test eax, eax
je 0x10003c71
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], ebx
jne 0x10003c83
mov eax, 0x104
call fcn.100116c0
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 0x10003cb9
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10004209
test eax, eax
jne 0x10003cb9
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1000423e
test eax, eax
je 0x10003d84
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
mov ecx, dword [ebp - 0x14]
push edi
call fcn.100042b3
mov esi, eax
test esi, esi
jl 0x10003e12
cmp byte [edi], 0x7b
jne 0x10003d2c
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
push edi
call fcn.1000397e
mov esi, eax
test esi, esi
jl 0x10003e12
cmp dword [ebp + 0x14], 0
je 0x10003d36
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push edi
mov dword [ebp + 0x14], eax
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
mov ecx, dword [ebp - 0x14]
push edi
call fcn.100042b3
jmp 0x10003e03
cmp dword [ebp + 0x14], 0
jne 0x10003e09
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10004209
test eax, eax
je 0x10003d78
mov esi, 0x100380b0
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10003dfa
add esi, 4
cmp esi, str.TYPELIB
jl 0x10003d4a
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.10003ed0
jmp 0x10003dfa
cmp dword [ebp + 0x14], 0
jne 0x10003e09
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x10003d9d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [ebp - 0x10], ebx
jne 0x10003e76
cmp dword [ebp - 0x1c], ebx
je 0x10003dae
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
mov ecx, dword [ebp - 0x14]
push edi
call fcn.100042b3
mov esi, eax
test esi, esi
jl 0x10003e12
cmp dword [ebp + 0x10], 0
je 0x10003e09
cmp byte [edi], 0x7b
jne 0x10003e09
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10003e09
push 0
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.1000397e
mov esi, eax
test esi, esi
jl 0x10003e12
mov ecx, dword [ebp - 0x14]
push edi
call fcn.10003637
mov esi, eax
test esi, esi
jl 0x10003e12
cmp byte [edi], 0x7d
jne 0x100039c7
cmp dword [ebp - 0x10], 0
je 0x10003e21
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10003e4d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
jmp 0x10003e6b
cmp dword [ebp + 8], ebx
je 0x10003e12
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003e12
cmp dword [ebp - 0x10], 0
jmp 0x10003e6b
cmp dword [ebp - 0x10], ebx
je 0x10003e76
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x10003e23