Function at 0x140008850
Capabilities:
Delete file
Get common file path
Read .ini file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x400], rax
movzx eax, word [0x14007d128]
xor ebx, ebx
cmp ax, word [0x140064c30]
mov r14d, ecx
jne 0x140008913
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.1400423d0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
xor r8d, r8d
lea rcx, [0x14005bc00]
xor edx, edx
mov edi, ebx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1400088e3
mov r8, qword [rsp + 0x60]
lea rcx, [rbp - 0x20]
mov edx, 0x104
call fcn.140044288
lea edi, [rbx + 1]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400088f3
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test edi, edi
je 0x140008913
lea r9, [rbp - 0x20]
mov edx, 0x104
lea r8, str._sASUSASUS_System_Control_InterfaceAsusOptimizationCustomization.ini
lea rcx, [0x14007d128]
call fcn.14000a160
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
mov rcx, qword [0x14007d338]
mov rsi, rax
test rcx, rcx
je 0x140008938
add rcx, 0xbb8
cmp rax, rcx
jb 0x140008c6b
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.1400423d0
lea r8, [0x14007d128]
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.140044288
mov edx, 0x104
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
lea r8, [rbp - 0x50]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
test eax, eax
je 0x14000898e
test dword [rbp - 0x50], 0x400
jne 0x140008c72
mov qword [rsp + 0x30], rbx
lea rcx, [0x14007d128]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140008a07
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test r14d, r14d
je 0x140008c64
lea r9, [0x14007d128]
mov r8d, 0xffffffff
lea rdx, str.legal
lea rcx, str.Main
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x140008c64
lea rcx, [0x14007d128]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.1400423d0
lea r8, [0x14007d128]
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.140044288
mov edx, 0x104
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
xor r8d, r8d
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x48], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x60], ebx
mov word [rsp + 0x64], 0x100
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
mov rax, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rbp - 0x68], 5
xorps xmm0, xmm0
mov dword [rsp + 0x78], 0xffffffff
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x7c], 1
movdqu xmmword [rbp - 0x7c], xmm0
lea ecx, [r8 + 1]
mov dword [rbp - 0x6c], ebx
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.api_ms_win_security_provider_l1_1_0.dll_SetEntriesInAclW]
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140008b94
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
mov r8, qword [rsp + 0x68]
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
mov qword [rsp + 0x30], rbx
lea r9, [rbp - 0x50]
mov dword [rsp + 0x28], 0x80
lea rcx, [0x14007d128]
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov dword [rbp - 0x50], 0x18
mov qword [rbp - 0x48], rdi
mov dword [rbp - 0x40], ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140008b8b
lea r9, [rbp - 0x54]
mov word [rbp - 0x58], 0xfeff
mov r8d, 2
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140008ba4
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140008bb4
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
test ebx, ebx
je 0x140008c72
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
call fcn.1400423d0
mov r9d, 1
lea r8, [0x140064c70]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.14000a160
lea r9, [0x14007d128]
lea r8, [rbp + 0x1f0]
lea rdx, str.force
lea rcx, str.Main
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_WritePrivateProfileStringW]
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
call fcn.1400423d0
mov r9d, 1
lea r8, [0x140064c70]
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.14000a160
lea r9, [0x14007d128]
lea r8, [rbp + 0x1f0]
lea rdx, str.legal
lea rcx, str.Main
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_WritePrivateProfileStringW]
mov qword [0x14007d338], rsi
mov eax, 1
jmp 0x140008c74
xor eax, eax
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret