Function at 0x413ab4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x225c
call fcn.0041b500
push ebx
mov eax, ecx
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
call fcn.00413959
mov esi, eax
test esi, esi
js 0x414004
jmp 0x413faf
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 0x413b2c
test ebx, ebx
je 0x413bc1
mov ecx, dword [esp + 0x10]
push edi
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x413bc3
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
call fcn.004130ba
test eax, eax
jne 0x413ff0
push edi
call fcn.0041365c
test eax, eax
je 0x413b84
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
call fcn.00413747
mov dword [esp + 0x38], esi
test ebx, ebx
je 0x413bbb
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
push edi
mov ecx, ebx
call fcn.0041360b
mov esi, eax
test esi, esi
js 0x413ff5
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x413dd3
mov dword [esp + 0x3c], esi
jmp 0x413bc3
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x413bed
push edi
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
push 0x46d6ec
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x413cf4
lea eax, [esp + 0x268]
mov ecx, ebx
push eax
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
push edi
mov ecx, ebx
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
push 0x3d
pop eax
cmp word [edi], ax
jne 0x413ff0
cmp dword [ebp + 0x10], 0
je 0x413c71
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.004132a0
mov esi, eax
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x413dcb
cmp dword [ebp + 0x14], 0
jne 0x413cdd
cmp dword [esp + 0x14], 0
je 0x413cdd
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.004136eb
test eax, eax
jne 0x413fcd
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x268]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x413cc6
cmp eax, 2
jne 0x413fbd
test ebx, ebx
je 0x413cd5
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.0041360b
mov esi, eax
test esi, esi
js 0x413ff5
jmp 0x413faf
push 0x5c
pop edx
mov ecx, edi
call fcn.004130ba
test eax, eax
jne 0x413ff0
cmp dword [ebp + 0x10], eax
je 0x413e27
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push esi
call fcn.004136eb
test eax, eax
je 0x413d9f
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.004136eb
test eax, eax
je 0x413d9f
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 0x413d5e
sub esp, 0x14
push edi
push esi
call fcn.004130f4
jmp 0x413d6f
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 0x413fe9
xor esi, esi
mov eax, esi
cmp dword [esp + 0x18], eax
je 0x413d8b
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 0x413fe9
push edi
mov ecx, ebx
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
push 0x3d
pop eax
cmp word [edi], ax
jne 0x413dd3
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004132a0
mov esi, eax
test esi, esi
js 0x413ff5
push 0x7b
pop eax
cmp word [edi], ax
jne 0x413faf
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x28]
jne 0x413de4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x413faf
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [esp + 0x20]
push edi
call fcn.00413ab4
mov esi, eax
test esi, esi
js 0x413ff5
push edi
mov ecx, ebx
call fcn.00413959
jmp 0x413ce5
cmp dword [ebp + 0x14], 0
jne 0x413e43
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [esp + 0x24]
call fcn.004136eb
mov ebx, eax
jmp 0x413e46
push 2
pop ebx
xor eax, eax
inc eax
test ebx, ebx
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.00428a3a
push eax
call fcn.004135d3
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
mov ecx, dword [esp + 0x10]
push edi
call fcn.0041360b
mov esi, eax
test esi, esi
js 0x413ff5
push 0x7b
pop eax
cmp word [edi], ax
jne 0x413ef3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x28]
jne 0x413ea3
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x413ef3
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push dword [esp + 0x20]
push edi
call fcn.00413ab4
mov esi, eax
test esi, esi
jns 0x413edf
cmp dword [esp + 0x24], 0
je 0x413ff5
mov ecx, dword [esp + 0x10]
push edi
call fcn.00413959
mov esi, eax
test esi, esi
js 0x413ff5
cmp ebx, 2
je 0x413faf
test ebx, ebx
je 0x413f18
cmp dword [ebp + 0x14], 0
jne 0x413faf
mov ecx, ebx
call fcn.0041394b
mov esi, eax
jmp 0x413ff5
cmp dword [ebp + 0x14], 0
mov ebx, dword [esp + 0x18]
je 0x413f51
push ebx
call fcn.00413835
test eax, eax
je 0x413f51
lea eax, [esp + 0x60]
push eax
call fcn.0041365c
test eax, eax
je 0x413faf
cmp dword [esp + 0x14], 0
je 0x413faf
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00413747
jmp 0x413faf
push ebx
call fcn.00413835
mov ecx, eax
xor eax, eax
mov dword [esp + 0x24], ecx
test ebx, ebx
je 0x413f76
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x413f78
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x413fe9
cmp dword [esp + 0x14], eax
je 0x413faf
test ecx, ecx
jne 0x413faf
mov eax, dword [ebp + 0xc]
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.004138d3
mov dword [esp + 0x54], ebx
test eax, eax
jne 0x413fe9
push 0x7d
pop eax
cmp word [edi], ax
jne 0x413afb
jmp 0x413ff5
mov ecx, eax
call fcn.0041394b
mov esi, eax
test ebx, ebx
je 0x413ff5
push ebx
jmp 0x413fe1
mov ecx, eax
call fcn.0041394b
cmp dword [esp + 0x2c], 0
mov esi, eax
je 0x413ff5
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413ff5
mov ecx, eax
jmp 0x413f0c
mov esi, 0x80020009
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414004
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