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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432abe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2254
call fcn.0042e4a0
mov eax, dword [0x4412dc]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push esi
push edi
mov eax, dword [0x4412dc]
xor eax, esp
push eax
lea eax, [esp + 0x2268]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, ebx
mov dword [esp + 0x2270], edi
call fcn.0040a166
mov esi, eax
cmp esi, edi
jl 0x40a715
cmp word [ebx], 0x7d
je 0x40a713
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x30], 1
call esi
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x40a345
test edi, edi
je 0x40a441
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40a441
push 0x5c
mov eax, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0040981e
pop ecx
test eax, eax
jne 0x40a7dc
push ebx
call fcn.00409ea2
test eax, eax
je 0x40a3b3
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00409f77
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
cmp edi, esi
je 0x40a43d
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00409e45
mov esi, eax
test esi, esi
js 0x40a702
and dword [esp + 0x30], 0
cmp word [ebx], 0x7b
jne 0x40a42e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a42e
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push ebx
call fcn.0040a28c
mov esi, eax
test esi, esi
js 0x40a702
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
cmp word [ebx], 0x7d
jne 0x40a316
jmp 0x40a702
mov dword [esp + 0x30], esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a46a
and dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
push 0x438774
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a58a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x25c]
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
cmp word [ebx], 0x3d
jne 0x40a7f6
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40a513
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x2270], 1
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x260]
push eax
lea edx, [esp + 0x50]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.004099e2
mov esi, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
cmp esi, edi
jl 0x40a837
mov byte [esp + 0x2270], 0
mov dword [esp + 0x4c], edi
jmp 0x40a3ea
cmp dword [ebp + 0x14], edi
jne 0x40a57a
cmp dword [esp + 0x28], edi
je 0x40a57a
xor esi, esi
push 0x20006
push esi
push dword [esp + 0x28]
lea edi, [esp + 0x48]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.00409f30
cmp eax, esi
jne 0x40a80f
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x25c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40a567
cmp eax, 2
jne 0x40a7fd
cmp edi, esi
je 0x40a576
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00409e45
jmp 0x40a424
push 0x5c
mov eax, ebx
call fcn.0040981e
pop ecx
test eax, eax
jne 0x40a7f6
cmp dword [ebp + 0x10], eax
je 0x40a61d
push 0x2001f
push ebx
push dword [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.00409f30
test eax, eax
je 0x40a5df
push 0x20019
push ebx
push dword [esp + 0x28]
call fcn.00409f30
test eax, eax
je 0x40a5df
push ebx
push dword [esp + 0x24]
mov eax, edi
call fcn.004098b7
test eax, eax
jne 0x40a6fb
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
cmp word [ebx], 0x3d
jne 0x40a3ea
mov ecx, dword [esp + 0x10]
push ebx
push 0
lea edx, [esp + 0x1c]
call fcn.004099e2
mov esi, eax
test esi, esi
js 0x40a702
jmp 0x40a3ea
cmp dword [ebp + 0x14], 0
jne 0x40a63c
push 0x20019
push ebx
push dword [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.00409f30
mov dword [esp + 0x24], eax
jmp 0x40a644
mov dword [esp + 0x24], 2
cmp dword [esp + 0x24], 0
je 0x40a652
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
push 0x104
push eax
call fcn.0041a564
push eax
call fcn.00409e0d
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00409e45
mov esi, eax
test esi, esi
js 0x40a702
cmp word [ebx], 0x7b
jne 0x40a6d5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40a6d5
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
push ebx
call fcn.0040a28c
mov esi, eax
test esi, esi
jns 0x40a6c4
cmp dword [ebp + 0x14], 0
je 0x40a702
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0040a166
mov esi, eax
test esi, esi
js 0x40a702
cmp dword [esp + 0x24], 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x40a42e
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x40a73b
cmp dword [esp + 0x38], edi
jne 0x40a42e
call fcn.0040a157
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x40a713
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2250]
xor ecx, esp
call fcn.00419542
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x38], edi
je 0x40a77d
push dword [esp + 0x14]
call fcn.0040a0b9
test eax, eax
je 0x40a77d
lea eax, [esp + 0x54]
push eax
call fcn.00409ea2
test eax, eax
je 0x40a42e
cmp dword [esp + 0x28], edi
je 0x40a42e
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
call fcn.00409f77
jmp 0x40a42e
push dword [esp + 0x14]
call fcn.0040a0b9
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0x14], edi
je 0x40a7a0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x40a830
cmp dword [esp + 0x28], edi
je 0x40a42e
cmp dword [esp + 0x24], edi
jne 0x40a42e
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40a6fb
jmp 0x40a42e
cmp dword [esp + 0x14], esi
je 0x40a7ec
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40a715
cmp dword [esp + 0x14], 0
jmp 0x40a7e0
call fcn.0040a157
mov esi, eax
test edi, edi
je 0x40a702
push edi
jmp 0x40a825
call fcn.0040a157
cmp dword [esp + 0x3c], 0
mov esi, eax
je 0x40a702
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a702
call fcn.0040a157
mov esi, eax
cmp dword [esp + 0x14], edi
jmp 0x40a707