Function at 0x4059f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420f06
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.0040f530
mov eax, dword [0x42e054]
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 - 0x111c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 0x112c], 0
mov dword [ebp - 0x1128], 0
mov dword [ebp - 0x1124], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x406140
cmp byte [edi], 0x7d
je 0x40612d
nop word [eax + eax]
push str.Delete
push edi
mov dword [ebp - 0x1130], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405ab3
test ebx, ebx
je 0x405bcb
mov ecx, dword [ebp - 0x111c]
push edi
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
cmp dword [ebp + 0x10], 0
je 0x405bcb
mov al, byte [edi]
mov ecx, edi
mov dword [ebp - 0x113c], 0
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
test al, al
je 0x405b1d
nop dword [eax]
cmp al, 0x5c
je 0x405b15
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x405b00
jmp 0x405b1d
test ecx, ecx
jne 0x4060cc
mov esi, 0x4283a0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405b84
add esi, 4
cmp esi, 0x4283d0
jl 0x405b22
mov eax, dword [ebp - 0x1120]
lea ecx, [ebp - 0x113c]
push edi
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
call fcn.00403dd0
mov dword [ebp - 0x113c], 0
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
test ebx, ebx
je 0x405bc1
mov ebx, dword [ebp - 0x111c]
mov ecx, ebx
push edi
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x4060de
push edi
mov ecx, ebx
call fcn.00405540
mov esi, eax
test esi, esi
js 0x4060de
mov dword [ebp - 0x1138], 0
jmp 0x405e13
mov dword [ebp - 0x1138], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [ebp - 0x111c]
test eax, eax
jne 0x405bf9
push edi
mov ecx, ebx
mov dword [ebp - 0x1130], eax
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
push 0x427c08
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405d63
lea eax, [ebp - 0x1114]
mov ecx, ebx
push eax
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
push edi
mov ecx, ebx
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
cmp byte [edi], 0x3d
jne 0x4060d7
cmp dword [ebp + 0x10], 0
je 0x405cbb
mov eax, dword [ebp - 0x1120]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1148], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x1148]
mov dword [ebp - 0x1144], 0
push eax
mov dword [ebp - 0x1140], 0
call fcn.00404fd0
mov esi, eax
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x1140], 0
test esi, esi
js 0x4060eb
mov byte [ebp - 4], 0
mov dword [ebp - 0x1144], 0
jmp 0x405e13
cmp dword [ebp + 0x14], 0
jne 0x405d4c
cmp dword [ebp - 0x1130], 0
je 0x405d4c
push 0x20006
push 0
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x1154]
mov dword [ebp - 0x1154], 0
mov dword [ebp - 0x1150], 0
mov dword [ebp - 0x114c], 0
call fcn.00403d20
test eax, eax
jne 0x4060f8
mov esi, dword [ebp - 0x1154]
lea eax, [ebp - 0x1114]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x405d2d
cmp eax, 2
jne 0x4060f8
test esi, esi
je 0x405d42
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1154], 0
mov dword [ebp - 0x1150], 0
push edi
mov ecx, ebx
call fcn.00405540
mov esi, eax
test esi, esi
js 0x40612d
jmp 0x4060c1
mov al, byte [edi]
mov ecx, edi
test al, al
je 0x405d8d
nop dword [eax + eax]
cmp al, 0x5c
je 0x405d85
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x405d70
jmp 0x405d8d
test ecx, ecx
jne 0x4060d7
cmp dword [ebp + 0x10], 0
je 0x405e67
mov esi, dword [ebp - 0x1120]
lea ecx, [ebp - 0x112c]
push 0x2001f
push edi
push esi
call fcn.00403d20
test eax, eax
je 0x405de1
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x112c]
call fcn.00403d20
test eax, eax
je 0x405de1
sub esp, 0x14
lea ecx, [ebp - 0x112c]
push edi
push esi
call fcn.00403c50
test eax, eax
jne 0x406124
push edi
mov ecx, ebx
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
cmp byte [edi], 0x3d
jne 0x405e13
push edi
push 0
lea eax, [ebp - 0x112c]
mov ecx, ebx
push eax
call fcn.00404fd0
mov esi, eax
test esi, esi
js 0x40612d
cmp byte [edi], 0x7b
jne 0x4060c1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405e21
sub ecx, edx
cmp ecx, 1
jne 0x4060c1
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x112c]
push edi
call fcn.004059f0
mov esi, eax
test esi, esi
js 0x40612d
push edi
mov ecx, ebx
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
jmp 0x4060c1
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x405e89
push 0x20019
push edi
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x112c]
call fcn.00403d20
mov ebx, eax
jmp 0x405e8e
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x1118], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00414475
push eax
call fcn.004012d0
mov ecx, dword [ebp - 0x111c]
add esp, 0x14
push edi
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
mov ecx, dword [ebp - 0x111c]
push edi
call fcn.00405540
mov esi, eax
test esi, esi
js 0x40612d
cmp byte [edi], 0x7b
jne 0x405f44
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ef3
sub ecx, edx
cmp ecx, 1
jne 0x405f44
push dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x111c]
push 0
push dword [ebp - 0x112c]
push edi
call fcn.004059f0
mov esi, eax
test esi, esi
jns 0x405f2e
cmp dword [ebp - 0x1118], 0
je 0x40612d
mov ecx, dword [ebp - 0x111c]
push edi
call fcn.00404e60
mov esi, eax
test esi, esi
js 0x40612d
cmp ebx, 2
je 0x4060c1
test ebx, ebx
je 0x405f62
cmp dword [ebp + 0x14], 0
jne 0x4060c1
mov ecx, ebx
jmp 0x406126
cmp dword [ebp + 0x14], 0
je 0x405ff8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x405ff8
cmp eax, dword [ebp - 0x1118]
sbb eax, eax
neg eax
je 0x405ff8
mov ebx, 0x4283a0
push dword [ebx]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4060c1
add ebx, 4
cmp ebx, 0x4283d0
jl 0x405fb2
cmp dword [ebp - 0x1130], 0
je 0x4060c1
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x112c]
call fcn.00403dd0
jmp 0x4060c1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x112c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x406031
xor ebx, ebx
jmp 0x40603d
xor eax, eax
cmp eax, dword [ebp - 0x1118]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x112c]
xor eax, eax
test ecx, ecx
je 0x406058
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1128], 0
test eax, eax
jne 0x406124
cmp dword [ebp - 0x1130], eax
je 0x4060c1
test ebx, ebx
jne 0x4060c1
mov eax, dword [ebp - 0x1120]
lea ecx, [ebp - 0x1160]
mov dword [ebp - 0x1160], eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x115c], ebx
mov dword [ebp - 0x1158], ebx
call fcn.00403b70
mov dword [ebp - 0x1160], ebx
mov dword [ebp - 0x115c], ebx
mov dword [ebp - 0x1158], ebx
test eax, eax
jne 0x40610e
lea ecx, [ebp - 0x1160]
call fcn.00403b50
cmp byte [edi], 0x7d
jne 0x405a80
jmp 0x40612d
lea ecx, [ebp - 0x113c]
call fcn.00403b50
mov esi, 0x80020009
jmp 0x40612d
lea ecx, [ebp - 0x113c]
call fcn.00403b50
jmp 0x40612d
lea ecx, [ebp - 0x1148]
call fcn.00403b50
jmp 0x40612d
mov ecx, eax
call fcn.00403900
lea ecx, [ebp - 0x1154]
mov esi, eax
call fcn.00403b50
jmp 0x40612d
mov ecx, eax
call fcn.00403900
lea ecx, [ebp - 0x1160]
mov esi, eax
call fcn.00403b50
jmp 0x40612d
mov ecx, eax
call fcn.00403900
mov esi, eax
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x40613e
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.0040e432
mov esp, ebp
pop ebp
ret 0x10