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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
call fcn.01003353
mov esi, eax
cmp esi, ebx
jl 0x1003ae2
cmp word [edi], 0x7d
je 0x1003abe
push dword [0x1001210]
mov esi, dword [sym.imp.UNIANSI.dll_lstrcmpiW]
push edi
call esi
push dword [0x1001208]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x1003674
test ebx, ebx
je 0x100373b
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
cmp dword [ebp + 0x10], 0
je 0x100373b
and dword [ebp + 8], 0
mov cx, word [edi]
mov eax, edi
test cx, cx
je 0x10036b9
cmp cx, 0x5c
je 0x10036b1
push eax
call dword [sym.imp.UNIANSI.dll_CharNextW]
mov cx, word [eax]
jmp 0x100369a
test eax, eax
jne 0x1003a98
mov esi, 0x1007020
push dword [esi]
push edi
call dword [sym.imp.UNIANSI.dll_lstrcmpiW]
test eax, eax
je 0x10036e9
add esi, 4
cmp esi, str.TYPELIB
jl 0x10036be
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.01003b3a
and dword [ebp + 8], 0
test ebx, ebx
je 0x100372c
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x1003ab0
mov ecx, dword [ebp - 8]
push edi
call fcn.01003f18
mov esi, eax
cmp esi, ebx
jl 0x1003ab0
cmp dword [ebp + 8], ebx
je 0x1003a49
push dword [ebp + 8]
call dword [entry0]
jmp 0x1003a49
cmp dword [ebp + 8], 0
je 0x100373b
push dword [ebp + 8]
call dword [entry0]
push dword [0x100120c]
push edi
call dword [sym.imp.UNIANSI.dll_lstrcmpiW]
test eax, eax
jne 0x1003762
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], eax
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
push dword [0x1001204]
push edi
call dword [sym.imp.UNIANSI.dll_lstrcmpiW]
test eax, eax
jne 0x1003807
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x220]
push eax
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
cmp word [edi], 0x3d
jne 0x1003adc
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10037e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x220]
push edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.01003c1e
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x1003ae2
jmp 0x1003a49
cmp dword [ebp + 0x14], ebx
jne 0x10037f5
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.UNIANSI.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
push edi
call fcn.01003f18
mov esi, eax
cmp esi, ebx
jmp 0x1003a91
mov cx, word [edi]
mov eax, edi
xor ebx, ebx
cmp cx, bx
je 0x100382d
cmp cx, 0x5c
je 0x1003825
push eax
call dword [sym.imp.UNIANSI.dll_CharNextW]
mov cx, word [eax]
jmp 0x100380e
cmp eax, ebx
jne 0x1003ae7
cmp dword [ebp + 0x10], ebx
je 0x10038d2
mov esi, 0xf003f
lea ecx, [ebp - 4]
push esi
push edi
push dword [ebp + 0xc]
call fcn.01003afc
test eax, eax
je 0x10038a1
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.01003afc
test eax, eax
je 0x10038a1
lea eax, [ebp - 0x18]
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.UNIANSI.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1003ae7
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x1003893
push dword [ebp - 4]
call dword [entry0]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 4], ecx
jne 0x1003ae7
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
cmp word [edi], 0x3d
jne 0x1003a49
mov ecx, dword [ebp - 8]
push edi
lea eax, [ebp - 4]
push 0
push eax
call fcn.01003c1e
jmp 0x1003a43
cmp dword [ebp + 0x14], ebx
jne 0x10038f3
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.01003afc
test eax, eax
je 0x10038f3
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0xc], ebx
jne 0x1003905
mov eax, 0x208
call fcn.010062d0
mov dword [ebp - 0xc], esp
push 0x104
push edi
push dword [ebp - 0xc]
call dword [sym.imp.UNIANSI.dll_lstrcpynW]
cmp dword [ebp + 0x14], ebx
jne 0x100393b
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.01003e6b
test eax, eax
jne 0x100393b
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.01003ea0
test eax, eax
je 0x10039fb
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
mov ecx, dword [ebp - 8]
push edi
call fcn.01003f18
mov esi, eax
test esi, esi
jl 0x1003abe
cmp word [edi], 0x7b
jne 0x10039af
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push 0
push dword [ebp - 4]
push edi
call fcn.01003608
mov esi, eax
test esi, esi
jl 0x1003abe
cmp dword [ebp + 0x14], 0
je 0x10039b9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push edi
mov dword [ebp + 0x14], eax
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
mov ecx, dword [ebp - 8]
push edi
call fcn.01003f18
jmp 0x1003a8d
cmp dword [ebp + 0x14], 0
jne 0x100363f
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.01003e6b
test eax, eax
je 0x10039fb
mov esi, 0x1007020
push dword [esi]
push dword [ebp - 0xc]
call dword [sym.imp.UNIANSI.dll_lstrcmpiW]
test eax, eax
je 0x1003a84
add esi, 4
cmp esi, str.TYPELIB
jl 0x10039cd
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.01003b3a
jmp 0x1003a84
xor esi, esi
cmp dword [ebp - 4], esi
je 0x1003a16
push dword [ebp - 4]
call dword [entry0]
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x1003af5
cmp dword [ebp - 0x10], esi
je 0x1003a27
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.UNIANSI.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
mov ecx, dword [ebp - 8]
push edi
call fcn.01003f18
mov esi, eax
test esi, esi
jl 0x1003abe
cmp dword [ebp + 0x10], 0
je 0x100363f
cmp word [edi], 0x7b
jne 0x100363f
push edi
call dword [sym.imp.UNIANSI.dll_lstrlenW]
cmp eax, 1
jne 0x100363f
push 0
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.01003608
mov esi, eax
test esi, esi
jl 0x1003abe
mov ecx, dword [ebp - 8]
push edi
call fcn.01003353
mov esi, eax
test esi, esi
jl 0x1003abe
jmp 0x100363f
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1003aab
push dword [ebp + 8]
call dword [entry0]
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
jmp 0x1003aea
cmp dword [ebp + 8], ebx
je 0x1003abe
push dword [ebp + 8]
call dword [entry0]
cmp dword [ebp - 4], 0
je 0x1003acd
push dword [ebp - 4]
call dword [entry0]
mov eax, esi
lea esp, [ebp - 0x22c]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp - 4], 0
jmp 0x1003aea
cmp dword [ebp - 4], ebx
jmp 0x1003ac2
cmp dword [ebp - 4], ebx
je 0x1003af5
push dword [ebp - 4]
call dword [entry0]
mov eax, 0x80020009
jmp 0x1003acf