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

Disassembly:
mov eax, 0x417a15
call fcn.00410b5c
sub esp, 0x424
mov eax, dword [0x41d280]
and dword [ebp - 0x428], 0
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x424], ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x430], eax
jmp 0x405842
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x418ab8
push edi
mov dword [ebp - 0x42c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x405435
test ebx, ebx
je 0x4054c7
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x40589c
cmp dword [ebp + 0x10], 0
je 0x4054c7
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.00403d40
test eax, eax
pop ecx
pop ecx
jne 0x40585a
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403eb6
test eax, eax
je 0x40548a
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00404378
and dword [ebp + 8], 0
test ebx, ebx
je 0x4054bf
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x405894
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403f17
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00403a66
jmp 0x405689
lea ecx, [ebp + 8]
call fcn.00403a66
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4054f3
mov ecx, dword [ebp - 0x424]
and dword [ebp - 0x42c], eax
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x40589c
push 0x418af4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4055e6
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call fcn.00403db0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40589c
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
cmp esi, ebx
jl 0x40589c
cmp word [edi], 0x3d
jne 0x405862
cmp dword [ebp + 0x10], ebx
je 0x405583
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004050b9
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
jl 0x405897
mov byte [ebp - 4], bl
jmp 0x405802
cmp dword [ebp + 0x14], ebx
jne 0x4055d1
cmp dword [ebp - 0x42c], ebx
je 0x4055d1
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00403acb
cmp eax, ebx
jne 0x40588b
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4055c9
cmp eax, 2
jne 0x40588b
lea ecx, [ebp + 8]
call fcn.00403a66
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403f17
mov esi, eax
cmp esi, ebx
jmp 0x40584c
push 0x5c
push edi
call fcn.00403d40
test eax, eax
pop ecx
pop ecx
jne 0x405862
cmp dword [ebp + 0x10], eax
je 0x405696
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00403acb
test eax, eax
je 0x405652
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00403acb
test eax, eax
je 0x405652
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00403a7d
mov esi, eax
cmp esi, ebx
jne 0x405869
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x40589c
cmp word [edi], 0x3d
jne 0x405807
mov ecx, dword [ebp - 0x424]
push edi
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.004050b9
mov esi, eax
test esi, esi
jl 0x40589c
jmp 0x405807
cmp dword [ebp + 0x14], 0
jne 0x4056b4
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00403acb
mov ebx, eax
jmp 0x4056b7
push 2
pop ebx
test ebx, ebx
je 0x4056c2
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x40589c
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403f17
mov esi, eax
test esi, esi
jl 0x40589c
cmp word [edi], 0x7b
jne 0x405744
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp - 0x428]
push edi
call fcn.004053c5
mov esi, eax
test esi, esi
jge 0x40572e
cmp dword [ebp + 0x14], 0
je 0x40589c
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x40589c
cmp ebx, 2
mov eax, dword [ebp - 0x430]
mov dword [ebp + 0x14], eax
je 0x40584e
test ebx, ebx
je 0x405770
test eax, eax
jne 0x40584e
push ebx
call fcn.00403888
pop ecx
mov esi, eax
jmp 0x40589c
test eax, eax
je 0x4057c7
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
call fcn.00403ee2
test eax, eax
je 0x4057c7
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
call fcn.00403eb6
test eax, eax
je 0x40584e
cmp dword [ebp - 0x42c], 0
je 0x40584e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404378
jmp 0x40584e
lea ecx, [ebp - 0x428]
call fcn.00403a66
mov ebx, eax
test ebx, ebx
jne 0x405877
cmp dword [ebp - 0x42c], eax
je 0x40584e
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], ebx
test eax, eax
jne 0x40588b
lea ecx, [ebp + 8]
call fcn.00403a66
cmp dword [ebp + 0x10], 0
je 0x40584e
cmp word [edi], 0x7b
jne 0x40584e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40584e
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x428]
push edi
call fcn.004053c5
mov esi, eax
test esi, esi
jl 0x40589c
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00403db0
mov esi, eax
test esi, esi
jl 0x40589c
cmp word [edi], 0x7d
jne 0x405402
jmp 0x40589c
lea ecx, [ebp + 8]
call fcn.00403a66
mov esi, 0x80020009
jmp 0x40589c
lea ecx, [ebp - 0x428]
call fcn.00403a66
push esi
jmp 0x405883
lea ecx, [ebp - 0x428]
call fcn.00403a66
push ebx
call fcn.00403888
pop ecx
jmp 0x4058a9
push eax
call fcn.00403888
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00403a66
lea ecx, [ebp - 0x428]
call fcn.00403a66
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.004102ee
leave
ret 0x10