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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bac6b
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.00491490
mov eax, dword [0x50b080]
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 - 0x2250], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x224c], xmm0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b6e
cmp word [ebx], 0x7d
je 0x408b5b
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2258], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.ForceRemove
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408490
test edi, edi
jne 0x40859f
mov ecx, dword [ebp - 0x2250]
push ebx
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
cmp dword [ebp + 0x10], 0
je 0x40859f
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
test ax, ax
je 0x4084f3
nop
cmp ax, 0x5c
je 0x4084eb
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x4084d0
jmp 0x4084f3
test edx, edx
jne 0x408b4b
mov esi, 0x4eb068
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408558
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x408500
mov eax, dword [ebp - 0x2254]
lea ecx, [ebp - 0x2228]
push ebx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
call fcn.00407f50
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
test edi, edi
jne 0x408595
mov edi, dword [ebp - 0x2250]
mov ecx, edi
push ebx
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
push ebx
mov ecx, edi
call fcn.00407de0
mov esi, eax
test esi, esi
js 0x408b5b
mov dword [ebp - 0x2224], 0
jmp 0x408817
mov dword [ebp - 0x2224], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2250]
test eax, eax
jne 0x4085cd
push ebx
mov ecx, edi
mov dword [ebp - 0x2258], eax
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
push 0x4eaf5c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40875b
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
push ebx
mov ecx, edi
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
cmp word [ebx], 0x3d
jne 0x408b4b
cmp dword [ebp + 0x10], 0
je 0x4086a9
xorps xmm0, xmm0
mov dword [ebp - 0x222c], 0
movq qword [ebp - 0x2234], xmm0
mov eax, dword [ebp - 0x2254]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2230], 0
push eax
mov dword [ebp - 0x222c], 0
call fcn.00407800
mov esi, eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
test esi, esi
js 0x408b5b
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x408817
cmp dword [ebp + 0x14], 0
jne 0x408744
cmp dword [ebp - 0x2258], 0
je 0x408744
push 0x20006
push 0
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.00407e60
test eax, eax
jne 0x408b2f
mov edi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40871f
cmp eax, 2
jne 0x408b19
test edi, edi
je 0x408734
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov edi, dword [ebp - 0x2250]
mov dword [ebp - 0x223c], 0
push ebx
mov ecx, edi
call fcn.00407de0
mov esi, eax
test esi, esi
js 0x408b5b
jmp 0x408b0d
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x408788
mov edx, ecx
cmp dx, 0x5c
je 0x408780
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x408767
jmp 0x408788
test eax, eax
jne 0x408b4b
cmp dword [ebp + 0x10], 0
je 0x408872
mov esi, dword [ebp - 0x2254]
lea ecx, [ebp - 0x224c]
push 0x2001f
push ebx
push esi
call fcn.00407e60
test eax, eax
je 0x4087e4
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x224c]
call fcn.00407e60
test eax, eax
je 0x4087e4
sub esp, 8
lea ecx, [ebp - 0x224c]
push 0x2001f
sub esp, 8
push ebx
push esi
call fcn.004076c0
test eax, eax
jne 0x408b52
push ebx
mov ecx, edi
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
cmp word [ebx], 0x3d
jne 0x408817
push ebx
push 0
lea eax, [ebp - 0x224c]
mov ecx, edi
push eax
call fcn.00407800
mov esi, eax
test esi, esi
js 0x408b5b
cmp word [ebx], 0x7b
jne 0x408b0d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408826
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408b0d
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x224c]
push ebx
call fcn.004083c0
mov esi, eax
test esi, esi
js 0x408b5b
push ebx
mov ecx, edi
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
jmp 0x408b0d
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x408894
push 0x20019
push ebx
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x224c]
call fcn.00407e60
mov edi, eax
jmp 0x408899
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00495dc1
push eax
call fcn.00407d40
mov ecx, dword [ebp - 0x2250]
add esp, 0x14
push ebx
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
mov ecx, dword [ebp - 0x2250]
push ebx
call fcn.00407de0
mov esi, eax
test esi, esi
js 0x408b5b
cmp word [ebx], 0x7b
jne 0x408957
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408900
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x408957
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2250]
push 0
push dword [ebp - 0x224c]
push ebx
call fcn.004083c0
mov esi, eax
test esi, esi
jns 0x408941
cmp dword [ebp - 0x221c], 0
je 0x408b5b
mov ecx, dword [ebp - 0x2250]
push ebx
call fcn.00408220
mov esi, eax
test esi, esi
js 0x408b5b
cmp edi, 2
je 0x408b0d
test edi, edi
je 0x408975
cmp dword [ebp + 0x14], 0
jne 0x408b0d
mov ecx, edi
jmp 0x408b54
cmp dword [ebp + 0x14], 0
je 0x408a0b
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 - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x408a0b
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x408a0b
mov edi, 0x4eb068
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408b0d
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x4089c5
cmp dword [ebp - 0x2258], 0
je 0x408b0d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224c]
call fcn.00407f50
jmp 0x408b0d
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 - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x408a44
xor edi, edi
jmp 0x408a50
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x224c]
xor eax, eax
test ecx, ecx
je 0x408a6b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x224c], ecx
mov dword [ebp - 0x2248], 0
test eax, eax
jne 0x408b52
cmp dword [ebp - 0x2258], eax
je 0x408b0d
test edi, edi
jne 0x408b0d
mov byte [ebp - 4], 2
cmp byte [0x50fa48], al
jne 0x408ad4
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408ac6
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50fa44], eax
mov byte [0x50fa48], 1
jmp 0x408ad9
mov eax, dword [0x50fa44]
mov byte [0x50fa48], 1
jmp 0x408ad9
mov eax, dword [0x50fa44]
test eax, eax
je 0x408af2
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2254]
call eax
jmp 0x408b05
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2254]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x408b52
cmp word [ebx], 0x7d
jne 0x408460
jmp 0x408b5b
mov ecx, eax
call fcn.00408210
mov esi, eax
test edi, edi
je 0x408b5b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408b5b
mov ecx, eax
call fcn.00408210
mov esi, eax
mov eax, dword [ebp - 0x2240]
test eax, eax
je 0x408b5b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408b5b
mov esi, 0x80020009
jmp 0x408b5b
mov ecx, eax
call fcn.00408210
mov esi, eax
mov eax, dword [ebp - 0x224c]
test eax, eax
je 0x408b6c
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.00490396
mov esp, ebp
pop ebp
ret 0x10