Function at 0x4010f0
Capabilities:
Delete file
Get common file path
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c3b
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00403b00
mov eax, dword [0x407018]
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
cmp dword [ebp + 8], 1
mov esi, dword [ebp + 0xc]
jg 0x401133
or eax, 0xffffffff
jmp 0x401554
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push str.Install
push eax
call edi
add esp, 8
test eax, eax
jne 0x401592
call fcn.00402450
mov esi, eax
push str.Remove_Startup_Run
call fcn.004024f0
mov edi, dword [sym.imp.Alb_ASUSLib.dll__Setup_DeleteRun_4]
add esp, 4
push str.ACMON
call edi
push str.Persistence
call edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xe46]
push ecx
mov word [ebp - 0xe48], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0xc3e]
push eax
mov word [ebp - 0xc40], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x626]
push edx
mov word [ebp - 0x628], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call sub.MSVCR100.dll_memset
add esp, 0x48
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xe48]
push str._sACMON.exe
push ecx
call edi
add esp, 0xc
call dword [sym.imp.Alb_ASUSLib.dll__IsWow64_0]
test eax, eax
je 0x401278
push str.SOFTWAREWow6432NodeASUSASUS_Splendid_
push 0x4047d4
lea edx, [ebp - 0x628]
push edx
jmp 0x401289
push str.SOFTWAREASUSASUS_Splendid_
push 0x4047d4
lea eax, [ebp - 0x628]
push eax
call edi
add esp, 0xc
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
mov dword [ebp - 0x105c], edi
call fcn.00402290
cmp eax, 1
je 0x4012bd
call fcn.00402050
call dword [0x407408]
test al, al
je 0x401570
push str.Add_Task
call fcn.004024f0
add esp, 4
test edi, edi
js 0x401314
lea ecx, [ebp - 0x1058]
push ecx
mov edi, str.PT3M
call section..text
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4012f0
mov eax, dword [eax]
jmp 0x4012f2
xor eax, eax
push eax
lea edx, [ebp - 0xe48]
push edx
call fcn.00402820
add esp, 8
lea ebx, [ebp - 0x1058]
mov dword [ebp - 4], 0xffffffff
call fcn.004010a0
mov ebx, dword [sym.imp.Alb_ASUSLib.dll__my_SetRegKey_String_20]
push 1
push 0x404860
push str.IsASUS
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push str.Get_icm_file_name
call fcn.004024f0
add esp, 4
call fcn.00401d80
lea ecx, [ebp - 0xc40]
push ecx
mov dword [ebp - 0x1058], eax
call dword [sym.imp.GLCDdll.dll__GetAcfFilename_4]
lea edx, [ebp - 0xc40]
push edx
mov edi, eax
call fcn.004024f0
add esp, 4
push 1
test edi, edi
je 0x401383
push 0x404860
push str.ICMExist
lea eax, [ebp - 0x628]
push eax
jmp 0x401394
push 0x4048f0
push str.ICMExist
lea ecx, [ebp - 0x628]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
cmp dword [ebp - 0x1058], 0
je 0x4013aa
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea edx, [ebp - 0xc40]
push edx
push str.ICMFilename
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
call fcn.00401c30
test eax, eax
je 0x40143a
push str.Create_Eye_Care_Shortcut
call fcn.004024f0
add esp, 4
push 0
push 0x19
lea ecx, [ebp - 0x830]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Eye_Care_Switcher
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x420]
push str._s_s.Lnk
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x218]
push ecx
call fcn.004024f0
lea edx, [ebp - 0x420]
push edx
call fcn.004024f0
lea eax, [ebp - 0x420]
push eax
lea edi, [ebp - 0x218]
call fcn.00402590
add esp, 0x1c
call fcn.00401ba0
test eax, eax
je 0x401453
push 1
push 0x4049a8
lea ecx, [ebp - 0x830]
push ecx
jmp 0x401461
push 0
push 0x4049a8
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x830]
push eax
push str.DefalutEnableVideoEnhance
lea ecx, [ebp - 0x628]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
or edi, 0xffffffff
cmp dword [ebp - 0x105c], 0
jl 0x4014b6
push 0x4049e4
call fcn.004024f0
add esp, 4
call fcn.00401d30
test eax, eax
je 0x4014b0
call dword [0x407418]
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
lea edx, [ebp - 0xa30]
push 0x4049a8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0xa30]
push eax
push 0x4049e4
lea ecx, [ebp - 0x628]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
lea edx, [ebp - 0x1054]
push edx
push 2
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1060], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40153e
mov edx, dword [ebp - 0x1054]
push 4
lea ecx, [ebp - 0x1060]
push ecx
push 4
push eax
push str.EnableVividLUT
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x1054]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Splendid_tool_completed
call fcn.004024f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0040308f
mov esp, ebp
pop ebp
ret
push 0
push str.Error
push str.Support_ASUS_model_only.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x401554
mov ecx, dword [esi + 4]
push str.Uninstall
push ecx
call edi
add esp, 8
test eax, eax
jne 0x401943
push str.Persistence
call dword [sym.imp.Alb_ASUSLib.dll__Setup_SetRun_4]
mov esi, dword [sym.imp.Alb_ASUSLib.dll__DeleteTask_4]
push str.ASUS_Splendid_ColorU
call esi
push str.ASUS_Splendid_ACMON
call esi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.Alb_ASUSLib.dll__IsWow64_0]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
je 0x401608
push str.SOFTWAREWow6432NodeASUSASUS_Splendid_
push 0x4047d4
lea ecx, [ebp - 0x218]
push ecx
jmp 0x401619
push str.SOFTWAREASUSASUS_Splendid_
push 0x4047d4
lea edx, [ebp - 0x218]
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0xb3c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4016cd
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0xb3c]
push ecx
lea edx, [ebp - 0x31c]
push str._smy_intel.sys
push edx
call esi
mov ebx, dword [sym.imp.MSVCR100.dll_remove]
lea eax, [ebp - 0x31c]
push eax
call ebx
push 0x104
lea ecx, [ebp - 0x31c]
push 0
push ecx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0xb3c]
push edx
lea eax, [ebp - 0x31c]
push str._s_sp_data.sys
push eax
call esi
lea ecx, [ebp - 0x31c]
push ecx
call ebx
push 0x104
lea edx, [ebp - 0x31c]
push 0
push edx
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0xb3c]
push eax
lea ecx, [ebp - 0x31c]
push str._sMicrosoftWindowsStart_MenuProgramsEye_Care_Switcher.lnk
push ecx
call esi
lea edx, [ebp - 0x31c]
add esp, 0x44
push edx
call ebx
add esp, 4
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
js 0x401834
call dword [sym.imp.ApplyLUT.dll_IsSupportedVividMode]
mov ebx, eax
call fcn.00401d30
test eax, eax
je 0x401707
xor eax, eax
test ebx, ebx
sete al
push eax
call dword [0x407414]
add esp, 4
xor ecx, ecx
push 0x1fc
push ecx
lea edx, [ebp - 0x416]
push edx
mov dword [ebp - 0x1054], 0
mov word [ebp - 0x418], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x1fc
push eax
lea ecx, [ebp - 0x826]
push ecx
mov word [ebp - 0x828], ax
call sub.MSVCR100.dll_memset
add esp, 0x18
push str.VideoEnhance.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40182e
push str.VideoEnhanceAPI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x407410], eax
test eax, eax
je 0x40182e
lea edx, [ebp - 0x1054]
push edx
push 4
call eax
mov ebx, eax
push ebx
lea eax, [ebp - 0x418]
push str.VideoEnhanceAPI_:_CHECK_DRIVER_SUPPORT_return__d_n
push eax
call edi
add esp, 0x14
test ebx, ebx
jne 0x4017d8
lea ecx, [ebp - 0x1054]
push ecx
push 1
call dword [0x407410]
push eax
lea edx, [ebp - 0x418]
push str.VideoEnhanceAPI_:_ENHANCE_ON_return__d_n
push edx
call edi
lea eax, [ebp - 0x1054]
push eax
push 2
call dword [0x407410]
push eax
lea ecx, [ebp - 0x418]
push str.VideoEnhanceAPI_:_ENHANCE_OFF_return__d_n
push ecx
call edi
add esp, 0x28
push str.LoadVideoEnhanceLibrary:_remove_eye_care_short_cut_n
call esi
call fcn.00401c30
test eax, eax
je 0x40182e
push 0
push 0x19
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Eye_Care_Switcher
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x828]
push str._s_s.Lnk
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x828]
push edx
call esi
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor ecx, ecx
push 0x1fc
push ecx
lea edx, [ebp - 0xa2e]
push edx
mov word [ebp - 0xa30], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x1fc
push eax
lea ecx, [ebp - 0x61e]
push ecx
mov word [ebp - 0x620], ax
call sub.MSVCR100.dll_memset
add esp, 0x18
push str.remove_eye_care_short_cut_n
call esi
push 0
push 0x19
lea edx, [ebp - 0xa30]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Eye_Care_Switcher
lea eax, [ebp - 0xa30]
push eax
lea ecx, [ebp - 0x620]
push str._s_s.Lnk
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x620]
push edx
call esi
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.Alb_ASUSLib.dll__my_DeleteRegKey_16]
push 1
push str.IsASUS
lea ecx, [ebp - 0x218]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 1
push str.ICMFilename
lea edx, [ebp - 0x218]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 1
push str.ICMExist
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 1
push 0x4049e4
lea ecx, [ebp - 0x218]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 1
push str.EnableVividLUT
lea edx, [ebp - 0x218]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 1
push str.DefalutEnableVideoEnhance
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
jmp 0x401552
mov ecx, dword [esi + 4]
push str.Remove_ICC
push ecx
call edi
add esp, 8
test eax, eax
jne 0x40195f
call fcn.00401e00
jmp 0x401552
mov edx, dword [esi + 4]
push str.CTable
push edx
call edi
add esp, 8
test eax, eax
jne 0x401a5b
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x208
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0xe46]
push edx
mov word [ebp - 0xe48], cx
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xe48]
push str._sCTable.ini
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0xa36]
push eax
mov word [ebp - 0xa38], dx
call sub.MSVCR100.dll_memset
add esp, 0x24
call fcn.00401d80
lea ecx, [ebp - 0xa38]
push ecx
mov esi, eax
call dword [sym.imp.GLCDdll.dll__GetAcfFilename_4]
test esi, esi
je 0x401a22
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push 0x404ce4
lea edx, [ebp - 0xa38]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0xe48]
push eax
lea ecx, [ebp - 0xa38]
push ecx
push str.ColorTableName
push str.Main
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401552
mov edx, dword [esi + 4]
push str.ResetColor
push edx
call edi
add esp, 8
test eax, eax
jne 0x401aaa
push eax
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401552
call dword [sym.imp.ApplyLUT.dll_IsSupportedVividMode]
mov esi, eax
call fcn.00401d30
test eax, eax
je 0x401a9f
xor eax, eax
test esi, esi
sete al
push eax
call dword [0x407414]
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401552
mov ecx, dword [esi + 4]
push str.ASUSDevice
push ecx
call edi
add esp, 8
test eax, eax
jne 0x401b34
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.Alb_ASUSLib.dll__IsWow64_0]
test eax, eax
je 0x401af7
push str.SOFTWAREWow6432NodeASUSASUS_Splendid_
push 0x4047d4
lea ecx, [ebp - 0x218]
push ecx
jmp 0x401b08
push str.SOFTWAREASUSASUS_Splendid_
push 0x4047d4
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
push 0x404860
push str.IsASUS
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.Alb_ASUSLib.dll__my_SetRegKey_String_20]
jmp 0x401552
mov ecx, dword [esi + 4]
push str.IsICMFileExist
push ecx
call edi
add esp, 8
test eax, eax
jne 0x401552
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x104e]
push eax
mov word [ebp - 0x1050], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edi, edi
call fcn.00401d80
lea ecx, [ebp - 0x1050]
push ecx
mov esi, eax
call dword [sym.imp.GLCDdll.dll__GetAcfFilename_4]
test eax, eax
jne 0x401b85
or edi, 0xffffffff
test esi, esi
je 0x401b8f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x401554