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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [ebp + 0x14]
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x18], eax
push edi
mov eax, ebx
mov dword [esp + 0x10], ecx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b8b
cmp word [ebx], 0x7d
je 0x419b89
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x4197b1
test edi, edi
je 0x41987f
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x419881
push 0x5c
mov eax, ebx
call fcn.0041950c
test eax, eax
pop ecx
jne 0x419c2e
push ebx
call fcn.0041a114
test eax, eax
je 0x4197fe
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.0041a140
cmp edi, esi
je 0x419881
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.0041a0cb
mov esi, eax
test esi, esi
jl 0x419b78
cmp word [ebx], 0x7b
jne 0x419870
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x419870
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push ebx
call fcn.00419744
mov esi, eax
test esi, esi
jl 0x419b78
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
cmp word [ebx], 0x7d
jne 0x419780
jmp 0x419b78
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4198ac
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
xor esi, esi
push 0x4646f0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x419998
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
cmp word [ebx], 0x3d
jne 0x419c48
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x419931
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.00419c92
mov esi, eax
cmp esi, edi
jge 0x41982c
cmp dword [esp + 0xc], edi
jmp 0x419b7d
cmp dword [ebp + 0x14], edi
jne 0x419988
cmp dword [esp + 0x14], edi
je 0x419988
lea eax, [esp + 0x14]
push eax
push 0x20006
push edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x419b71
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41997d
cmp eax, 2
jne 0x419c4f
test edi, edi
je 0x419988
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.0041a0cb
jmp 0x419866
push 0x5c
mov eax, ebx
call fcn.0041950c
test eax, eax
pop ecx
jne 0x419c2e
cmp dword [ebp + 0x10], esi
je 0x419a71
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jne 0x4199f0
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x4199e4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x419a3c
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jne 0x419a27
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x419a1b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x419a3c
push ebx
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
call fcn.0041c6c7
cmp eax, esi
jne 0x419c6a
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
cmp word [ebx], 0x3d
jne 0x41982c
push ebx
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.00419c92
jmp 0x419822
cmp dword [ebp + 0x14], esi
jne 0x419ab3
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x419aad
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x419aa5
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
jmp 0x419abb
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x419ac8
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00428cfa
push eax
call fcn.00415b37
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.0041a0cb
mov esi, eax
test esi, esi
jl 0x419b78
cmp word [ebx], 0x7b
jne 0x419b4b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x419b4b
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push ebx
call fcn.00419744
mov esi, eax
test esi, esi
jge 0x419b3a
cmp dword [ebp + 0x14], 0
je 0x419b78
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00419633
mov esi, eax
test esi, esi
jl 0x419b78
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x419870
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
je 0x419b94
cmp dword [esp + 0x1c], edi
jne 0x419870
call fcn.0041a25e
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x419b89
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x1c], edi
je 0x419bd6
push dword [esp + 0xc]
call fcn.0041a229
test eax, eax
je 0x419bd6
lea eax, [esp + 0x20]
push eax
call fcn.0041a114
test eax, eax
je 0x419870
cmp dword [esp + 0x14], edi
je 0x419870
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.0041a140
jmp 0x419870
push dword [esp + 0xc]
call fcn.0041a229
cmp dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
je 0x419bff
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [esp + 0xc], edi
jne 0x419c88
cmp dword [esp + 0x14], edi
je 0x419870
cmp dword [esp + 0x18], edi
jne 0x419870
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x419b71
jmp 0x419870
cmp dword [esp + 0xc], esi
je 0x419c3e
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x419b8b
cmp dword [esp + 0xc], 0
jmp 0x419c32
call fcn.0041a25e
test edi, edi
mov esi, eax
je 0x419b78
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x419b78
call fcn.0041a25e
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x419c81
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x419b8b
call fcn.0041a25e
jmp 0x419b8b