Function at 0x404f58
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x416984
call fcn.0040ef50
sub esp, 0x5c
push ebx
push esi
push edi
push str.CMainFrame::DeleteTargetKey___n
mov dword [ebp - 4], 1
call fcn.004024eb
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004013e3
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], ebx
call fcn.004013e3
mov edi, 0xf003f
lea ecx, [ebp + 0xc]
push edi
push ebx
push ebx
mov byte [ebp - 4], 3
call fcn.00401e04
push eax
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0040dc20
cmp dword [ebp - 0x40], ebx
mov byte [ebp - 4], 4
je 0x4051bd
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
call fcn.0040dce6
mov byte [ebp - 4], 5
mov esi, 0x420bb0
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00401618
push eax
call fcn.00401e9b
pop ecx
mov byte [ebp - 0xd], al
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00401563
cmp byte [ebp - 0xd], bl
je 0x4051bd
lea eax, [ebp + 0xc]
push 0x41c058
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040176a
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016fe
add esp, 0xc
push edi
push ebx
push ebx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00401e04
push eax
lea ecx, [ebp - 0x58]
push dword [ebp + 8]
call fcn.0040dc20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00401563
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00401563
cmp dword [ebp - 0x50], ebx
je 0x405172
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call fcn.00401595
lea eax, [ebp - 0x28]
push 0x100
push eax
lea eax, [ebp - 0x38]
push str.Name
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.0040df98
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.00401618
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.00401563
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00401563
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401e07
pop ecx
test al, al
pop ecx
jne 0x4050e2
lea eax, [ebp - 0x2c]
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401e04
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x405100
lea ecx, [ebp - 0x14]
call fcn.00401e04
push eax
lea ecx, [ebp - 0x48]
call fcn.0040de74
test eax, eax
je 0x405172
mov dword [ebp - 0x1c], 1
jmp 0x405108
push dword [ebp - 0x2c]
call sub.WINSPOOL.DRV_ClosePrinter
cmp dword [ebp - 0x1c], ebx
je 0x40514a
push edi
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion_run
push 0x80000001
lea ecx, [ebp - 0x68]
call fcn.0040dc20
cmp dword [ebp - 0x60], ebx
mov byte [ebp - 4], 0xd
je 0x40513c
lea ecx, [ebp - 0x18]
call fcn.00401e04
push eax
lea ecx, [ebp - 0x68]
call fcn.0040df79
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.0040dcd0
jmp 0x40514d
inc dword [ebp - 0x20]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0040dcd0
push ebx
lea eax, [ebp - 0x24]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push eax
call fcn.0040dce6
mov byte [ebp - 4], 5
jmp 0x404fda
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0040dcd0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040dcd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401563
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401563
xor eax, eax
jmp 0x4051fb
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040dcd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401563
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401563
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401563
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401563
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc