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

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x21393774]
and dword [ebp - 0x70], 0
push esi
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a4], eax
mov eax, dword [ebp + 0x3bc]
push edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], eax
call fcn.21382326
mov esi, eax
test esi, esi
jge 0x21382735
lea ecx, [ebp - 0x70]
call fcn.21382ccf
mov eax, esi
jmp 0x21382c45
push ebx
jmp 0x2138287d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x78], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x2138276b
test ebx, ebx
je 0x213828a1
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
cmp dword [ebp + 0x3b8], 0
je 0x213828a1
and dword [ebp + 0x3b0], 0
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x213827ab
cmp cx, 0x5c
je 0x213827b2
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x2138279b
jmp 0x213827ba
test eax, eax
jne 0x21382c5c
mov esi, 0x2138e13c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x213827f6
add esi, 4
cmp esi, str.TypeLib
jl 0x213827bf
mov eax, dword [ebp + 0x3b4]
push edi
lea ecx, [ebp + 0x3b0]
mov dword [ebp + 0x3b0], eax
call fcn.21382db1
and dword [ebp + 0x3b0], 0
test ebx, ebx
je 0x2138288c
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382326
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x21382c9c
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382d50
mov esi, eax
cmp esi, ebx
jl 0x21382c9c
cmp dword [ebp + 0x3b0], ebx
je 0x2138283a
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0x7b
jne 0x2138287d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x2138287d
mov ecx, dword [ebp - 0x74]
push 0
push dword [ebp + 0x3b8]
push dword [ebp - 0x70]
push edi
call fcn.213826e9
mov esi, eax
test esi, esi
jl 0x21382c33
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
cmp word [edi], 0x7d
jne 0x2138273b
jmp 0x21382c33
cmp dword [ebp + 0x3b0], 0
je 0x213828a1
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x213828c7
mov ecx, dword [ebp - 0x74]
and dword [ebp - 0x78], eax
push edi
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
push 0x2138e2a4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x213829c2
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
cmp word [edi], 0x3d
jne 0x21382c8d
xor ebx, ebx
cmp dword [ebp + 0x3b8], ebx
je 0x2138294d
mov eax, dword [ebp + 0x3b4]
mov ecx, dword [ebp - 0x74]
mov dword [ebp + 0x3b0], eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x3b0]
push eax
call fcn.21382e5c
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x3b0], ebx
jl 0x21382cbb
jmp 0x2138283a
cmp dword [ebp + 0x3bc], ebx
jne 0x213829b0
cmp dword [ebp - 0x78], ebx
je 0x213829b0
push 0x20006
push ebx
push dword [ebp + 0x3b4]
lea ecx, [ebp + 0x3b0]
mov dword [ebp + 0x3b0], ebx
call fcn.21382ce6
cmp eax, ebx
jne 0x21382c93
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x2138299c
cmp eax, 2
jne 0x21382c93
cmp dword [ebp + 0x3b0], ebx
je 0x213829b0
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382d50
mov esi, eax
cmp esi, ebx
jmp 0x21382877
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
xor esi, esi
jmp 0x213829dd
cmp cx, 0x5c
je 0x213829e4
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x213829cd
jmp 0x213829ec
cmp eax, esi
jne 0x21382c78
cmp dword [ebp + 0x3b8], esi
je 0x21382aa9
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0x3b4]
lea ecx, [ebp - 0x70]
call fcn.21382ce6
test eax, eax
je 0x21382a6e
push 0x20019
push edi
push dword [ebp + 0x3b4]
lea ecx, [ebp - 0x70]
call fcn.21382ce6
test eax, eax
je 0x21382a6e
lea eax, [ebp - 0x80]
push eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x3b4]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x21382cb2
xor eax, eax
cmp dword [ebp - 0x70], ebx
je 0x21382a60
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ecx
jne 0x21382cb2
mov ecx, dword [ebp - 0x74]
push edi
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
cmp word [edi], 0x3d
jne 0x2138283a
mov ecx, dword [ebp - 0x74]
push edi
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.21382e5c
mov esi, eax
test esi, esi
jl 0x21382c33
jmp 0x2138283a
cmp dword [ebp + 0x3bc], esi
jne 0x21382acd
push 0x20019
push edi
push dword [ebp + 0x3b4]
lea ecx, [ebp - 0x70]
call fcn.21382ce6
mov dword [ebp + 0x3b0], eax
jmp 0x21382ad7
mov dword [ebp + 0x3b0], 2
cmp dword [ebp + 0x3b0], esi
je 0x21382ae9
mov dword [ebp + 0x3bc], 1
push 0x104
push edi
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 0x74]
push edi
mov ecx, ebx
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
push edi
mov ecx, ebx
call fcn.21382d50
mov esi, eax
test esi, esi
jl 0x21382c33
cmp word [edi], 0x7b
jne 0x21382b61
push dword [ebp + 0x3bc]
mov ecx, ebx
push 0
push dword [ebp - 0x70]
push edi
call fcn.213826e9
mov esi, eax
test esi, esi
jge 0x21382b4f
cmp dword [ebp + 0x3bc], 0
je 0x21382c33
push edi
mov ecx, ebx
call fcn.21382326
mov esi, eax
test esi, esi
jl 0x21382c33
cmp dword [ebp + 0x3b0], 2
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x3bc], eax
je 0x2138287d
xor ebx, ebx
cmp dword [ebp + 0x3b0], ebx
je 0x21382b94
cmp eax, ebx
jne 0x2138287d
push dword [ebp + 0x3b0]
jmp 0x21382c2b
cmp dword [ebp - 0x7c], ebx
je 0x21382bed
push dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
call fcn.21382d1b
test eax, eax
je 0x21382bed
mov ebx, 0x2138e13c
push dword [ebx]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x2138287d
add ebx, 4
cmp ebx, str.TypeLib
jl 0x21382bad
cmp dword [ebp - 0x78], 0
je 0x2138287d
lea eax, [ebp + 0x19c]
push eax
lea ecx, [ebp - 0x70]
call fcn.21382db1
jmp 0x2138287d
cmp dword [ebp - 0x70], ebx
je 0x21382c06
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [ebp - 0x70], ebx
jne 0x21382cc3
cmp dword [ebp - 0x78], ebx
je 0x2138287d
lea eax, [ebp + 0x19c]
push eax
push dword [ebp + 0x3b4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x2138287d
push eax
call fcn.213816d8
pop ecx
mov esi, eax
cmp dword [ebp - 0x70], 0
je 0x21382c42
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
call fcn.2138c444
add ebp, 0x3a8
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 0x3b0], esi
je 0x21382c78
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x3b0], esi
cmp dword [ebp - 0x70], esi
je 0x21382c86
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x21382c44
cmp dword [ebp - 0x70], 0
jmp 0x21382c7b
push eax
call fcn.213816d8
pop ecx
mov esi, eax
cmp dword [ebp + 0x3b0], ebx
je 0x21382c33
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x21382c33
push eax
call fcn.213816d8
pop ecx
mov esi, eax
cmp dword [ebp - 0x70], ebx
jmp 0x21382c37
push eax
call fcn.213816d8
pop ecx
jmp 0x21382c44