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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488f4b
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.00454c40
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2224], eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x407952
cmp word [ebx], 0x7d
je 0x40793f
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4070c3
test edi, edi
je 0x4071c5
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
cmp dword [ebp + 0x10], 0
je 0x4071c5
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x407124
cmp ax, 0x5c
je 0x40711c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x407101
jmp 0x407124
test edx, edx
jne 0x40792a
mov esi, 0x4a38c0
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40717e
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x407130
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.00406c30
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x4071bb
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
push ebx
mov ecx, edi
call fcn.00406b10
mov esi, eax
test esi, esi
js 0x40793f
mov dword [ebp - 0x2240], 0
jmp 0x4075e5
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4071f5
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
jmp 0x4071fb
mov edi, dword [ebp - 0x2234]
push 0x4a37ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40734b
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
cmp word [ebx], 0x3d
jne 0x40792a
cmp dword [ebp + 0x10], 0
je 0x4072cc
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x224c], 0
push eax
mov dword [ebp - 0x2248], 0
call fcn.00406560
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x40793f
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x4075e5
cmp dword [ebp + 0x14], 0
jne 0x407330
test edi, edi
je 0x407330
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407936
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x407325
cmp eax, 2
jne 0x407914
test edi, edi
je 0x407330
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406b10
mov esi, eax
test esi, esi
js 0x40793f
jmp 0x407908
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x407378
mov edx, ecx
cmp dx, 0x5c
je 0x407370
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x407357
jmp 0x407378
test eax, eax
jne 0x40792a
cmp dword [ebp + 0x10], 0
je 0x407640
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4073e8
cmp dword [esi], 0
je 0x4073db
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407438
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4073e1
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x407403
cmp dword [esi + 4], 0
jne 0x4073e8
mov eax, 1
jmp 0x407403
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407438
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x407418
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
test eax, eax
je 0x4075ac
jmp 0x40743e
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x40749e
cmp dword [esi], 0
je 0x407491
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4074e6
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407497
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4074b9
cmp dword [esi + 4], 0
jne 0x40749e
mov eax, 1
jmp 0x4074b9
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4074e6
test edi, edi
je 0x4074c8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
test eax, eax
je 0x4075ac
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x407553
cmp dword [esi], 0
je 0x407546
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407931
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40754c
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40757b
cmp dword [esi + 4], 0
jne 0x407553
mov eax, 1
jmp 0x40757b
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407936
test edi, edi
je 0x40758e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
test eax, eax
jne 0x407936
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
cmp word [ebx], 0x3d
jne 0x4075e5
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00406560
mov esi, eax
test esi, esi
js 0x40793f
cmp word [ebx], 0x7b
jne 0x407908
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4075f4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x407908
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00407000
mov esi, eax
test esi, esi
js 0x40793f
push ebx
mov ecx, edi
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
jmp 0x407908
cmp dword [ebp + 0x14], 0
jne 0x407700
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4076b4
cmp dword [esi], 0
je 0x4076a7
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40767a
lea edi, [eax + 1]
jmp 0x407705
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4076ad
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4076cf
cmp dword [esi + 4], 0
jne 0x4076b4
mov edi, 1
jmp 0x4076d1
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x407705
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4076e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], eax
jmp 0x407705
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004585cb
push eax
call fcn.00406a50
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406b10
mov esi, eax
test esi, esi
js 0x40793f
cmp word [ebx], 0x7b
jne 0x4077c7
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407770
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4077c7
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00407000
mov esi, eax
test esi, esi
jns 0x4077b1
cmp dword [ebp - 0x221c], 0
je 0x40793f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00406e40
mov esi, eax
test esi, esi
js 0x40793f
cmp edi, 2
je 0x407908
test edi, edi
je 0x4077e5
cmp dword [ebp + 0x14], 0
jne 0x407908
mov ecx, edi
jmp 0x407938
cmp dword [ebp + 0x14], 0
je 0x407877
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x407877
cmp dword [ebp - 0x221c], eax
jbe 0x407877
mov edi, 0x4a38c0
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407908
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x407831
cmp dword [ebp - 0x2234], 0
je 0x407908
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00406c30
jmp 0x407908
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4078b0
xor edi, edi
jmp 0x4078bc
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x4078d7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x407936
cmp dword [ebp - 0x2234], eax
je 0x407908
test edi, edi
jne 0x407908
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x407936
cmp word [ebx], 0x7d
jne 0x407090
jmp 0x40793f
mov ecx, eax
call fcn.00406e30
mov esi, eax
test edi, edi
je 0x40793f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40793f
mov esi, 0x80020009
jmp 0x40793f
mov eax, 1
mov ecx, eax
call fcn.00406e30
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x407950
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret 0x10