Function at 0x41319e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4813
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.004f3f20
mov eax, dword [0x51a448]
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 - 0x112c], eax
mov dword [ebp - 0x1128], eax
mov dword [ebp - 0x1124], eax
mov dword [ebp - 4], eax
push edi
mov ecx, ebx
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
cmp byte [edi], 0x7d
je 0x413700
xor eax, eax
push str.Delete
inc eax
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 0x413248
test esi, esi
je 0x413305
push edi
mov ecx, ebx
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x413307
mov dl, 0x5c
mov dword [ebp - 0x1138], esi
mov ecx, edi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1130], esi
call fcn.00412318
test eax, eax
jne 0x4136f0
push edi
call fcn.00412d59
test eax, eax
je 0x4132bc
mov eax, dword [ebp - 0x1118]
lea ecx, [ebp - 0x1138]
push edi
mov dword [ebp - 0x1138], eax
call fcn.00412e47
mov dword [ebp - 0x1138], esi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1130], esi
cmp dword [ebp - 0x111c], esi
je 0x4132f8
push edi
mov ecx, ebx
call fcn.00413095
mov esi, eax
test esi, esi
js 0x4136e8
push edi
mov ecx, ebx
call fcn.00412cf5
lea ecx, [ebp - 0x1138]
mov esi, eax
call fcn.00412f45
test esi, esi
js 0x413700
jmp 0x4136a7
lea ecx, [ebp - 0x1138]
call fcn.00412f45
jmp 0x413307
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41332f
push edi
mov ecx, ebx
mov dword [ebp - 0x1120], esi
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
push 0x50895c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x413458
lea eax, [ebp - 0x1114]
mov ecx, ebx
push eax
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
push edi
mov ecx, ebx
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
cmp byte [edi], 0x3d
jne 0x4136fb
cmp dword [ebp + 0x10], 0
je 0x4133de
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x1118]
and dword [ebp - 0x1144], 0
and dword [ebp - 0x1140], 0
mov dword [ebp - 0x1148], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x1148]
push eax
call fcn.004127f9
mov esi, eax
lea ecx, [ebp - 0x1148]
xor eax, eax
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1144], eax
mov dword [ebp - 0x1140], eax
test esi, esi
js 0x413738
mov byte [ebp - 4], al
jmp 0x4136a2
cmp dword [ebp + 0x14], 0
jne 0x41344b
cmp dword [ebp - 0x1120], 0
je 0x41344b
xor eax, eax
lea ecx, [ebp - 0x1154]
push 0x20006
push eax
push dword [ebp - 0x1118]
mov dword [ebp - 0x1154], eax
mov dword [ebp - 0x1150], eax
mov dword [ebp - 0x114c], eax
call fcn.00412deb
test eax, eax
jne 0x413729
lea eax, [ebp - 0x1114]
push eax
push dword [ebp - 0x1154]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x413440
cmp eax, 2
jne 0x413729
lea ecx, [ebp - 0x1154]
call fcn.00412f45
push edi
mov ecx, ebx
call fcn.00412cf5
jmp 0x4131fd
mov dl, 0x5c
mov ecx, edi
call fcn.00412318
test eax, eax
jne 0x4136fb
cmp dword [ebp + 0x10], eax
je 0x4134eb
mov esi, dword [ebp - 0x1118]
lea ecx, [ebp - 0x112c]
push 0x2001f
push edi
push esi
call fcn.00412deb
test eax, eax
je 0x4134b8
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x112c]
call fcn.00412deb
test eax, eax
je 0x4134b8
sub esp, 0x14
lea ecx, [ebp - 0x112c]
push edi
push esi
call fcn.004123b3
test eax, eax
jne 0x4135ce
push edi
mov ecx, ebx
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
cmp byte [edi], 0x3d
jne 0x4136a7
push edi
push 0
lea eax, [ebp - 0x112c]
mov ecx, ebx
push eax
call fcn.004127f9
mov esi, eax
jmp 0x4132eb
cmp dword [ebp + 0x14], 0
jne 0x41350a
push 0x20019
push edi
push dword [ebp - 0x1118]
lea ecx, [ebp - 0x112c]
call fcn.00412deb
jmp 0x41350d
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x111c], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x114]
push edi
push 0x104
push eax
mov dword [ebp - 0x113c], ecx
call fcn.004cdcc2
push eax
call fcn.00412c8a
add esp, 0x14
mov ecx, ebx
push edi
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
push edi
mov ecx, ebx
call fcn.00412cf5
mov esi, eax
test esi, esi
js 0x413700
cmp byte [edi], 0x7b
jne 0x4135b1
push edi
call fcn.004c8d20
pop ecx
cmp eax, 1
jne 0x4135b1
push dword [ebp - 0x113c]
mov ecx, ebx
push 0
push dword [ebp - 0x112c]
push edi
call fcn.0041319e
mov esi, eax
test esi, esi
jns 0x41359f
cmp dword [ebp - 0x113c], 0
je 0x413700
push edi
mov ecx, ebx
call fcn.00413095
mov esi, eax
test esi, esi
js 0x413700
mov eax, dword [ebp - 0x111c]
cmp eax, 2
je 0x413207
test eax, eax
je 0x4135dc
cmp dword [ebp + 0x14], 0
jne 0x413207
mov ecx, eax
call fcn.00413065
mov esi, eax
jmp 0x413700
cmp dword [ebp + 0x14], 0
je 0x413629
push dword [ebp - 0x112c]
call fcn.00412efe
test eax, eax
je 0x413629
lea eax, [ebp - 0x114]
push eax
call fcn.00412d59
test eax, eax
je 0x413207
cmp dword [ebp - 0x1120], 0
je 0x413207
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x112c]
call fcn.00412e47
jmp 0x413207
push dword [ebp - 0x112c]
call fcn.00412efe
lea ecx, [ebp - 0x112c]
mov dword [ebp - 0x111c], eax
call fcn.00412f45
test eax, eax
jne 0x4135ce
cmp dword [ebp - 0x1120], eax
je 0x413207
cmp dword [ebp - 0x111c], eax
jne 0x413207
mov eax, dword [ebp - 0x1118]
lea ecx, [ebp - 0x1160]
and dword [ebp - 0x115c], 0
and dword [ebp - 0x1158], 0
mov dword [ebp - 0x1160], eax
lea eax, [ebp - 0x114]
push eax
call fcn.00412fca
and dword [ebp - 0x1160], 0
test eax, eax
jne 0x41373f
lea ecx, [ebp - 0x1160]
call fcn.00412f45
cmp dword [ebp + 0x10], 0
je 0x413207
cmp byte [edi], 0x7b
jne 0x413207
push edi
call fcn.004c8d20
pop ecx
cmp eax, 1
jne 0x413207
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x112c]
push edi
call fcn.0041319e
mov esi, eax
test esi, esi
js 0x413700
jmp 0x4131f5
lea ecx, [ebp - 0x1138]
jmp 0x413738
lea ecx, [ebp - 0x1138]
call fcn.00412f45
mov esi, 0x80020009
lea ecx, [ebp - 0x112c]
call fcn.00412f45
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.0049d307
leave
ret 0x10
mov ecx, eax
call fcn.00413065
lea ecx, [ebp - 0x1154]
mov esi, eax
call fcn.00412f45
jmp 0x413700
mov ecx, eax
call fcn.00413065
lea ecx, [ebp - 0x1160]
jmp 0x413736