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

Disassembly:
mov eax, 0x4168fa
call fcn.0040c948
sub esp, 0x21c
mov eax, dword [0x418718]
and dword [ebp - 0x220], 0
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
jmp 0x409cbb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x40133c
push edi
mov dword [ebp - 0x224], 1
call esi
mov ebx, eax
neg ebx
push 0x401350
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4098b2
test ebx, ebx
je 0x409944
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d14
cmp dword [ebp + 0x10], 0
je 0x409944
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.00407810
test eax, eax
pop ecx
pop ecx
jne 0x409cd2
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407961
test eax, eax
je 0x409907
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00407c45
and dword [ebp + 8], 0
test ebx, ebx
je 0x40993c
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d0c
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407a58
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00407526
jmp 0x409b04
lea ecx, [ebp + 8]
call fcn.00407526
push 0x401344
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409970
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x224], eax
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d14
push 0x40135c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409a62
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.00407878
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x409d14
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
cmp esi, ebx
jl 0x409d14
cmp byte [edi], 0x3d
jne 0x409cda
cmp dword [ebp + 0x10], ebx
je 0x4099ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x21c]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0040841d
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
jl 0x409d0f
mov byte [ebp - 4], bl
jmp 0x409c7c
cmp dword [ebp + 0x14], ebx
jne 0x409a4d
cmp dword [ebp - 0x224], ebx
je 0x409a4d
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0040758b
cmp eax, ebx
jne 0x409d03
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x409a45
cmp eax, 2
jne 0x409d03
lea ecx, [ebp + 8]
call fcn.00407526
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407a58
mov esi, eax
cmp esi, ebx
jmp 0x409cc5
push 0x5c
push edi
call fcn.00407810
test eax, eax
pop ecx
pop ecx
jne 0x409cda
cmp dword [ebp + 0x10], eax
je 0x409b11
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040758b
test eax, eax
je 0x409ace
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040758b
test eax, eax
je 0x409ace
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040753d
mov esi, eax
cmp esi, ebx
jne 0x409ce1
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d14
cmp byte [edi], 0x3d
jne 0x409c81
mov ecx, dword [ebp - 0x21c]
push edi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0040841d
mov esi, eax
test esi, esi
jl 0x409d14
jmp 0x409c81
cmp dword [ebp + 0x14], 0
jne 0x409b2f
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040758b
mov ebx, eax
jmp 0x409b32
push 2
pop ebx
test ebx, ebx
je 0x409b3d
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d14
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407a58
mov esi, eax
test esi, esi
jl 0x409d14
cmp byte [edi], 0x7b
jne 0x409bbe
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp - 0x220]
push edi
call fcn.00409842
mov esi, eax
test esi, esi
jge 0x409ba8
cmp dword [ebp + 0x14], 0
je 0x409d14
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d14
cmp ebx, 2
mov eax, dword [ebp - 0x228]
mov dword [ebp + 0x14], eax
je 0x409cc7
test ebx, ebx
je 0x409bea
test eax, eax
jne 0x409cc7
push ebx
call fcn.004074d8
pop ecx
mov esi, eax
jmp 0x409d14
test eax, eax
je 0x409c41
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.0040798d
test eax, eax
je 0x409c41
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x114]
push eax
call fcn.00407961
test eax, eax
je 0x409cc7
cmp dword [ebp - 0x224], 0
je 0x409cc7
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x220]
call fcn.00407c45
jmp 0x409cc7
lea ecx, [ebp - 0x220]
call fcn.00407526
mov ebx, eax
test ebx, ebx
jne 0x409cef
cmp dword [ebp - 0x224], eax
je 0x409cc7
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], ebx
test eax, eax
jne 0x409d03
lea ecx, [ebp + 8]
call fcn.00407526
cmp dword [ebp + 0x10], 0
je 0x409cc7
cmp byte [edi], 0x7b
jne 0x409cc7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x409cc7
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push edi
call fcn.00409842
mov esi, eax
test esi, esi
jl 0x409d14
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00407878
mov esi, eax
test esi, esi
jl 0x409d14
cmp byte [edi], 0x7d
jne 0x40987f
jmp 0x409d14
lea ecx, [ebp + 8]
call fcn.00407526
mov esi, 0x80020009
jmp 0x409d14
lea ecx, [ebp - 0x220]
call fcn.00407526
push esi
jmp 0x409cfb
lea ecx, [ebp - 0x220]
call fcn.00407526
push ebx
call fcn.004074d8
pop ecx
jmp 0x409d21
push eax
call fcn.004074d8
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00407526
lea ecx, [ebp - 0x220]
call fcn.00407526
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040b9d1
leave
ret 0x10