Function at 0x40418d
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
call fcn.00403dc8
mov esi, eax
test esi, esi
jge 0x4041c3
lea ecx, [ebp - 4]
call fcn.004046ec
mov eax, esi
jmp 0x404668
push ebx
jmp 0x4042f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x41246c
push edi
mov dword [ebp - 0xc], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4041f9
test ebx, ebx
je 0x40430e
mov ecx, dword [ebp - 8]
push edi
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
cmp dword [ebp + 0x10], 0
je 0x40430e
and dword [ebp + 8], 0
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x404233
cmp cx, 0x5c
je 0x40423a
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x404223
jmp 0x404242
test eax, eax
jne 0x40466e
mov esi, 0x412340
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404272
add esi, 4
cmp esi, 0x412370
jl 0x404247
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004047be
and dword [ebp + 8], 0
test ebx, ebx
je 0x4042ff
mov ecx, dword [ebp - 8]
push edi
call fcn.00403dc8
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4046a5
mov ecx, dword [ebp - 8]
push edi
call fcn.0040476d
mov esi, eax
cmp esi, ebx
jl 0x4046a5
cmp dword [ebp + 8], ebx
je 0x4042b0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0x7b
jne 0x4042f0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4042f0
mov ecx, dword [ebp - 8]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.0040418d
mov esi, eax
test esi, esi
jl 0x404656
mov ecx, dword [ebp - 8]
push edi
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
cmp word [edi], 0x7d
jne 0x4041c9
jmp 0x404656
cmp dword [ebp + 8], 0
je 0x40430e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404334
mov ecx, dword [ebp - 8]
and dword [ebp - 0xc], eax
push edi
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
push 0x4124a8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404414
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x424]
push eax
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
mov ecx, dword [ebp - 8]
push edi
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
cmp word [edi], 0x3d
jne 0x404696
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4043b1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404848
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x4046be
jmp 0x4042b0
cmp dword [ebp + 0x14], ebx
jne 0x404402
cmp dword [ebp - 0xc], ebx
je 0x404402
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00404703
cmp eax, ebx
jne 0x40469c
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4043f4
cmp eax, 2
jne 0x40469c
cmp dword [ebp + 8], ebx
je 0x404402
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push edi
call fcn.0040476d
mov esi, eax
cmp esi, ebx
jmp 0x4042ea
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
xor esi, esi
jmp 0x40442f
cmp cx, 0x5c
je 0x404436
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x40441f
jmp 0x40443e
cmp eax, esi
jne 0x404681
cmp dword [ebp + 0x10], esi
je 0x4044ef
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.00404703
test eax, eax
je 0x4044b4
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.00404703
test eax, eax
je 0x4044b4
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4046b5
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x4044a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jne 0x4046b5
mov ecx, dword [ebp - 8]
push edi
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
cmp word [edi], 0x3d
jne 0x4042b0
mov ecx, dword [ebp - 8]
push edi
push 0
lea eax, [ebp - 4]
push eax
call fcn.00404848
mov esi, eax
test esi, esi
jl 0x404656
jmp 0x4042b0
cmp dword [ebp + 0x14], esi
jne 0x40450a
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.00404703
mov dword [ebp + 8], eax
jmp 0x404511
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x40451d
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 8]
push edi
mov ecx, ebx
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
push edi
mov ecx, ebx
call fcn.0040476d
mov esi, eax
test esi, esi
jl 0x404656
cmp word [edi], 0x7b
jne 0x40458f
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 4]
push edi
call fcn.0040418d
mov esi, eax
test esi, esi
jge 0x40457d
cmp dword [ebp + 0x14], 0
je 0x404656
push edi
mov ecx, ebx
call fcn.00403dc8
mov esi, eax
test esi, esi
jl 0x404656
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
je 0x4042f0
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4045b6
cmp eax, ebx
jne 0x4042f0
push dword [ebp + 8]
jmp 0x40464e
cmp dword [ebp - 0x10], ebx
je 0x40460f
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00404738
test eax, eax
je 0x40460f
mov ebx, 0x412340
push dword [ebx]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4042f0
add ebx, 4
cmp ebx, 0x412370
jl 0x4045cf
cmp dword [ebp - 0xc], 0
je 0x4042f0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 4]
call fcn.004047be
jmp 0x4042f0
cmp dword [ebp - 4], ebx
je 0x40462b
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 4], 0
test eax, eax
jne 0x4046c3
cmp dword [ebp - 0xc], 0
je 0x4042f0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4042f0
push eax
call fcn.004046d9
pop ecx
mov esi, eax
cmp dword [ebp - 4], 0
je 0x404665
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x404681
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
je 0x40468f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x404667
cmp dword [ebp - 4], 0
jmp 0x404684
push eax
call fcn.004046d9
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x404656
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404656
push eax
call fcn.004046d9
pop ecx
mov esi, eax
cmp dword [ebp - 4], ebx
jmp 0x40465a
push eax
call fcn.004046d9
cmp dword [ebp - 4], 0
pop ecx
mov esi, eax
je 0x404665
push dword [ebp - 4]
call ebx
jmp 0x404665