Function at 0x405e1c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b928
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.0040af15
mov eax, dword [0x40d380]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1118], eax
xor eax, eax
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x1130], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x1160], eax
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
cmp byte [edi], 0x7d
je 0x4063b6
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x1120], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x111c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405ecd
test esi, esi
je 0x405f97
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x405f99
push 0x5c
push edi
mov dword [ebp - 0x112c], esi
mov dword [ebp - 0x1128], esi
mov dword [ebp - 0x1124], esi
call fcn.00406970
test eax, eax
jne 0x4063a6
push edi
mov ecx, ebx
call fcn.004035ce
test eax, eax
je 0x405f4e
mov eax, dword [ebp - 0x1118]
lea ecx, [ebp - 0x112c]
push edi
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1128], esi
mov dword [ebp - 0x1124], esi
call fcn.00405899
mov dword [ebp - 0x112c], esi
mov dword [ebp - 0x1128], esi
mov dword [ebp - 0x1124], esi
cmp dword [ebp - 0x111c], esi
je 0x405f8a
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x40639e
push edi
mov ecx, ebx
call fcn.004068a3
mov esi, eax
lea ecx, [ebp - 0x112c]
call fcn.004038bb
test esi, esi
js 0x4063b6
jmp 0x406349
lea ecx, [ebp - 0x112c]
call fcn.004038bb
jmp 0x405f99
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405fc1
push edi
mov ecx, ebx
mov dword [ebp - 0x1120], esi
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
push 0x40c2c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4060d9
lea eax, [ebp - 0x1114]
mov ecx, ebx
push eax
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
cmp byte [edi], 0x3d
jne 0x4063b1
cmp dword [ebp + 0x10], 0
je 0x40605f
mov eax, dword [ebp - 0x1118]
mov ecx, ebx
and dword [ebp - 0x1140], 0
and dword [ebp - 0x113c], 0
mov dword [ebp - 0x1144], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x1144]
push eax
call fcn.0040216a
mov esi, eax
lea ecx, [ebp - 0x1144]
xor eax, eax
mov dword [ebp - 0x1144], eax
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x113c], eax
jmp 0x405f78
cmp dword [ebp + 0x14], 0
jne 0x4060cc
cmp dword [ebp - 0x1120], 0
je 0x4060cc
xor eax, eax
lea ecx, [ebp - 0x115c]
push 0x20006
push eax
push dword [ebp - 0x1118]
mov dword [ebp - 0x115c], eax
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
call fcn.004052d3
test eax, eax
jne 0x4063e1
lea eax, [ebp - 0x1114]
push eax
push dword [ebp - 0x115c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4060c1
cmp eax, 2
jne 0x4063e1
lea ecx, [ebp - 0x115c]
call fcn.004038bb
push edi
mov ecx, ebx
call fcn.004068a3
jmp 0x40638a
push 0x5c
push edi
call fcn.00406970
test eax, eax
jne 0x4063b1
cmp dword [ebp + 0x10], eax
je 0x406177
mov esi, dword [ebp - 0x1118]
lea ecx, [ebp - 0x1138]
push 0x2001f
push edi
push esi
call fcn.004052d3
test eax, eax
je 0x406144
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x1138]
call fcn.004052d3
test eax, eax
je 0x406144
xor eax, eax
lea ecx, [ebp - 0x1138]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.004038d5
test eax, eax
jne 0x406260
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
cmp byte [edi], 0x3d
jne 0x406349
push edi
push 0
lea eax, [ebp - 0x1138]
mov ecx, ebx
push eax
call fcn.0040216a
mov esi, eax
jmp 0x405f7d
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x406197
push 0x20019
push edi
push dword [ebp - 0x1118]
lea ecx, [ebp - 0x1138]
call fcn.004052d3
jmp 0x40619a
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x111c], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x114]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push eax
call fcn.004029b3
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
push edi
mov ecx, ebx
call fcn.004068a3
mov esi, eax
test esi, esi
js 0x4063b6
cmp byte [edi], 0x7b
jne 0x40623c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4061f7
xor eax, eax
sub ecx, edx
inc eax
cmp ecx, eax
jne 0x40623c
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x1138]
push edi
call fcn.00405e1c
mov esi, eax
test esi, esi
jns 0x40622a
cmp dword [ebp + 0x14], 0
je 0x4063b6
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
mov eax, dword [ebp - 0x111c]
mov ecx, dword [ebp - 0x1160]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x406390
test eax, eax
je 0x40626d
test ecx, ecx
jne 0x406390
push eax
call fcn.00402a71
mov esi, eax
jmp 0x4063b6
test ecx, ecx
je 0x4062bc
push dword [ebp - 0x1138]
mov ecx, ebx
call fcn.00404910
test eax, eax
je 0x4062bc
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
call fcn.004035ce
test eax, eax
je 0x406390
cmp dword [ebp - 0x1120], 0
je 0x406390
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1138]
call fcn.00405899
jmp 0x406390
push dword [ebp - 0x1138]
mov ecx, ebx
call fcn.00404910
lea ecx, [ebp - 0x1138]
mov dword [ebp - 0x111c], eax
call fcn.004038bb
test eax, eax
jne 0x406260
cmp dword [ebp - 0x1120], eax
je 0x406390
cmp dword [ebp - 0x111c], eax
jne 0x406390
mov eax, dword [ebp - 0x1118]
lea ecx, [ebp - 0x1150]
and dword [ebp - 0x114c], 0
and dword [ebp - 0x1148], 0
mov dword [ebp - 0x1150], eax
lea eax, [ebp - 0x114]
push eax
call fcn.00403cfe
xor ecx, ecx
mov dword [ebp - 0x1150], ecx
mov dword [ebp - 0x114c], ecx
mov dword [ebp - 0x1148], ecx
test eax, eax
jne 0x4063f6
lea ecx, [ebp - 0x1150]
call fcn.004038bb
cmp dword [ebp + 0x10], 0
je 0x406390
cmp byte [edi], 0x7b
jne 0x406390
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406359
xor eax, eax
sub ecx, edx
inc eax
cmp ecx, eax
jne 0x406393
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x1138]
push edi
call fcn.00405e1c
mov esi, eax
test esi, esi
js 0x4063b6
push edi
mov ecx, ebx
call fcn.004051bb
mov esi, eax
test esi, esi
js 0x4063b6
xor eax, eax
inc eax
cmp byte [edi], 0x7d
jne 0x405e98
jmp 0x4063b6
lea ecx, [ebp - 0x112c]
jmp 0x4063ef
lea ecx, [ebp - 0x112c]
call fcn.004038bb
mov esi, 0x80020009
lea ecx, [ebp - 0x1138]
call fcn.004038bb
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.0040a2a7
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00402a71
lea ecx, [ebp - 0x115c]
mov esi, eax
call fcn.004038bb
jmp 0x4063b6
push eax
call fcn.00402a71
lea ecx, [ebp - 0x1150]
jmp 0x4063ed