Function at 0x423f80
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x458f88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423fc1
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 + 0x40], 0
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423ff3
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 + 0x40], 1
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424022
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 + 0x28], eax
mov byte [esp + 0x40], 2
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424051
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 + 0x24], eax
mov byte [esp + 0x40], 3
call fcn.004316f5
mov ebx, dword [esp + 0x4c]
mov esi, dword [eax + 4]
push ebx
lea ecx, [esp + 0x20]
call fcn.004027b0
push 5
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 4
call fcn.004072d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 5
call fcn.00402020
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4240c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [esp + 0x30]
call fcn.004027b0
mov byte [esp + 0x40], 6
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4240ee
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 + 0x20], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x54], esp
mov edi, esp
push eax
mov byte [esp + 0x4c], 7
call fcn.004015c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00410300
add esp, 8
call fcn.004048c0
mov ebp, dword [esp + 0x48]
push ebp
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.004027b0
cmp edi, 2
mov byte [esp + 0x40], 8
je 0x424538
cmp edi, 3
je 0x424538
push ebp
lea ecx, [esp + 0x50]
call fcn.004027b0
mov eax, dword [esp + 0x4c]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x40], 0xb
jle 0x4242bc
push 0x5c
push eax
call fcn.00442df6
add esp, 8
test eax, eax
je 0x4242bc
mov ecx, dword [esp + 0x4c]
sub eax, ecx
cmp eax, 0xffffffff
je 0x4242bc
mov eax, dword [ecx - 0xc]
add eax, 0xffffffff
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x54]
call fcn.004072d0
push eax
add esi, 0xe4
lea eax, [esp + 0x4c]
push esi
mov bl, 0xc
push eax
mov byte [esp + 0x4c], bl
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0xd
call fcn.00402020
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4241fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42421f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402020
mov edi, dword [esp + 0x14]
push edi
push 0x80000001
call fcn.0040ce00
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push edi
push 0x80000001
call ebx
push 0x5c
push edi
call fcn.00440e55
add esp, 8
test eax, eax
jne 0x42425d
or eax, 0xffffffff
jmp 0x42425f
sub eax, edi
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407350
mov esi, dword [esp + 0x48]
push esi
push 0x80000001
mov byte [esp + 0x48], 0xe
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x424292
push esi
push 0x80000001
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x40], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424369
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x424369
push ebp
lea ecx, [esp + 0x54]
call fcn.004027b0
push eax
lea ecx, [esi + 0xe0]
push ecx
lea edx, [esp + 0x50]
mov bl, 0xf
push edx
mov byte [esp + 0x4c], bl
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0x10
call fcn.00402020
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424314
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xe4
push esi
lea ecx, [esp + 0x1c]
call fcn.00402020
mov esi, dword [esp + 0x14]
push esi
push 0x80000001
call fcn.0040ce00
add esp, 8
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, esi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42438e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
push ebp
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4243d6
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebp
push 0x80000001
call esi
push str.SOFTWARECANON_
push 0x80000001
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4243d6
push str.SOFTWARECANON_
push 0x80000001
call esi
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.004015c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040fc70
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x40], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42441f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x40], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42448e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4244b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4244d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4244f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42451d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
mov ecx, dword [esp + 0x1c]
push 0x45d77c
push ecx
call fcn.00440d82
add esp, 8
test eax, eax
je 0x42458e
mov edx, dword [esp + 0x1c]
push 0x45d77c
push edx
call fcn.00440d82
add esp, 8
test eax, eax
je 0x42457c
mov eax, dword [esi + 0xb8]
push eax
mov eax, dword [esp + 0x54]
push eax
call fcn.00413470
add esp, 8
test eax, eax
jge 0x42458e
push ebx
call fcn.00411b20
mov edi, dword [esp + 0x18]
add esp, 4
jmp 0x42438e
push ebp
lea ecx, [esp + 0x4c]
call fcn.004027b0
push eax
lea ecx, [esi + 0xe0]
push ecx
lea edx, [esp + 0x54]
mov bl, 9
push edx
mov byte [esp + 0x4c], bl
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0xa
call fcn.00402020
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4245e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x40], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42460b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xe4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402020
lea edx, [esi + 0xf0]
push edx
lea ecx, [esp + 0x2c]
call fcn.00402020
add esi, 0xec
push esi
lea ecx, [esp + 0x28]
call fcn.00402020
mov ebx, dword [esp + 0x14]
push ebx
push 0x80000002
call fcn.0040ce00
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push ebx
push 0x80000002
call esi
mov ebp, dword [esp + 0x18]
push ebp
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4246db
push ebp
push 0x80000002
call esi
mov edi, dword [esp + 0x28]
push edi
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x424699
push edi
push 0x80000002
call esi
mov edi, dword [esp + 0x24]
push edi
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4246b8
push edi
push 0x80000002
call esi
push str.SOFTWARECANON_
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x4246db
push str.SOFTWARECANON_
push 0x80000002
call esi
push ebx
push 0x80000001
call fcn.0040ce00
add esp, 8
push ebx
push 0x80000001
call esi
mov edi, dword [esp + 0x14]
jmp 0x424392