Function at 0x404dd8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419761
mov eax, dword fs:[0]
push eax
mov eax, 0x1154
call fcn.0040b2c0
mov eax, dword [0x42a1c0]
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 - 0x111c], eax
xor eax, eax
mov dword [ebp - 0x1128], eax
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1160], eax
push edi
mov ecx, ebx
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
cmp byte [edi], 0x7d
je 0x40536c
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x1138], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x1118], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404e8b
test esi, esi
je 0x404f57
push edi
mov ecx, ebx
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x404f59
push 0x5c
push edi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x112c], esi
call fcn.00405893
pop ecx
pop ecx
test eax, eax
jne 0x40535c
push edi
mov ecx, ebx
call fcn.00404016
test eax, eax
je 0x404f0e
mov eax, dword [ebp - 0x111c]
lea ecx, [ebp - 0x1134]
push edi
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x112c], esi
call fcn.00404872
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x112c], esi
cmp dword [ebp - 0x1118], esi
je 0x404f4a
push edi
mov ecx, ebx
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x405354
push edi
mov ecx, ebx
call fcn.0040580b
lea ecx, [ebp - 0x1134]
mov esi, eax
call fcn.004040d1
test esi, esi
js 0x40536c
jmp 0x405313
lea ecx, [ebp - 0x1134]
call fcn.004040d1
jmp 0x404f59
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404f81
push edi
mov ecx, ebx
mov dword [ebp - 0x1138], esi
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
push 0x41ca80
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4050aa
lea eax, [ebp - 0x1114]
mov ecx, ebx
push eax
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
push edi
mov ecx, ebx
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
cmp byte [edi], 0x3d
jne 0x405367
cmp dword [ebp + 0x10], 0
je 0x405030
and dword [ebp - 0x114c], 0
xor eax, eax
and dword [ebp - 0x1148], 0
inc eax
mov byte [ebp - 4], al
mov ecx, ebx
mov eax, dword [ebp - 0x111c]
mov dword [ebp - 0x1150], eax
lea eax, [ebp - 0x1114]
push edi
push eax
lea eax, [ebp - 0x1150]
push eax
call fcn.004038c1
mov esi, eax
lea ecx, [ebp - 0x1150]
xor eax, eax
mov dword [ebp - 0x1150], eax
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], eax
test esi, esi
js 0x4053a6
mov byte [ebp - 4], al
jmp 0x40530e
cmp dword [ebp + 0x14], 0
jne 0x40509d
cmp dword [ebp - 0x1138], 0
je 0x40509d
xor eax, eax
lea ecx, [ebp - 0x115c]
push 0x20006
push eax
push dword [ebp - 0x111c]
mov dword [ebp - 0x115c], eax
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
call fcn.0040459c
test eax, eax
jne 0x405397
lea eax, [ebp - 0x1114]
push eax
push dword [ebp - 0x115c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x405092
cmp eax, 2
jne 0x405397
lea ecx, [ebp - 0x115c]
call fcn.004040d1
push edi
mov ecx, ebx
call fcn.0040580b
jmp 0x404e40
push 0x5c
push edi
call fcn.00405893
pop ecx
pop ecx
test eax, eax
jne 0x405367
cmp dword [ebp + 0x10], eax
je 0x40514a
mov esi, dword [ebp - 0x111c]
lea ecx, [ebp - 0x1128]
push 0x2001f
push edi
push esi
call fcn.0040459c
test eax, eax
je 0x405117
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x1128]
call fcn.0040459c
test eax, eax
je 0x405117
xor eax, eax
lea ecx, [ebp - 0x1128]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.004040eb
test eax, eax
jne 0x405229
push edi
mov ecx, ebx
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
cmp byte [edi], 0x3d
jne 0x405313
push edi
push 0
lea eax, [ebp - 0x1128]
mov ecx, ebx
push eax
call fcn.004038c1
mov esi, eax
jmp 0x404f3d
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40516a
push 0x20019
push edi
push dword [ebp - 0x111c]
lea ecx, [ebp - 0x1128]
call fcn.0040459c
jmp 0x40516d
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x1118], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x114]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.0040cabc
push eax
call fcn.00403f40
add esp, 0x14
mov ecx, ebx
push edi
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
push edi
mov ecx, ebx
call fcn.0040580b
mov esi, eax
test esi, esi
js 0x40536c
cmp byte [edi], 0x7b
jne 0x405205
push edi
call fcn.0040aeb0
pop ecx
cmp eax, 1
jne 0x405205
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x1128]
push edi
call fcn.00404dd8
mov esi, eax
test esi, esi
jns 0x4051f3
cmp dword [ebp + 0x14], 0
je 0x40536c
push edi
mov ecx, ebx
call fcn.0040448b
mov esi, eax
test esi, esi
js 0x40536c
mov eax, dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x1160]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x404e4a
test eax, eax
je 0x405237
test ecx, ecx
jne 0x404e4a
push eax
call fcn.00403fb0
pop ecx
mov esi, eax
jmp 0x40536c
test ecx, ecx
je 0x405286
push dword [ebp - 0x1128]
mov ecx, ebx
call fcn.00404351
test eax, eax
je 0x405286
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
call fcn.00404016
test eax, eax
je 0x404e4a
cmp dword [ebp - 0x1138], 0
je 0x404e4a
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1128]
call fcn.00404872
jmp 0x404e4a
push dword [ebp - 0x1128]
mov ecx, ebx
call fcn.00404351
lea ecx, [ebp - 0x1128]
mov dword [ebp - 0x1118], eax
call fcn.004040d1
test eax, eax
jne 0x405229
cmp dword [ebp - 0x1138], eax
je 0x404e4a
cmp dword [ebp - 0x1118], eax
jne 0x404e4a
mov eax, dword [ebp - 0x111c]
lea ecx, [ebp - 0x1144]
and dword [ebp - 0x1140], 0
and dword [ebp - 0x113c], 0
mov dword [ebp - 0x1144], eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040415c
xor ecx, ecx
mov dword [ebp - 0x1144], ecx
mov dword [ebp - 0x1140], ecx
mov dword [ebp - 0x113c], ecx
test eax, eax
jne 0x4053ad
lea ecx, [ebp - 0x1144]
call fcn.004040d1
cmp dword [ebp + 0x10], 0
je 0x404e4a
cmp byte [edi], 0x7b
jne 0x404e4a
push edi
call fcn.0040aeb0
pop ecx
cmp eax, 1
jne 0x404e4a
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x1128]
push edi
call fcn.00404dd8
mov esi, eax
test esi, esi
js 0x40536c
jmp 0x404e38
lea ecx, [ebp - 0x1134]
jmp 0x4053a6
lea ecx, [ebp - 0x1134]
call fcn.004040d1
mov esi, 0x80020009
lea ecx, [ebp - 0x1128]
call fcn.004040d1
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.0040b2ad
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.00403fb0
pop ecx
lea ecx, [ebp - 0x115c]
mov esi, eax
call fcn.004040d1
jmp 0x40536c
push eax
call fcn.00403fb0
pop ecx
lea ecx, [ebp - 0x1144]
jmp 0x4053a4