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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2254
call fcn.0041afb0
mov eax, dword [0x42e07c]
xor eax, esp
mov dword [esp + 0x2250], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.004047a1
mov esi, eax
cmp esi, edi
jl 0x40554c
cmp word [ebx], 0x7d
je 0x40554a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x428900
push ebx
mov dword [esp + 0x2c], 1
call esi
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x40518c
test edi, edi
je 0x405288
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x405288
push 0x5c
mov eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00404752
pop ecx
test eax, eax
jne 0x405604
push ebx
call fcn.00404c58
test eax, eax
je 0x4051fa
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004040d3
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp edi, esi
je 0x405284
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.00404cbc
mov esi, eax
test esi, esi
js 0x405539
and dword [esp + 0x2c], 0
cmp word [ebx], 0x7b
jne 0x405275
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x405275
mov ecx, dword [esp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push ebx
call fcn.004050fe
mov esi, eax
test esi, esi
js 0x405539
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
cmp word [ebx], 0x7d
jne 0x40515d
jmp 0x405539
mov dword [esp + 0x2c], esi
push 0x428910
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4052b1
and dword [esp + 0x24], eax
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
push 0x42893c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4053c1
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x258]
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
cmp word [ebx], 0x3d
jne 0x40561e
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40534a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x25c]
push eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.004048c7
mov esi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
cmp esi, edi
jl 0x40565f
mov dword [esp + 0x48], edi
jmp 0x405231
cmp dword [ebp + 0x14], edi
jne 0x4053b1
cmp dword [esp + 0x24], edi
je 0x4053b1
xor esi, esi
push 0x20006
push esi
push dword [esp + 0x24]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.00404024
cmp eax, esi
jne 0x405637
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x258]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40539e
cmp eax, 2
jne 0x405625
cmp edi, esi
je 0x4053ad
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.00404cbc
jmp 0x40526b
push 0x5c
mov eax, ebx
call fcn.00404752
pop ecx
test eax, eax
jne 0x40561e
cmp dword [ebp + 0x10], eax
je 0x405454
push 0x2001f
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.00404024
test eax, eax
je 0x405416
push 0x20019
push ebx
push dword [esp + 0x24]
call fcn.00404024
test eax, eax
je 0x405416
push ebx
push dword [esp + 0x20]
mov eax, edi
call fcn.00403fd0
test eax, eax
jne 0x405532
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
cmp word [ebx], 0x3d
jne 0x405231
mov ecx, dword [esp + 0xc]
push ebx
push 0
lea edx, [esp + 0x18]
call fcn.004048c7
mov esi, eax
test esi, esi
js 0x405539
jmp 0x405231
cmp dword [ebp + 0x14], 0
jne 0x405473
push 0x20019
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.00404024
mov dword [esp + 0x20], eax
jmp 0x40547b
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], 0
je 0x405489
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.0041567c
push eax
call fcn.00401026
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.00404cbc
mov esi, eax
test esi, esi
js 0x405539
cmp word [ebx], 0x7b
jne 0x40550c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40550c
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x18]
push ebx
call fcn.004050fe
mov esi, eax
test esi, esi
jns 0x4054fb
cmp dword [ebp + 0x14], 0
je 0x405539
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004047a1
mov esi, eax
test esi, esi
js 0x405539
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x14], eax
je 0x405275
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x405563
cmp dword [esp + 0x34], edi
jne 0x405275
call fcn.0040390f
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x40554a
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x225c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004144e4
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x34], edi
je 0x4055a5
push dword [esp + 0x10]
call fcn.00404c87
test eax, eax
je 0x4055a5
lea eax, [esp + 0x50]
push eax
call fcn.00404c58
test eax, eax
je 0x405275
cmp dword [esp + 0x24], edi
je 0x405275
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call fcn.004040d3
jmp 0x405275
push dword [esp + 0x10]
call fcn.00404c87
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x4055c8
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x405658
cmp dword [esp + 0x24], edi
je 0x405275
cmp dword [esp + 0x20], edi
jne 0x405275
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x405532
jmp 0x405275
cmp dword [esp + 0x10], esi
je 0x405614
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40554c
cmp dword [esp + 0x10], 0
jmp 0x405608
call fcn.0040390f
mov esi, eax
test edi, edi
je 0x405539
push edi
jmp 0x40564d
call fcn.0040390f
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x405539
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405539
call fcn.0040390f
mov esi, eax
cmp dword [esp + 0x10], edi
jmp 0x40553e