Function at 0x408ad0
Capabilities:
Create process on windows
Delete file
Get comspec environment variable
Move file
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x740
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x130]
mov ecx, dword [esi + 0x12c]
push eax
push ecx
push str.Suicide:_Entered..._pid__0x_1_lx___pExecutable___2_s_._n
push 5
call fcn.00403750
push str.Suicide:_OpenProcess._n
push 5
call fcn.00403750
mov edx, dword [esi + 0x12c]
add esp, 0x18
push edx
xor ebx, ebx
push ebx
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x408b65
push str.Suicide:_Parent_process_is_alive._Wait_the_process_exit._n
push 5
call fcn.00403750
add esp, 8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Suicide:_OpenProcess_failed._0x_1_lx___Parent_process_is_not_alive__Skipped._n
push 2
call fcn.00403750
add esp, 0xc
push str.Suicide:_Delete_Uninstaller._n
push 5
call fcn.00403750
add esp, 8
push ebx
mov ecx, esi
call fcn.00407940
test eax, eax
jne 0x408bd2
push str.Suicide:_Delete_Uninstaller_failed._n
push 2
call fcn.00403750
add esp, 8
push str.Suicide:_Exit_function._n
push 5
call fcn.00403750
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x6f4]
call fcn.00429620
lea eax, [ebp - 0x6f8]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6f8], ebx
call fcn.0051f3e2
add esp, 4
test eax, eax
jne 0x408c18
mov ecx, dword [ebp - 0x6f8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp dword [esi + 0x124], ebx
je 0x408c82
push str.Suicide:_in_restart_deletion_mode._n
push 5
call fcn.00403750
lea edx, [ebp - 0x218]
push edx
push str.Suicide:_MoveFileEx_delte_after_restart._szSelf___1_n
push 5
call fcn.00403750
add esp, 0x14
push 4
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x6f4]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00429500
mov eax, esi
jmp 0x408bb6
push str.Suicide:_in_standard_deletion_mode._n
push 5
call fcn.00403750
add esp, 8
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push str._COMSPEC_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.__c_del
lea edx, [ebp - 0x420]
push edx
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call esi
push str.___nul
lea edx, [ebp - 0x420]
push edx
call esi
push 0x44
lea eax, [ebp - 0x74c]
push ebx
push eax
call fcn.0051eb70
lea edx, [ebp - 0x420]
push edx
xor eax, eax
xor ecx, ecx
push str.Suicide:_szCommandLine___1._n
push 5
mov dword [ebp - 0x708], eax
mov dword [ebp - 0x704], eax
mov dword [ebp - 0x700], eax
mov dword [ebp - 0x6fc], eax
mov dword [ebp - 0x74c], 0x44
mov dword [ebp - 0x720], 1
mov word [ebp - 0x71c], cx
call fcn.00403750
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0x18
push 0x100
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea eax, [ebp - 0x708]
push eax
lea ecx, [ebp - 0x74c]
push ecx
push 0
push 0
push 0xc
push 0
push 0
push 0
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408e18
push str.Suicide:_ShellExecuteEx_succeeded._n
push 5
call fcn.00403750
mov eax, dword [ebp - 0x708]
add esp, 8
push 0x40
push eax
call esi
mov ecx, dword [ebp - 0x704]
push 0xfffffffffffffff1
push ecx
call edi
mov edx, dword [ebp - 0x704]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x704]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x708]
push ecx
call esi
push 0
lea edx, [ebp - 0x218]
push edx
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x6f4]
mov dword [ebp - 4], 0xffffffff
call fcn.00429500
mov eax, 1
jmp 0x408bb6
push str.Suicide:_ShellExecuteEx_failed._n
push 5
call fcn.00403750
add esp, 8
push 0x20
call ebx
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 4
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x6f4]
mov dword [ebp - 4], 0xffffffff
call fcn.00429500
jmp 0x408bb4