Function at 0x405660
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb3b
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0040b9b0
mov eax, dword [0x434018]
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 - 0x2264], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e7e
cmp word [ebx], 0x7d
je 0x405e6b
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2254], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42b790
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405733
test edi, edi
je 0x405835
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
cmp dword [ebp + 0x10], 0
je 0x405835
movzx ecx, word [ebx]
mov eax, ebx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test cx, cx
je 0x405794
mov edx, ecx
cmp dx, 0x5c
je 0x40578c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x405773
jmp 0x405794
test eax, eax
jne 0x405e56
mov esi, 0x42bacc
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4057ee
add esi, 4
cmp esi, 0x42bafc
jl 0x4057a0
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2238]
push ebx
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], 0
call fcn.00404160
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2230], 0
test edi, edi
je 0x40582b
mov edi, dword [ebp - 0x2264]
mov ecx, edi
push ebx
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
push ebx
mov ecx, edi
call fcn.004050a0
mov esi, eax
test esi, esi
js 0x405e6b
mov dword [ebp - 0x2234], 0
jmp 0x405b70
mov dword [ebp - 0x2234], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x2264]
test eax, eax
jne 0x405863
push ebx
mov ecx, edi
mov dword [ebp - 0x2254], eax
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
push 0x42b788
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4059f1
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
push ebx
mov ecx, edi
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
cmp word [ebx], 0x3d
jne 0x405e56
cmp dword [ebp + 0x10], 0
je 0x40593f
xorps xmm0, xmm0
mov dword [ebp - 0x2220], 0
movq qword [ebp - 0x2228], xmm0
mov eax, dword [ebp - 0x2268]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2224], 0
push eax
mov dword [ebp - 0x2220], 0
call fcn.00404b70
mov esi, eax
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test esi, esi
js 0x405e6b
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x405b70
cmp dword [ebp + 0x14], 0
jne 0x4059da
cmp dword [ebp - 0x2254], 0
je 0x4059da
push 0x20006
push 0
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.00404080
test eax, eax
jne 0x405e3a
mov edi, dword [ebp - 0x2244]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4059b5
cmp eax, 2
jne 0x405e24
test edi, edi
je 0x4059ca
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2244], 0
mov edi, dword [ebp - 0x2264]
mov dword [ebp - 0x2240], 0
push ebx
mov ecx, edi
call fcn.004050a0
mov esi, eax
test esi, esi
js 0x405e6b
jmp 0x405e18
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x405a21
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x405a19
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x405a00
jmp 0x405a21
test eax, eax
jne 0x405e56
cmp dword [ebp + 0x10], 0
je 0x405bcc
mov esi, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
push 0x2001f
push ebx
push esi
call fcn.00404080
test eax, eax
je 0x405b3d
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2260]
call fcn.00404080
test eax, eax
je 0x405b3d
mov esi, dword [ebp - 0x2258]
mov dword [ebp - 0x2254], 0
test esi, esi
je 0x405ad8
cmp dword [esi], 0
je 0x405acb
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405e5d
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ad1
push 0
push dword [esi]
lea ecx, [ebp - 0x222c]
push ecx
lea ecx, [ebp - 0x2254]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call eax
jmp 0x405b00
cmp dword [esi + 4], 0
jne 0x405ad8
mov eax, 1
jmp 0x405b00
lea eax, [ebp - 0x222c]
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405e62
mov ecx, dword [ebp - 0x2260]
test ecx, ecx
je 0x405b19
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2254]
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x405e62
mov edi, dword [ebp - 0x2264]
push ebx
mov ecx, edi
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
cmp word [ebx], 0x3d
jne 0x405b70
push ebx
push 0
lea eax, [ebp - 0x2260]
mov ecx, edi
push eax
call fcn.00404b70
mov esi, eax
test esi, esi
js 0x405e6b
cmp word [ebx], 0x7b
jne 0x405e18
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b80
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x405e18
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2260]
push ebx
call fcn.00405660
mov esi, eax
test esi, esi
js 0x405e6b
push ebx
mov ecx, edi
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
jmp 0x405e18
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x405bee
push 0x20019
push ebx
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
call fcn.00404080
mov edi, eax
jmp 0x405bf3
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.004109c9
push eax
call fcn.004022c0
mov ecx, dword [ebp - 0x2264]
add esp, 0x14
push ebx
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.004050a0
mov esi, eax
test esi, esi
js 0x405e6b
cmp word [ebx], 0x7b
jne 0x405cae
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c57
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x405cae
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
push 0
push dword [ebp - 0x2260]
push ebx
call fcn.00405660
mov esi, eax
test esi, esi
jns 0x405c98
cmp dword [ebp - 0x221c], 0
je 0x405e6b
mov ecx, dword [ebp - 0x2264]
push ebx
call fcn.004049b0
mov esi, eax
test esi, esi
js 0x405e6b
cmp edi, 2
je 0x405e18
test edi, edi
je 0x405ccc
cmp dword [ebp + 0x14], 0
jne 0x405e18
mov ecx, edi
jmp 0x405e64
cmp dword [ebp + 0x14], 0
je 0x405d66
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 - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x405d66
cmp dword [ebp - 0x221c], eax
jbe 0x405d66
mov edi, 0x42bacc
nop dword [eax + eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405e18
add edi, 4
cmp edi, 0x42bafc
jl 0x405d20
cmp dword [ebp - 0x2254], 0
je 0x405e18
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2260]
call fcn.00404160
jmp 0x405e18
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 - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x405d9f
xor edi, edi
jmp 0x405dab
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2260]
xor eax, eax
test ecx, ecx
je 0x405dc6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x405e62
cmp dword [ebp - 0x2254], eax
je 0x405e18
test edi, edi
jne 0x405e18
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2250]
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x224c], edi
mov dword [ebp - 0x2248], edi
call fcn.00403fa0
mov dword [ebp - 0x2250], edi
test eax, eax
jne 0x405e62
cmp word [ebx], 0x7d
jne 0x405700
jmp 0x405e6b
mov ecx, eax
call fcn.00403db0
mov esi, eax
test edi, edi
je 0x405e6b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405e6b
mov ecx, eax
call fcn.00403db0
mov esi, eax
mov eax, dword [ebp - 0x2244]
test eax, eax
je 0x405e6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405e6b
mov esi, 0x80020009
jmp 0x405e6b
mov eax, 1
mov ecx, eax
call fcn.00403db0
mov esi, eax
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x405e7c
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.0040a893
mov esp, ebp
pop ebp
ret 0x10