Function at 0x40a5e9
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
mov eax, 0x4194f9
call fcn.0040f528
sub esp, 0x118
push ebx
push esi
push edi
push str.CMainFrame::ChkDelPrn_:_start
mov esi, ecx
call fcn.004028a7
pop ecx
lea eax, [ebp - 0x10]
lea edi, [esi + 0x118]
push eax
mov ecx, edi
call fcn.00407fa3
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00407c9a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00407fe0
push eax
push str.PrinterName
call fcn.00402932
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00407659
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407659
mov ecx, edi
call fcn.00407f85
lea ecx, [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
call fcn.00407f85
mov ecx, dword [ebp - 0x14]
cmp word [ecx], bx
jne 0x40a7ec
cmp word [eax], bx
jne 0x40a7ec
xor eax, eax
inc eax
cmp dword [esi + 0x47c], eax
je 0x40a7f3
push str.enter_:_EP_OpenPrinter
mov dword [ebp - 0x1c], ebx
call fcn.004028a7
pop ecx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00407f8d
push eax
call fcn.00401b2e
push str.exit_:_EP_OpenPrinter
mov dword [ebp - 0x10], eax
call fcn.004028a7
push dword [ebp - 0x10]
push str.result
call fcn.00402a6e
add esp, 0x18
cmp dword [ebp - 0x10], 1
jne 0x40a6e6
push dword [ebp - 0x1c]
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
inc eax
jmp 0x40a7f3
lea eax, [esi + 0x798]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
cmp eax, ebx
je 0x40a707
push eax
push dword [esi + 0x430]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
push str.Delete_Reg_HKCU_run
call fcn.004028a7
pop ecx
mov ecx, edi
call fcn.00407f7d
cmp byte [eax], bl
mov ecx, edi
jne 0x40a722
mov ecx, dword [ebp - 0x20]
call fcn.00407f7d
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.00407f7d
push dword [ebp - 0x10]
xor ecx, ecx
cmp byte [eax], bl
mov edi, 0x41a744
sete cl
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 0x14], ecx
call fcn.00408a7c
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
jne 0x40a782
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0040eef0
push 0x104
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00406858
add esp, 0x1c
cmp dword [ebp - 0x14], ebx
mov eax, str.SoftwareEPSONSTM3STMDataEPNTarget
jne 0x40a7bd
mov eax, str.SoftwareEPSONSTM3STMDataEPLTarget
lea ecx, [ebp - 0x18]
push ecx
push 0xf003f
push ebx
push eax
push esi
call edi
test eax, eax
jne 0x40a7e8
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40a7f3
mov ecx, esi
call fcn.00409c60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret