Function at 0x4015a9
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Parse pe header
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push ebx
push esi
xor ebx, ebx
push edi
mov word [ebp - 0x424], bx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
not esi
xor esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
push 0x104
xor esi, eax
lea eax, [ebp - 0x62c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40164a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40162e
push str.This_installer_is_for_Windows_2000_and_later_n
call fcn.00401077
pop ecx
mov dword [0x404408], 0xfd
jmp 0x40184e
push eax
push str.GetModuleFileName___failed____u_n
call fcn.00401077
pop ecx
pop ecx
mov dword [0x404408], 0xff
jmp 0x40184e
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [eax], 0x5a4d
jne 0x401820
cmp dword [ecx], 0x4550
jne 0x401820
movzx eax, word [ecx + 0x14]
lea ebx, [eax + ecx + 0x18]
movzx eax, word [ecx + 6]
xor edi, edi
test eax, eax
mov dword [ebp - 8], eax
jbe 0x4016af
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
push 8
mov edx, str..tsustub
call section..text
test eax, eax
je 0x4016a4
add dword [ebp - 4], 0x28
inc edi
cmp edi, dword [ebp - 8]
jb 0x401685
jmp 0x4016af
imul edi, edi, 0x28
mov ebx, dword [edi + ebx + 0x14]
test ebx, ebx
jne 0x4016cf
push str..tsustub
push str.Executable_has_no__s_section_n
call fcn.00401077
pop ecx
pop ecx
mov dword [0x404408], 0xfe
jmp 0x40184e
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4016f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPath___failed____u_n
jmp 0x401634
xor edi, edi
cmp word [ebp - 0x424], di
lea eax, [ebp - 0x424]
je 0x40170e
inc eax
inc eax
cmp word [eax], di
jne 0x401707
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.Tsu_08lX.dll
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0xffffffffffffffff
push 0xffff000f
push ebx
lea eax, [ebp - 0x62c]
push eax
call fcn.004010a9
cmp eax, edi
je 0x401763
lea ecx, [ebp - 0x424]
push ecx
push eax
push str.Error__u_while_extracting_TSU.DLL_to__ls_n
call fcn.00401077
add esp, 0xc
mov dword [0x404408], 0xf9
jmp 0x40184e
push 8
push edi
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4017a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x424]
push ecx
push eax
push str.Error__u_while_loading_TSU.DLL__ls_n
call fcn.00401077
add esp, 0xc
mov dword [0x404408], 0xf9
jmp 0x401835
push str._TsuMainW_8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4017cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x424]
push ecx
push eax
push str.Error__u_while_retrieving_entry_point_from__ls_n
jmp 0x40178d
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x20
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.0040145d
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0xc], eax
jne 0x4017f6
xor eax, eax
jmp 0x401802
cmp word [ebx], di
je 0x401802
inc eax
inc eax
cmp word [eax], di
jne 0x4017fb
lea ecx, [ebp - 0x62c]
push ecx
push str.__d:__s_
push eax
call esi
add esp, 0xc
push edi
push ebx
call dword [ebp - 8]
mov dword [0x404408], eax
jmp 0x401835
push str.Executable_has_no_valid_MZ_signature_n
call fcn.00401077
pop ecx
mov dword [0x404408], 0xfe
cmp dword [ebp - 4], 0
je 0x40184e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x40183b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [ebp - 0x424], 0
je 0x4018a8
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4018a8
and eax, 0xfffffffa
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xa
pop esi
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4018a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4018a8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x40187e
mov ecx, dword [ebp - 0xc]
call fcn.004018ce
push dword [0x404408]
call dword [sym.imp.KERNEL32.dll_ExitProcess]