Function at 0x408180
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 0x5561bb
mov eax, dword fs:[0]
push eax
sub esp, 0x720
mov eax, dword [0x5d7b20]
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 + 0x108]
mov ecx, dword [esi + 0x104]
push eax
push ecx
push str.Suicide:_Entered..._pid__0x_1_lx___pExecutable___2_s_._n
push 5
call fcn.00403ab0
push str.Suicide:_OpenProcess._n
push 5
call fcn.00403ab0
mov edx, dword [esi + 0x104]
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 0x408215
push str.Suicide:_Parent_process_is_alive._Wait_the_process_exit._n
push 5
call fcn.00403ab0
add esp, 8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40822b
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.00403ab0
add esp, 0xc
push str.Suicide:_Delete_Uninstaller._n
push 5
call fcn.00403ab0
add esp, 8
push ebx
mov ecx, esi
call fcn.00406de0
test eax, eax
jne 0x408282
push str.Suicide:_Delete_Uninstaller_failed._n
push 2
call fcn.00403ab0
add esp, 8
push str.Suicide:_Exit_function._n
push 5
call fcn.00403ab0
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.0053e1ad
mov esp, ebp
pop ebp
ret
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x6d4]
call fcn.004489d0
lea eax, [ebp - 0x6d8]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6d8], ebx
call fcn.0053f050
add esp, 4
test eax, eax
jne 0x4082c8
mov ecx, dword [ebp - 0x6d8]
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 + 0xfc], ebx
je 0x408332
push str.Suicide:_in_restart_deletion_mode._n
push 5
call fcn.00403ab0
lea edx, [ebp - 0x218]
push edx
push str.Suicide:_MoveFileEx_delte_after_restart._szSelf___1_n
push 5
call fcn.00403ab0
add esp, 0x14
push 4
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x6d4]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
mov eax, esi
jmp 0x408266
push str.Suicide:_in_standard_deletion_mode._n
push 5
call fcn.00403ab0
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 - 0x72c]
push ebx
push eax
call fcn.0053e550
lea edx, [ebp - 0x420]
push edx
xor eax, eax
xor ecx, ecx
push str.Suicide:_szCommandLine___1._n
push 5
mov dword [ebp - 0x6e8], eax
mov dword [ebp - 0x6e4], eax
mov dword [ebp - 0x6e0], eax
mov dword [ebp - 0x6dc], eax
mov dword [ebp - 0x72c], 0x44
mov dword [ebp - 0x700], 1
mov word [ebp - 0x6fc], cx
call fcn.00403ab0
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 - 0x6e8]
push eax
lea ecx, [ebp - 0x72c]
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 0x4084c8
push str.Suicide:_ShellExecuteEx_succeeded._n
push 5
call fcn.00403ab0
mov eax, dword [ebp - 0x6e8]
add esp, 8
push 0x40
push eax
call esi
mov ecx, dword [ebp - 0x6e4]
push 0xfffffffffffffff1
push ecx
call edi
mov edx, dword [ebp - 0x6e4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x6e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x6e8]
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 - 0x6d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
mov eax, 1
jmp 0x408266
push str.Suicide:_ShellExecuteEx_failed._n
push 5
call fcn.00403ab0
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 - 0x6d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
jmp 0x408264