Function at 0x411b20
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x457670
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
call fcn.004316f5
mov ebp, dword [eax + 4]
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], al
lea eax, [ebp + 0xf8]
push 0xf003f
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], eax
mov eax, dword [eax]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411bad
xor eax, eax
jmp 0x411dff
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x2c]
push edx
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 3
call edi
cmp eax, ebx
jne 0x411c4e
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebx
push esi
push edx
call edi
cmp eax, ebx
jne 0x411c4e
movzx eax, byte [esp + 0x20]
cdq
mov edi, 0xa
idiv edi
xor ecx, ecx
cmp eax, ebx
je 0x411c11
add al, 0x30
mov byte [esp + 0x14], al
mov ecx, 1
push str.Printer
lea eax, [esp + 0x44]
add dl, 0x30
push eax
mov byte [esp + ecx + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x1c], 1
jmp 0x411c52
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], 1
jne 0x411dfb
call fcn.004317f7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411c82
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 dword [esp + 0x5c], ebx
call fcn.004317f7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411cb0
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
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 1
call fcn.004027b0
push eax
add ebp, 0xf4
lea edx, [esp + 0x38]
push ebp
mov bl, 2
push edx
mov byte [esp + 0x68], bl
call fcn.0040ef70
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 3
call fcn.00402020
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402020
mov ebx, dword [esp + 0x28]
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 edi, dword [esp + 0x24]
push edi
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x411db6
push edi
push 0x80000002
call esi
push str.SOFTWARECANON_
push 0x80000002
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x411db6
push str.SOFTWARECANON_
push 0x80000002
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x5c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0044027a
add esp, 0x4c
ret