Function at 0x4130be
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x225c
call fcn.0041bda0
push ebx
mov eax, ecx
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
push edi
mov dword [esp + 0x14], eax
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x41360a
jmp 0x4135b5
push str.Delete
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x413134
test ebx, ebx
je 0x4131c9
mov ecx, dword [esp + 0x10]
push edi
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4131cb
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
call fcn.004126c2
test eax, eax
jne 0x4135f6
push edi
call fcn.00412c7c
test eax, eax
je 0x41318c
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
call fcn.00412d67
mov dword [esp + 0x38], esi
test ebx, ebx
je 0x4131c3
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
push edi
mov ecx, ebx
call fcn.00412c24
mov esi, eax
test esi, esi
js 0x4135fb
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x4133db
mov dword [esp + 0x3c], esi
jmp 0x4131cb
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x4131f5
push edi
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
push 0x472fdc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4132fc
lea eax, [esp + 0x268]
mov ecx, ebx
push eax
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
push edi
mov ecx, ebx
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4135f6
cmp dword [ebp + 0x10], 0
je 0x413279
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x268]
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004128a8
mov esi, eax
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x4133d3
cmp dword [ebp + 0x14], 0
jne 0x4132e5
cmp dword [esp + 0x14], 0
je 0x4132e5
xor esi, esi
lea ecx, [esp + 0x2c]
push 0x20006
push esi
push dword [ebp + 0xc]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00412d0b
test eax, eax
jne 0x4135d3
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x268]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4132ce
cmp eax, 2
jne 0x4135c3
test ebx, ebx
je 0x4132dd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x30], esi
push edi
mov ecx, ebx
call fcn.00412c24
mov esi, eax
test esi, esi
js 0x4135fb
jmp 0x4135b5
push 0x5c
pop edx
mov ecx, edi
call fcn.004126c2
test eax, eax
jne 0x4135f6
cmp dword [ebp + 0x10], eax
je 0x41342f
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push esi
call fcn.00412d0b
test eax, eax
je 0x4133a7
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00412d0b
test eax, eax
je 0x4133a7
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
push eax
test ecx, ecx
je 0x413366
sub esp, 0x14
push edi
push esi
call fcn.004126fc
jmp 0x413377
push edx
push 0x2001f
push edx
push edx
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4135ef
xor esi, esi
mov eax, esi
cmp dword [esp + 0x18], eax
je 0x413393
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
test eax, eax
jne 0x4135ef
push edi
mov ecx, ebx
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4133db
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004128a8
mov esi, eax
test esi, esi
js 0x4135fb
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4135b5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x24]
jne 0x4133ec
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4135b5
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [esp + 0x20]
push edi
call fcn.004130be
mov esi, eax
test esi, esi
js 0x4135fb
push edi
mov ecx, ebx
call fcn.00412f79
jmp 0x4132ed
cmp dword [ebp + 0x14], 0
jne 0x41344b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [esp + 0x24]
call fcn.00412d0b
mov ebx, eax
jmp 0x41344e
push 2
pop ebx
xor eax, eax
inc eax
test ebx, ebx
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.0042939a
push eax
call fcn.00412bec
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
mov ecx, dword [esp + 0x10]
push edi
call fcn.00412c24
mov esi, eax
test esi, esi
js 0x4135fb
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4134fb
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x24]
jne 0x4134ab
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4134fb
push dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push dword [esp + 0x20]
push edi
call fcn.004130be
mov esi, eax
test esi, esi
jns 0x4134e7
cmp dword [esp + 0x28], 0
je 0x4135fb
mov ecx, dword [esp + 0x10]
push edi
call fcn.00412f79
mov esi, eax
test esi, esi
js 0x4135fb
cmp ebx, 2
je 0x4135b5
test ebx, ebx
je 0x413520
cmp dword [ebp + 0x14], 0
jne 0x4135b5
mov ecx, ebx
call fcn.00412f6b
mov esi, eax
jmp 0x4135fb
cmp dword [ebp + 0x14], 0
je 0x413558
push dword [esp + 0x18]
call fcn.00412e55
test eax, eax
je 0x413558
lea eax, [esp + 0x60]
push eax
call fcn.00412c7c
test eax, eax
je 0x4135b5
cmp dword [esp + 0x14], 0
je 0x4135b5
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00412d67
jmp 0x4135b5
push dword [esp + 0x18]
call fcn.00412e55
mov ecx, dword [esp + 0x18]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x41357a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x4135ef
cmp dword [esp + 0x14], ecx
je 0x4135b5
test ebx, ebx
jne 0x4135b5
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x54]
push eax
call fcn.00412ef3
xor ecx, ecx
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x4135ef
push 0x7d
pop eax
cmp word [edi], ax
jne 0x413103
jmp 0x4135fb
mov ecx, eax
call fcn.00412f6b
mov esi, eax
test ebx, ebx
je 0x4135fb
push ebx
jmp 0x4135e7
mov ecx, eax
call fcn.00412f6b
cmp dword [esp + 0x2c], 0
mov esi, eax
je 0x4135fb
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4135fb
mov ecx, eax
jmp 0x413514
mov esi, 0x80020009
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41360a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10