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

Disassembly:
mov eax, 0x417d8b
call fcn.0040fa68
sub esp, 0x424
mov eax, dword [0x41f278]
and dword [ebp - 0x424], 0
push ebx
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x428], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jge 0x4024a0
jmp 0x402860
cmp word [ebx], 0x7d
push edi
je 0x40285d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x42c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x4024da
test edi, edi
je 0x40254f
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
cmp dword [ebp + 0x10], 0
je 0x40254f
push 0x5c
mov eax, ebx
call fcn.00401d22
test eax, eax
pop ecx
jne 0x402955
push ebx
call fcn.00402129
test eax, eax
je 0x402522
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040165e
test edi, edi
je 0x40254f
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.0040218a
jmp 0x402764
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40257c
and dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
push 0x41b280
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4026c0
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x420]
call fcn.00401d82
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x402848
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
cmp esi, edi
jl 0x402848
cmp word [ebx], 0x3d
jne 0x402912
cmp dword [ebp + 0x10], edi
je 0x40265f
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x428]
call fcn.00401e7d
mov esi, eax
cmp esi, edi
jl 0x40291a
mov byte [ebp - 4], 0
cmp word [ebx], 0x7b
jne 0x402650
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x402650
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x424]
push ebx
call fcn.00402457
mov esi, eax
test esi, esi
jl 0x402848
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
cmp word [ebx], 0x7d
jne 0x4024ab
jmp 0x402848
cmp dword [ebp + 0x14], edi
jne 0x4026b1
cmp dword [ebp - 0x42c], edi
je 0x4026b1
push 0x20006
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.0040154b
cmp eax, edi
jne 0x402937
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4026a6
cmp eax, 2
jne 0x402925
test edi, edi
je 0x4026b1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.0040218a
jmp 0x402646
push 0x5c
mov eax, ebx
call fcn.00401d22
test eax, eax
pop ecx
jne 0x402955
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x402773
push 0x2001f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.0040154b
test eax, eax
je 0x40272e
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.0040154b
test eax, eax
je 0x40272e
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x424]
call fcn.00401502
cmp eax, esi
jne 0x402841
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
cmp word [ebx], 0x3d
jne 0x402606
push ebx
push 0
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call fcn.00401e7d
mov esi, eax
test esi, esi
jl 0x402848
jmp 0x402606
cmp dword [ebp + 0x14], esi
jne 0x402791
push 0x20019
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
call fcn.0040154b
mov dword [ebp + 8], eax
jmp 0x402798
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x4027a4
mov dword [ebp + 0x14], 1
push 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
mov ecx, dword [ebp - 0x428]
mov edi, ebx
call fcn.0040218a
mov esi, eax
test esi, esi
jl 0x402848
cmp word [ebx], 0x7b
jne 0x402819
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x428]
push 0
push dword [ebp - 0x424]
push ebx
call fcn.00402457
mov esi, eax
test esi, esi
jge 0x402806
cmp dword [ebp + 0x14], 0
je 0x402848
mov ecx, dword [ebp - 0x428]
mov eax, ebx
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x402848
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x430]
mov dword [ebp + 0x14], eax
je 0x402650
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x402878
cmp dword [ebp - 0x430], edi
jne 0x402650
call fcn.0040131a
mov esi, eax
cmp dword [ebp - 0x424], 0
je 0x40285d
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040efeb
leave
ret 0x10
cmp dword [ebp - 0x430], edi
je 0x4028c7
push dword [ebp - 0x424]
call fcn.00402155
test eax, eax
je 0x4028c7
lea eax, [ebp - 0x218]
push eax
call fcn.00402129
test eax, eax
je 0x402650
cmp dword [ebp - 0x42c], 0
je 0x402650
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040165e
jmp 0x402650
cmp dword [ebp - 0x424], edi
je 0x4028e9
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x424], edi
jne 0x402974
cmp dword [ebp - 0x42c], edi
je 0x402650
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402841
jmp 0x402650
cmp dword [ebp - 0x424], edi
jmp 0x40295c
cmp dword [ebp - 0x424], edi
jmp 0x40284f
call fcn.0040131a
test edi, edi
mov esi, eax
je 0x402848
push edi
jmp 0x40294a
call fcn.0040131a
cmp dword [ebp + 8], edi
mov esi, eax
je 0x402848
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402848
cmp dword [ebp - 0x424], 0
je 0x40296a
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40285f
call fcn.0040131a
jmp 0x40285f