Function at 0x40a010
Capabilities:
Check if file exists
Delete file
Delete registry key
Move file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf210
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4f7458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
push str.ProcessCtr.sys
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a0d9
push 0x4caa50
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.00402470
push 0x4caa50
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x18]
call fcn.00402470
push str.ProcessCtr64.sys
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004118e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402470
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a198
push 0x4caa50
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x20]
call fcn.00402470
push 0x4caa50
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x24]
call fcn.00402470
mov ecx, dword [ebp - 0x8c]
call fcn.004030c0
test eax, eax
je 0x40a1e2
push str.ProcessCtr64.sys
mov edx, dword [ebp - 0x8c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
push 4
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x28]
call fcn.00402470
jmp 0x40a21b
push str.ProcessCtr.sys
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
push 4
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x2c]
call fcn.00402470
push str.SYSTEMCurrentControlSet_servicesProcessCtr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str._Update_:_Deleting_Old_Process_Ctr_is_done.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret