Function at 0x40d28c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bc77
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.0042b9a0
mov eax, dword [0x4516e0]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x4516e0]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2280], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], ecx
mov ecx, eax
push edi
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
push 0x7d
pop eax
cmp word [edi], ax
je 0x40d7ef
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [esp + 0x3c], eax
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 0x40d34f
test ebx, ebx
je 0x40d401
mov ecx, dword [esp + 0x14]
push edi
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40d403
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.0040c7b1
test eax, eax
jne 0x40d7e1
push edi
call fcn.0040ce57
test eax, eax
je 0x40d3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.0040cf47
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
test ebx, ebx
je 0x40d3f6
mov ebx, dword [esp + 0x14]
mov ecx, ebx
push edi
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7db
push edi
mov ecx, ebx
call fcn.0040cdf0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0040d042
test esi, esi
js 0x40d7ef
jmp 0x40d779
lea ecx, [esp + 0x1c]
call fcn.0040d042
jmp 0x40d403
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x40d42d
push edi
mov ecx, ebx
mov dword [esp + 0x38], esi
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
push 0x44956c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d547
lea eax, [esp + 0x26c]
mov ecx, ebx
push eax
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
push edi
mov ecx, ebx
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40d7ea
cmp dword [ebp + 0x10], 0
je 0x40d4dc
xor eax, eax
mov ecx, ebx
inc eax
mov byte [esp + 0x2280], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x26c]
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040c9a7
mov esi, eax
lea ecx, [esp + 0x38]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
test esi, esi
js 0x40d82d
mov byte [esp + 0x2280], al
call fcn.0040d042
jmp 0x40d779
cmp dword [ebp + 0x14], 0
jne 0x40d53a
cmp dword [esp + 0x34], 0
je 0x40d53a
xor eax, eax
lea ecx, [esp + 0x54]
push 0x20006
push eax
push dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call fcn.0040cee9
test eax, eax
jne 0x40d820
lea eax, [esp + 0x26c]
push eax
push dword [esp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40d531
cmp eax, 2
jne 0x40d820
lea ecx, [esp + 0x54]
call fcn.0040d042
push edi
mov ecx, ebx
call fcn.0040cdf0
jmp 0x40d7c4
push 0x5c
pop edx
mov ecx, edi
call fcn.0040c7b1
test eax, eax
jne 0x40d7ea
cmp dword [ebp + 0x10], eax
je 0x40d5d5
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push 0x2001f
push edi
push esi
call fcn.0040cee9
test eax, eax
je 0x40d5a0
push 0x20019
push edi
push esi
lea ecx, [esp + 0x34]
call fcn.0040cee9
test eax, eax
je 0x40d5a0
sub esp, 0x14
lea ecx, [esp + 0x3c]
push edi
push esi
call fcn.0040c850
test eax, eax
jne 0x40d841
push edi
mov ecx, ebx
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40d779
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040c9a7
mov esi, eax
jmp 0x40d3e9
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40d5f3
push 0x20019
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.0040cee9
mov ebx, eax
jmp 0x40d5f6
push 2
pop ebx
push 1
pop eax
push 0xffffffffffffffff
test ebx, ebx
push edi
cmovne esi, eax
lea eax, [esp + 0x6c]
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.00420bc3
push eax
call fcn.00408148
mov ecx, dword [esp + 0x28]
add esp, 0x14
push edi
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
mov ecx, dword [esp + 0x14]
push edi
call fcn.0040cdf0
mov esi, eax
test esi, esi
js 0x40d7ef
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40d6a1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x40d651
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40d6a1
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push dword [esp + 0x30]
push edi
call fcn.0040d28c
mov esi, eax
test esi, esi
jns 0x40d68d
cmp dword [ebp + 0x14], 0
je 0x40d7ef
mov ecx, dword [esp + 0x14]
push edi
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40d7ca
test ebx, ebx
je 0x40d6cb
test eax, eax
jne 0x40d7ca
mov ecx, ebx
call fcn.0040d12c
mov esi, eax
jmp 0x40d7ef
test eax, eax
je 0x40d70c
push dword [esp + 0x28]
call fcn.0040d00b
test eax, eax
je 0x40d70c
lea eax, [esp + 0x64]
push eax
call fcn.0040ce57
test eax, eax
je 0x40d7ca
cmp dword [esp + 0x34], 0
je 0x40d7ca
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040cf47
jmp 0x40d7ca
push dword [esp + 0x28]
call fcn.0040d00b
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.0040d042
test eax, eax
jne 0x40d841
cmp dword [esp + 0x34], eax
je 0x40d7ca
test ebx, ebx
jne 0x40d7ca
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.0040d0b3
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x40d834
lea ecx, [esp + 0x44]
call fcn.0040d042
mov ebx, dword [esp + 0x14]
cmp dword [ebp + 0x10], 0
je 0x40d7ca
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40d7ca
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x40d78c
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40d7cd
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [esp + 0x30]
push edi
call fcn.0040d28c
mov esi, eax
test esi, esi
js 0x40d7ef
push edi
mov ecx, ebx
call fcn.0040d13a
mov esi, eax
test esi, esi
js 0x40d7ef
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x40d322
jmp 0x40d7ef
lea ecx, [esp + 0x1c]
jmp 0x40d82d
lea ecx, [esp + 0x1c]
call fcn.0040d042
mov esi, 0x80020009
lea ecx, [esp + 0x28]
call fcn.0040d042
mov eax, esi
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.0041e635
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.0040d12c
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.0040d042
jmp 0x40d7ef
mov ecx, eax
call fcn.0040d12c
lea ecx, [esp + 0x44]
jmp 0x40d82b
mov ecx, eax
jmp 0x40d6bf