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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x596ef4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
and dword [esp], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
and dword [esp + 0x43c], 0
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404f1
cmp word [ebx], 0x7d
je 0x4404ef
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x44010b
test edi, edi
je 0x4401d9
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4401db
push 0x5c
mov eax, ebx
call fcn.0043fdff
test eax, eax
pop ecx
jne 0x4405a2
push ebx
call fcn.00440afb
test eax, eax
je 0x440158
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00440b27
cmp edi, esi
je 0x4401db
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00440ab2
mov esi, eax
test esi, esi
jl 0x4404de
cmp word [ebx], 0x7b
jne 0x4401ca
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4401ca
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push ebx
call fcn.00440081
mov esi, eax
test esi, esi
jl 0x4404de
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
cmp word [ebx], 0x7d
jne 0x4400da
jmp 0x4404de
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x440206
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
xor esi, esi
push 0x5ea520
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4402fe
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
cmp word [ebx], 0x3d
jne 0x4405bc
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x440297
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x43c], 1
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.0044064d
mov esi, eax
cmp esi, edi
jl 0x4405c3
mov byte [esp + 0x43c], 0
jmp 0x440186
cmp dword [ebp + 0x14], edi
jne 0x4402ee
cmp dword [esp + 0x14], edi
je 0x4402ee
lea eax, [esp + 0x14]
push eax
push 0x20006
push edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4404d7
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4402e3
cmp eax, 2
jne 0x4405cc
test edi, edi
je 0x4402ee
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00440ab2
jmp 0x4401c0
push 0x5c
mov eax, ebx
call fcn.0043fdff
test eax, eax
pop ecx
jne 0x4405a2
cmp dword [ebp + 0x10], esi
je 0x4403d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jne 0x440356
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x44034a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x4403a2
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jne 0x44038d
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x440381
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x4403a2
push ebx
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
call fcn.0044060f
cmp eax, esi
jne 0x4405e7
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
cmp word [ebx], 0x3d
jne 0x440186
push ebx
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.0044064d
jmp 0x44017c
cmp dword [ebp + 0x14], esi
jne 0x440419
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x440413
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x44040b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
jmp 0x440421
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x44042e
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.004a1796
push eax
call fcn.0041bf21
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00440ab2
mov esi, eax
test esi, esi
jl 0x4404de
cmp word [ebx], 0x7b
jne 0x4404b1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4404b1
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push ebx
call fcn.00440081
mov esi, eax
test esi, esi
jge 0x4404a0
cmp dword [ebp + 0x14], 0
je 0x4404de
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.0043ff70
mov esi, eax
test esi, esi
jl 0x4404de
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x4401ca
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
je 0x440508
cmp dword [esp + 0x1c], edi
jne 0x4401ca
call fcn.00448ef8
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4404ef
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x434]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x1c], edi
je 0x44054a
push dword [esp + 0xc]
call fcn.00440c10
test eax, eax
je 0x44054a
lea eax, [esp + 0x20]
push eax
call fcn.00440afb
test eax, eax
je 0x4401ca
cmp dword [esp + 0x14], edi
je 0x4401ca
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.00440b27
jmp 0x4401ca
push dword [esp + 0xc]
call fcn.00440c10
cmp dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
je 0x440573
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [esp + 0xc], edi
jne 0x440605
cmp dword [esp + 0x14], edi
je 0x4401ca
cmp dword [esp + 0x18], edi
jne 0x4401ca
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4404d7
jmp 0x4401ca
cmp dword [esp + 0xc], esi
je 0x4405b2
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4404f1
cmp dword [esp + 0xc], 0
jmp 0x4405a6
cmp dword [esp + 0xc], edi
jmp 0x4404e3
call fcn.00448ef8
test edi, edi
mov esi, eax
je 0x4404de
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4404de
call fcn.00448ef8
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x4405fe
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4404f1
call fcn.00448ef8
jmp 0x4404f1