Function at 0x422e40
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x458d50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004316f5
mov ebp, dword [eax + 4]
call fcn.004048c0
mov esi, eax
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422e92
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422ec4
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 1
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422ef3
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ebx, 2
cmp esi, ebx
mov byte [esp + 0x30], bl
je 0x42304e
cmp esi, 3
je 0x42304e
add ebp, 0xe4
push ebp
lea ecx, [esp + 0x18]
call fcn.00402020
mov ebx, dword [esp + 0x14]
push ebx
push 0x80000001
mov ecx, edi
call fcn.00422cb0
push ebx
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x422f5d
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebp, ebp
cmp dword [edi + 0xd4], ebp
jle 0x423297
test ebp, ebp
jl 0x423049
cmp ebp, dword [edi + 0xd4]
jge 0x423049
mov ecx, dword [edi + 0xd0]
lea eax, [ecx + ebp*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004015c0
lea esi, [eax + 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
jl 0x422fb5
push str.PCL6
push esi
call fcn.00442d29
add esp, 8
test eax, eax
je 0x422fb5
sub eax, esi
jns 0x422fe1
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422fd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, dword [edi + 0xd4]
jl 0x422f6b
jmp 0x423297
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422ffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.PCL6
push str.PCL5e
lea ecx, [esp + 0x1c]
call fcn.004074d0
mov ebx, dword [esp + 0x14]
push ebx
push 0x80000001
mov ecx, edi
call fcn.00422cb0
push ebx
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x423297
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x423297
jmp fcn.00430460
lea esi, [ebp + 0xe4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402020
add ebp, 0xec
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402020
push str.Driver
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00401f00
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.00402020
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4230b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
push ebx
push 0x80000002
mov ecx, edi
call fcn.00422cb0
push ebx
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4230e6
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4230ef
call fcn.00412c30
test eax, eax
jne 0x42310d
mov esi, dword [esp + 0x18]
push esi
push 0x80000002
call fcn.0040ce00
add esp, 8
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebp, ebp
cmp dword [edi + 0xd4], ebp
jle 0x42322c
test ebp, ebp
jl 0x423049
cmp ebp, dword [edi + 0xd4]
jge 0x423049
mov ecx, dword [edi + 0xd0]
lea eax, [ecx + ebp*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004015c0
lea esi, [eax + 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
jl 0x423165
push str.PCL6
push esi
call fcn.00442d29
add esp, 8
test eax, eax
je 0x423165
sub eax, esi
jns 0x423191
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423181
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, dword [edi + 0xd4]
jl 0x42311b
jmp 0x42322c
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4231ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.PCL6
push str.PCL5e
lea ecx, [esp + 0x1c]
call fcn.004074d0
push str.PCL6
push str.PCL5e
lea ecx, [esp + 0x20]
call fcn.004074d0
mov ebx, dword [esp + 0x14]
push ebx
push 0x80000002
mov ecx, edi
call fcn.00422cb0
push ebx
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x423205
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x42320e
call fcn.00412c30
test eax, eax
jne 0x42322c
mov esi, dword [esp + 0x18]
push esi
push 0x80000002
call fcn.0040ce00
add esp, 8
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SOFTWARECANON_
push 0x80000002
call fcn.0040cf30
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
cmp eax, 1
jne 0x423255
push str.SOFTWARECANON_
push 0x80000002
call ebp
push ebx
push 0x80000001
mov ecx, edi
call fcn.00422cb0
push ebx
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x42327d
push ebx
push 0x80000001
call ebp
mov esi, dword [esp + 0x1c]
push esi
push 0x80000001
call fcn.0040ce00
add esp, 8
push esi
push 0x80000001
call ebp
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4232be
push str.SOFTWARECANON_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4232e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42332c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret