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

Disassembly:
push 0xffffffffffffffff
push 0x448200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
call fcn.0044608e
mov ebp, dword [eax + 4]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x44], eax
xor ecx, ecx
mov word [esp + 0xc], cx
lea eax, [ebp + 0xf0]
push 0xf003f
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x12], cl
mov dword [esp + 0x38], eax
mov eax, dword [eax]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40dfdf
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 3
call edi
cmp eax, ebx
jne 0x40e086
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push esi
push eax
call edi
cmp eax, ebx
jne 0x40e086
movzx eax, byte [esp + 0x24]
cdq
mov edi, 0xa
idiv edi
xor ecx, ecx
cmp eax, ebx
je 0x40e049
add al, 0x30
mov byte [esp + 0x10], al
mov ecx, 1
add dl, 0x30
mov byte [esp + ecx + 0x10], dl
push str.Printer
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x18], 1
jmp 0x40e08a
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 1
jne 0x40e1fd
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ebx
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 1
call fcn.00402470
push eax
add ebp, 0xec
lea ecx, [esp + 0x34]
push ebp
mov bl, 2
push ecx
mov byte [esp + 0x60], bl
call fcn.0040c1f0
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 3
call fcn.00401e30
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x54], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e129
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e14c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
call fcn.00401e30
mov ebx, dword [esp + 0x28]
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a010
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [esp + 0x2c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x40e1bc
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x40e1bc
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret