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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x416450]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x18
mov eax, 0x40ffd9
call fcn.004063d0
mov eax, dword [ebp + 0x420]
mov edi, dword [ebp + 0x41c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x428]
and dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
jmp 0x40363e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40325a
test ebx, ebx
je 0x4032eb
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x4036a3
cmp dword [ebp + 0x424], 0
je 0x4032eb
and dword [ebp - 0x14], 0
push 0x5c
push edi
call fcn.0040169c
test eax, eax
pop ecx
pop ecx
jne 0x403656
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040180f
test eax, eax
je 0x4032ac
mov eax, dword [ebp - 0x20]
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00401c25
and dword [ebp - 0x14], 0
test ebx, ebx
je 0x4032e3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x403665
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00401870
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040137f
test esi, esi
jl 0x4036a3
jmp 0x403606
lea ecx, [ebp - 0x14]
call fcn.0040137f
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403311
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x4036a3
push 0x4113d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4033f2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.0040170c
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4036a3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040170c
mov esi, eax
cmp esi, ebx
jl 0x4036a3
cmp word [edi], 0x3d
jne 0x40365e
cmp dword [ebp + 0x424], ebx
je 0x403395
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00402efb
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
jl 0x40369e
mov byte [ebp - 4], bl
jmp 0x403601
cmp dword [ebp + 0x428], ebx
jne 0x4033e0
cmp dword [ebp - 0x1c], ebx
je 0x4033e0
push 0x20006
push ebx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.004013e4
cmp eax, ebx
jne 0x40366a
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4033d8
cmp eax, 2
jne 0x40366a
lea ecx, [ebp - 0x14]
call fcn.0040137f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00401870
mov esi, eax
cmp esi, ebx
jmp 0x403648
push 0x5c
push edi
call fcn.0040169c
test eax, eax
pop ecx
pop ecx
jne 0x40365e
cmp dword [ebp + 0x424], eax
je 0x403487
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.004013e4
test eax, eax
je 0x403454
push 0x20019
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.004013e4
test eax, eax
je 0x403454
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.00401396
mov esi, eax
cmp esi, ebx
jne 0x403676
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x4036a3
cmp word [edi], 0x3d
jne 0x403606
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00402efb
mov esi, eax
jmp 0x4032d6
cmp dword [ebp + 0x428], 0
jne 0x4034a5
push 0x20019
push edi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.004013e4
mov ebx, eax
jmp 0x4034a8
push 2
pop ebx
test ebx, ebx
je 0x4034b6
mov dword [ebp + 0x428], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.004058fa
push eax
call fcn.004011b2
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x4036a3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00401870
mov esi, eax
test esi, esi
jl 0x4036a3
cmp word [edi], 0x7b
jne 0x403545
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403545
push dword [ebp + 0x428]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x18]
push edi
call fcn.004031de
mov esi, eax
test esi, esi
jge 0x403532
cmp dword [ebp + 0x428], 0
je 0x4036a3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x4036a3
cmp ebx, 2
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x428], eax
je 0x40364a
test ebx, ebx
je 0x403571
test eax, eax
jne 0x40364a
push ebx
call fcn.004012b0
pop ecx
mov esi, eax
jmp 0x4036a3
test eax, eax
je 0x4035b9
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.0040183b
test eax, eax
je 0x4035b9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x208]
push eax
call fcn.0040180f
test eax, eax
je 0x40364a
cmp dword [ebp - 0x1c], 0
je 0x40364a
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401c25
jmp 0x40364a
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.0040183b
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.0040137f
mov ebx, eax
test ebx, ebx
jne 0x403687
cmp dword [ebp - 0x1c], eax
je 0x40364a
cmp dword [ebp - 0x14], eax
jne 0x40364a
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x1c], ebx
test eax, eax
jne 0x403692
lea ecx, [ebp - 0x1c]
call fcn.0040137f
cmp dword [ebp + 0x424], 0
je 0x40364a
cmp word [edi], 0x7b
jne 0x40364a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40364a
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x424]
push dword [ebp - 0x18]
push edi
call fcn.004031de
mov esi, eax
test esi, esi
jl 0x4036a3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040170c
mov esi, eax
test esi, esi
jl 0x4036a3
cmp word [edi], 0x7d
jne 0x40322a
jmp 0x4036a3
lea ecx, [ebp - 0x14]
call fcn.0040137f
mov esi, 0x80020009
jmp 0x4036a3
lea ecx, [ebp - 0x14]
jmp 0x40369e
push eax
call fcn.004012b0
pop ecx
lea ecx, [ebp - 0x14]
jmp 0x40369c
lea ecx, [ebp - 0x18]
call fcn.0040137f
push esi
call fcn.004012b0
pop ecx
jmp 0x4036ad
lea ecx, [ebp - 0x18]
call fcn.0040137f
push ebx
jmp 0x40367f
push eax
call fcn.004012b0
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040137f
lea ecx, [ebp - 0x18]
call fcn.0040137f
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 + 0x410]
xor ecx, ebp
call fcn.00405c36
add ebp, 0x414
leave
ret 0x10