Function at 0x180152b1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x225c
call fcn.18163b00
mov eax, dword [0x181c0008]
xor eax, esp
mov dword [esp + 0x2258], eax
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esp + 8], ecx
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
mov dword [esp + 0xc], eax
jmp 0x18015740
push str.Delete
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x18178c40
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18015328
test ebx, ebx
je 0x180153d2
mov ecx, dword [esp + 0xc]
push edi
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x180153d4
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.1801485a
test eax, eax
jne 0x18015760
push edi
call fcn.18014de7
test eax, eax
je 0x1801538d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push edi
mov dword [esp + 0x28], eax
call fcn.1801429e
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
test ebx, ebx
je 0x180153c7
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801575a
push edi
mov ecx, ebx
call fcn.18014e4b
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.180141c7
test esi, esi
js 0x1801576e
jmp 0x1801570d
lea ecx, [esp + 0x24]
call fcn.180141c7
jmp 0x180153d4
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x180153fe
push edi
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
push 0x18178c38
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180154fa
lea eax, [esp + 0x260]
mov ecx, ebx
push eax
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
push edi
mov ecx, ebx
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
push 0x3d
pop eax
cmp word [edi], ax
jne 0x18015769
cmp dword [ebp + 0x10], 0
je 0x1801548f
mov eax, dword [esp + 0x10]
mov ecx, ebx
and dword [esp + 0x38], 0
and dword [esp + 0x3c], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x260]
push edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.18014a1a
mov esi, eax
lea ecx, [esp + 0x34]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x180153b5
cmp dword [ebp + 0x14], 0
jne 0x180154ed
cmp dword [esp + 0x14], 0
je 0x180154ed
xor eax, eax
lea ecx, [esp + 0x40]
push 0x20006
push eax
push dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.18014242
test eax, eax
jne 0x18015790
lea eax, [esp + 0x260]
push eax
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x180154e4
cmp eax, 2
jne 0x18015790
lea ecx, [esp + 0x40]
call fcn.180141c7
push edi
mov ecx, ebx
call fcn.18014e4b
jmp 0x18015746
push 0x5c
pop edx
mov ecx, edi
call fcn.1801485a
test eax, eax
jne 0x18015769
cmp dword [ebp + 0x10], eax
je 0x18015587
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push esi
call fcn.18014242
test eax, eax
je 0x18015553
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.18014242
test eax, eax
je 0x18015553
sub esp, 0x14
lea ecx, [esp + 0x2c]
push edi
push esi
call fcn.180141e1
test eax, eax
jne 0x180157b1
push edi
mov ecx, ebx
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
push 0x3d
pop eax
cmp word [edi], ax
jne 0x1801570d
push edi
push 0
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.18014a1a
mov esi, eax
jmp 0x180153ba
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x180155a5
push 0x20019
push edi
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.18014242
mov ebx, eax
jmp 0x180155a8
push 2
pop ebx
mov dword [esp + 0x30], esi
test ebx, ebx
je 0x180155b8
mov dword [esp + 0x30], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.1814b04f
push eax
call fcn.18004435
mov ecx, dword [esp + 0x20]
add esp, 0x14
push edi
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
mov ecx, dword [esp + 0xc]
push edi
call fcn.18014e4b
mov esi, eax
test esi, esi
js 0x1801576e
push 0x7b
pop eax
cmp word [edi], ax
jne 0x18015648
push edi
call fcn.18142f23
pop ecx
cmp eax, 1
jne 0x18015648
push dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x20]
push edi
call fcn.180152b1
mov esi, eax
test esi, esi
jns 0x18015634
cmp dword [esp + 0x30], 0
je 0x1801576e
mov ecx, dword [esp + 0xc]
push edi
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
cmp ebx, 2
je 0x1801574c
test ebx, ebx
je 0x1801566d
cmp dword [ebp + 0x14], 0
jne 0x1801574c
mov ecx, ebx
call fcn.18013e66
mov esi, eax
jmp 0x1801576e
cmp dword [ebp + 0x14], 0
je 0x180156b0
push dword [esp + 0x18]
call fcn.18014e16
test eax, eax
je 0x180156b0
lea eax, [esp + 0x58]
push eax
call fcn.18014de7
test eax, eax
je 0x1801574c
cmp dword [esp + 0x14], 0
je 0x1801574c
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
call fcn.1801429e
jmp 0x1801574c
push dword [esp + 0x18]
call fcn.18014e16
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.180141c7
test eax, eax
jne 0x180157b1
cmp dword [esp + 0x14], eax
je 0x1801574c
test ebx, ebx
jne 0x1801574c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.1801414e
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x180157a4
lea ecx, [esp + 0x4c]
call fcn.180141c7
mov ebx, dword [esp + 0xc]
cmp dword [ebp + 0x10], 0
je 0x1801574c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x1801574c
push edi
call fcn.18142f23
pop ecx
cmp eax, 1
jne 0x1801574c
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x20]
push edi
call fcn.180152b1
mov esi, eax
test esi, esi
js 0x1801576e
mov ecx, ebx
push edi
call fcn.180148bf
mov esi, eax
test esi, esi
js 0x1801576e
push 0x7d
pop eax
cmp word [edi], ax
jne 0x180152f7
jmp 0x1801576e
lea ecx, [esp + 0x24]
jmp 0x1801579d
lea ecx, [esp + 0x24]
call fcn.180141c7
mov esi, 0x80020009
lea ecx, [esp + 0x18]
call fcn.180141c7
mov ecx, dword [esp + 0x2264]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1813c4a8
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.18013e66
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.180141c7
jmp 0x1801576e
mov ecx, eax
call fcn.18013e66
lea ecx, [esp + 0x4c]
jmp 0x1801579b
mov ecx, eax
jmp 0x18015661