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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009b3b7
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x460], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x38], edx
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10019018
cmp word [edi], 0x7d
je 0x10018ad6
lea ecx, [ecx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x2c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x100189c3
test ebx, ebx
je 0x10018b28
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.10017ff0
mov esi, eax
test esi, esi
jl 0x10018ad6
cmp dword [ebp + 0x10], 0
je 0x10018b28
mov dword [esp + 0x30], 0
mov byte [esp + 0x460], 1
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x10018a1e
movzx ecx, cx
cmp cx, 0x5c
je 0x10018a16
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x100189ff
jmp 0x10018a1e
test eax, eax
jne 0x10018f4f
mov esi, 0x100aac28
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10018a56
add esi, 4
cmp esi, str.Texthgp
jl 0x10018a23
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x34]
call fcn.100171a0
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x10018b20
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.10017ff0
mov esi, eax
test esi, esi
jl 0x10018f7b
mov ecx, ebx
call fcn.10018580
mov esi, eax
test esi, esi
jl 0x10018f7b
mov byte [esp + 0x460], 0
cmp word [edi], 0x7b
jne 0x10018acc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10018acc
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push 0
push edx
push eax
push edi
mov ecx, ebx
call fcn.10018910
mov esi, eax
test esi, esi
jl 0x10018ad6
mov eax, edi
mov ecx, ebx
call fcn.10017ff0
mov esi, eax
test esi, esi
jl 0x10018ad6
cmp word [edi], 0x7d
jne 0x10018990
xor ebx, ebx
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x10018af8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, esi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.1009176c
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x460], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
jne 0x10018b4f
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x24], ebx
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10018ad6
push 0x100aab48
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10018c73
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x244]
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10018ad6
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10018ad6
cmp word [edi], 0x3d
jne 0x10018f88
cmp dword [ebp + 0x10], ebx
je 0x10018be0
mov dword [esp + 0x28], ebx
mov byte [esp + 0x460], 2
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, edi
call fcn.10018140
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], ebx
jl 0x10018ff6
jmp 0x10018a86
cmp dword [ebp + 0x14], ebx
jne 0x10018c5b
cmp dword [esp + 0x24], ebx
je 0x10018c5b
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x460], 3
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebx
push ebx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10018fdb
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x244]
push ecx
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10018c3e
cmp eax, 2
jne 0x10018fb0
mov byte [esp + 0x460], 0
test ebx, ebx
je 0x10018c59
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
call fcn.10018580
mov esi, eax
cmp esi, ebx
jl 0x10018ad8
jmp 0x10018acc
movzx ecx, word [edi]
cmp cx, bx
mov eax, edi
je 0x10018c9f
movzx ecx, cx
cmp cx, 0x5c
je 0x10018c97
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x10018c80
jmp 0x10018c9f
cmp eax, ebx
jne 0x10018f88
cmp dword [ebp + 0x10], ebx
je 0x10018d7d
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push edi
push eax
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x10018cea
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x10018cde
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x10018d3e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push edi
push eax
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x10018d26
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x10018d1a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
je 0x10018d3e
mov edx, dword [esp + 0x20]
push edx
mov edx, edi
lea esi, [esp + 0x18]
call fcn.100170b0
cmp eax, ebx
jne 0x10018fef
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10018ad8
cmp word [edi], 0x3d
jne 0x10018a8e
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.10018140
mov esi, eax
cmp esi, ebx
jl 0x10018ad8
jmp 0x10018a8e
cmp dword [ebp + 0x14], ebx
jne 0x10018e8d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edi
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10018dc2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x10018dba
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x10018dd1
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x44]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push eax
call fcn.1000a220
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10018ad8
mov ecx, dword [esp + 0x1c]
call fcn.10018580
mov esi, eax
cmp esi, ebx
jl 0x10018ad8
cmp word [edi], 0x7b
jne 0x10018e5f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10018e5f
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.10018910
mov esi, eax
cmp esi, ebx
jge 0x10018e4a
cmp dword [ebp + 0x14], ebx
je 0x10018ad8
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.10017ff0
mov esi, eax
cmp esi, ebx
jl 0x10018ad8
mov ecx, dword [esp + 0x18]
cmp ecx, 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x10018acc
cmp ecx, ebx
je 0x10018e9a
cmp eax, ebx
jne 0x10018acc
mov eax, ecx
call fcn.10016d60
mov esi, eax
jmp 0x10018ad8
mov dword [esp + 0x18], 2
jmp 0x10018dca
cmp eax, ebx
je 0x10018ed8
mov ecx, dword [esp + 0x14]
call fcn.10018540
test eax, eax
je 0x10018ed8
lea ebx, [esp + 0x3c]
call fcn.10018500
test eax, eax
je 0x10018acc
cmp dword [esp + 0x24], 0
je 0x10018acc
mov edx, ebx
push edx
lea ecx, [esp + 0x18]
call fcn.100171a0
jmp 0x10018acc
mov ecx, dword [esp + 0x14]
call fcn.10018540
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
je 0x10018f02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x10019013
cmp dword [esp + 0x24], ebx
je 0x10018acc
cmp dword [esp + 0x18], ebx
jne 0x10018acc
mov dword [esp + 0x34], ebx
mov byte [esp + 0x460], 4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
mov dword [esp + 0x34], ebx
jne 0x10018fdb
mov byte [esp + 0x460], 0
jmp 0x10018acc
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10018f71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov eax, 0x80020009
jmp 0x10018afa
mov byte [esp + 0x460], 0
jmp 0x10018ad6
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10018fa6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, 0x80020009
jmp 0x10018afa
call fcn.10016d60
mov esi, eax
mov byte [esp + 0x460], 0
test ebx, ebx
je 0x10018ad6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
jmp 0x10018ad6
call fcn.10016d60
mov esi, eax
mov byte [esp + 0x460], 0
jmp 0x10018ad8
call fcn.10016d60
mov esi, eax
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10018af8
push eax
jmp 0x10018aee
call fcn.10016d60
mov dword [esp + 0x460], 0xffffffff
jmp 0x10018afa