Function at 0x40a083
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Delete file
Get common file path
Get comspec environment variable
Move file
Query environment variable
Resume thread
Self delete

Disassembly:
push 0xf84
mov eax, 0x44937d
call fcn.004386f7
mov esi, ecx
push 0x44dda8
mov ebx, str.CDelDrvApp::Suicide
push ebx
push 5
call fcn.00405a24
push dword [esi + 0x398]
push dword [esi + 0x394]
push str.Entered..._pid__0x_1_lx___pExecutable___2_s_._n
push ebx
push 5
call fcn.00405a24
add esp, 0x20
push dword [esi + 0x394]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x40a108
push str.OpenProcess:Parent_process_is_alive._Wait_the_process_exit._n
push str.CDelDrvApp::Suicide
push 5
call fcn.00405a24
add esp, 0xc
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
mov edi, str.CDelDrvApp::Suicide
jmp 0x40a124
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed._0x_1_lx___Parent_process_is_not_alive__Skipped._n
mov edi, str.CDelDrvApp::Suicide
push edi
push 2
call fcn.00405a24
add esp, 0x10
push str.Delete_Uninstaller._n
push edi
push 5
call fcn.00405a24
add esp, 0xc
mov ecx, esi
push 0
call fcn.0040a595
test eax, eax
jne 0x40a165
push str.Delete_Uninstaller_failed._n
push edi
push 2
call fcn.00405a24
push 0x44ddc4
push edi
push 5
call fcn.00405a24
add esp, 0x18
xor eax, eax
jmp 0x40a584
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0xc50], 0
xor eax, eax
mov dword [ebp - 0xc4c], 7
mov word [ebp - 0xc60], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0xf38]
call fcn.004264d8
lea eax, [ebp - 0x634]
push eax
push 0x105
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a1f7
lea eax, [ebp - 0x634]
push eax
push str.szTempW___1_ls_._n
push edi
push 5
call fcn.00405a24
add esp, 0x10
cmp word [ebp - 0x634], 0
jne 0x40a1d7
xor eax, eax
jmp 0x40a1e4
lea eax, [ebp - 0x634]
push eax
call fcn.0043860f
pop ecx
push eax
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0xc60]
call fcn.00401db2
lea eax, [ebp - 0xf3c]
push eax
call fcn.0043a0c1
mov edi, 0x101
push edi
lea eax, [ebp - 0xa3c]
push eax
push edi
lea eax, [ebp - 0x838]
push eax
push 0x105
lea eax, [ebp - 0xc48]
push eax
push 4
pop eax
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xf3c]
call fcn.0043967a
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0x838]
push edi
push eax
call fcn.004391ef
add esp, 0x34
cmp dword [esi + 0x388], 0
je 0x40a314
push str.in_restart_deletion_mode._n
mov ebx, str.CDelDrvApp::Suicide
push ebx
push 5
call fcn.00405a24
push 0x44ea34
add edi, 3
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00439aca
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004391ef
lea eax, [ebp - 0x220]
push eax
push str.MoveFileEx_delete_after_restart._szSelf___1_s__n
push ebx
push 5
call fcn.00405a24
cmp dword [ebp - 0xc4c], 8
lea eax, [ebp - 0xc60]
cmovae eax, dword [ebp - 0xc60]
push eax
push str.MoveFileEx_changeDir_strFilePathW___1_ls_._n
push ebx
push 5
call fcn.00405a24
add esp, 0x44
cmp dword [ebp - 0xc4c], 8
lea eax, [ebp - 0xc60]
cmovae eax, dword [ebp - 0xc60]
push eax
lea ecx, [ebp - 0xf38]
call fcn.004265bd
push 4
pop eax
push eax
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xf38]
mov esi, eax
call fcn.00426b97
jmp 0x40a564
push str.in_standard_deletion_mode._n
push str.CDelDrvApp::Suicide
push 5
call fcn.00405a24
add esp, 0xc
cmp dword [0x468e84], 0
push 0xc
pop esi
push 4
pop eax
cmovne esi, eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x428]
push eax
push str._COMSPEC_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x44ea34
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00439aca
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004391ef
push str.__c_del
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004391ef
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004391ef
push str.___nul
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004391ef
push 0x44
pop edi
push edi
lea eax, [ebp - 0xf90]
push 0
push eax
call fcn.00438dc0
add esp, 0x48
lea eax, [ebp - 0xf4c]
push 0x10
push 0
push eax
call fcn.00438dc0
xor eax, eax
mov word [ebp - 0xf60], ax
lea eax, [ebp - 0x428]
push eax
push str.szCommandLine___1_s_._n
push str.CDelDrvApp::Suicide
push 5
mov dword [ebp - 0xf90], edi
mov dword [ebp - 0xf64], 1
call fcn.00405a24
add esp, 0x1c
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [ebp - 0xc4c], 8
lea eax, [ebp - 0xc60]
cmovae eax, dword [ebp - 0xc60]
push eax
push str.CreateProcess_changeDir_strFilePathW___1_ls_._n
push str.CDelDrvApp::Suicide
push 5
call fcn.00405a24
add esp, 0x10
cmp dword [ebp - 0xc4c], 8
lea eax, [ebp - 0xc60]
cmovae eax, dword [ebp - 0xc60]
push eax
lea ecx, [ebp - 0xf38]
call fcn.004265bd
lea eax, [ebp - 0xf4c]
push eax
xor ecx, ecx
lea eax, [ebp - 0xf90]
push eax
push ecx
push ecx
push esi
push ecx
push ecx
push ecx
lea eax, [ebp - 0x428]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a529
push str.CreateProcess_succeeded._n
push str.CDelDrvApp::Suicide
push 5
call fcn.00405a24
add esp, 0xc
push 0x40
push dword [ebp - 0xf4c]
call edi
push 0xfffffffffffffff1
push dword [ebp - 0xf48]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0xf48]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateProcess_Thread_Suspend_count___1_d___GetLastError_0x_2_lx__._n
push str.CDelDrvApp::Suicide
push 4
pop esi
push esi
call fcn.00405a24
add esp, 0x14
push dword [ebp - 0xf48]
call ebx
push dword [ebp - 0xf4c]
call ebx
push 0
lea eax, [ebp - 0x220]
push eax
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [ebp - 0xf38]
call fcn.00426b97
xor esi, esi
inc esi
jmp 0x40a564
push str.ShellExecuteEx_failed._n
push str.CDelDrvApp::Suicide
push 5
call fcn.00405a24
add esp, 0xc
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [ebp - 0xf38]
call fcn.00426b97
xor esi, esi
lea ecx, [ebp - 0xf38]
mov byte [ebp - 4], 0
call fcn.00426564
push 0
push 1
lea ecx, [ebp - 0xc60]
call fcn.00401ba5
mov eax, esi
call fcn.004386a6
ret