Function at 0x18019a71
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.180cb510
mov eax, dword [0x180fd00c]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
mov eax, ecx
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x1c], ebx
and dword [esp + 0x20], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019fac
push 0x7d
pop eax
cmp word [edi], ax
je 0x18019f9d
push str.Delete
push edi
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x180da81c
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18019b03
test esi, esi
je 0x18019ba2
mov ecx, dword [esp + 0x10]
push edi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x18019ba4
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
call fcn.18019066
test eax, eax
jne 0x18019f91
push edi
call fcn.180195a9
test eax, eax
je 0x18019b64
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
call fcn.180189ff
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
cmp dword [esp + 0x18], esi
je 0x18019b9c
mov ecx, dword [esp + 0x10]
push edi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
mov ecx, dword [esp + 0x10]
push edi
call fcn.1801960d
mov esi, eax
test esi, esi
js 0x18019f9d
and dword [esp + 0x34], 0
jmp 0x18019d81
mov dword [esp + 0x34], esi
jmp 0x18019ba4
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18019bcc
mov ecx, dword [esp + 0x10]
push edi
mov dword [esp + 0x2c], esi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
push 0x180da814
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18019ce9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x268]
push eax
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
mov ecx, dword [esp + 0x10]
push edi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
push 0x3d
pop eax
cmp word [edi], ax
jne 0x18019f91
cmp dword [ebp + 0x10], 0
je 0x18019c67
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
and dword [esp + 0x4c], 0
and dword [esp + 0x50], 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x268]
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.18019224
mov esi, eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
test esi, esi
js 0x18019f9d
mov dword [esp + 0x4c], eax
jmp 0x18019d81
cmp dword [ebp + 0x14], 0
jne 0x18019cd0
cmp dword [esp + 0x28], 0
je 0x18019cd0
xor esi, esi
lea ecx, [esp + 0x3c]
push 0x20006
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.180189a3
test eax, eax
jne 0x18019f75
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x268]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x18019cbd
cmp eax, 2
jne 0x18019f65
test ebx, ebx
je 0x18019ccc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x10]
push edi
call fcn.1801960d
mov esi, eax
test esi, esi
js 0x18019f9d
jmp 0x18019f54
push 0x5c
pop edx
mov ecx, edi
call fcn.18019066
test eax, eax
jne 0x18019f98
cmp dword [ebp + 0x10], eax
je 0x18019dc6
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x2001f
push edi
push ebx
call fcn.180189a3
test eax, eax
je 0x18019d46
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x28]
call fcn.180189a3
test eax, eax
je 0x18019d46
sub esp, 0x14
lea ecx, [esp + 0x30]
push edi
push ebx
call fcn.18018942
test eax, eax
jne 0x18019eae
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
push 0x3d
pop eax
cmp word [edi], ax
jne 0x18019d7d
push edi
push 0
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.18019224
mov esi, eax
test esi, esi
js 0x18019f9d
mov ebx, dword [esp + 0x1c]
push 0x7b
pop eax
cmp word [edi], ax
jne 0x18019f54
push edi
call fcn.180ac191
pop ecx
cmp eax, 1
jne 0x18019f54
push 0
push dword [ebp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.18019a71
mov esi, eax
test esi, esi
js 0x18019f9d
push edi
mov ecx, ebx
call fcn.180190c9
jmp 0x18019cda
cmp dword [ebp + 0x14], 0
jne 0x18019df0
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.180189a3
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebx
test eax, eax
jne 0x18019df8
jmp 0x18019dff
mov dword [esp + 0x18], 2
xor ebx, ebx
inc ebx
mov dword [esp + 0x2c], ebx
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.180b386c
push eax
call fcn.18002fae
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
mov ecx, dword [esp + 0x10]
push edi
call fcn.1801960d
mov esi, eax
test esi, esi
js 0x18019f9d
push 0x7b
pop eax
cmp word [edi], ax
jne 0x18019e8f
push edi
call fcn.180ac191
pop ecx
cmp eax, 1
jne 0x18019e8f
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x20]
push 0
push ebx
push edi
call fcn.18019a71
mov esi, eax
test esi, esi
jns 0x18019e79
cmp dword [esp + 0x2c], 0
je 0x18019f9d
mov ecx, dword [esp + 0x10]
push edi
call fcn.180190c9
mov esi, eax
test esi, esi
js 0x18019f9d
jmp 0x18019e93
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x18019f54
test eax, eax
je 0x18019ebc
cmp dword [ebp + 0x14], 0
jne 0x18019f54
mov ecx, eax
call fcn.180185c2
mov esi, eax
jmp 0x18019f9d
cmp dword [ebp + 0x14], 0
je 0x18019ef1
push ebx
call fcn.180195d8
test eax, eax
je 0x18019ef1
lea eax, [esp + 0x60]
push eax
call fcn.180195a9
test eax, eax
je 0x18019f54
cmp dword [esp + 0x28], 0
je 0x18019f54
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
call fcn.180189ff
jmp 0x18019f54
push ebx
call fcn.180195d8
mov ecx, eax
xor eax, eax
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x18019f16
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
jmp 0x18019f18
xor ebx, ebx
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x18019eae
cmp dword [esp + 0x28], eax
je 0x18019f54
test ecx, ecx
jne 0x18019f54
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.180188af
mov dword [esp + 0x54], ebx
test eax, eax
jne 0x18019eae
push 0x7d
pop eax
cmp word [edi], ax
je 0x18019f9d
mov ebx, dword [esp + 0x1c]
jmp 0x18019ace
mov ecx, eax
call fcn.180185c2
mov esi, eax
test ebx, ebx
je 0x18019f9d
push ebx
jmp 0x18019f89
mov ecx, eax
call fcn.180185c2
cmp dword [esp + 0x3c], 0
mov esi, eax
je 0x18019f9d
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18019f9d
mov esi, 0x80020009
jmp 0x18019fa1
mov esi, 0x80020009
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x18019fac
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x226c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180a61d8
mov esp, ebp
pop ebp
ret 0x10