Function at 0x140027fe0
Capabilities:
Get common file path
Query or enumerate registry value
Write file on windows

Disassembly:
jmp 0x140027fe0
mov rax, rsp
push rbp
lea rbp, [rax - 0x618]
sub rsp, 0x710
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 0x600], rax
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x60]
call fcn.1400aa8f0
mov dword [rsp + 0x4c], 3
mov dword [rsp + 0x48], 0x64
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x50]
call fcn.140076600
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea rdi, [rsi - 1]
test eax, eax
je 0x140028084
mov r8d, 0x84
jmp 0x1400280d6
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x140028096
mov r8d, 0x85
jmp 0x1400280d6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.AsusPresetInformation
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1400280ee
mov r8d, 0x8a
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14004c3d0
jmp 0x1400282b2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.1400aa8f0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.1400aa8f0
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400aa8f0
xor r9d, r9d
lea r8d, [r9 + 0x24]
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp - 0x30]
mov rax, rdi
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140028150
cmp word [rbp + rax*2 - 0x32], 0x5c
jne 0x14002817c
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x1400282f6
mov word [rbp + rax - 0x30], si
mov ecx, 0x103
lea rax, [rbp - 0x30]
cmp word [rax], 0
je 0x140028195
add rax, 2
sub rcx, 1
jne 0x140028185
mov eax, 0x103
sub rax, rcx
mov rdx, rsi
test rcx, rcx
cmovne rdx, rax
je 0x1400281fd
mov r8d, 0x103
sub r8, rdx
lea rcx, [rbp - 0x30]
lea rcx, [rcx + rdx*2]
je 0x1400281ef
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, str.Logs
sub r9, rcx
test rax, rax
je 0x1400281ef
movzx edx, word [r9 + rcx]
test dx, dx
je 0x1400281ef
mov word [rcx], dx
add rcx, 2
dec rax
sub r8, 1
jne 0x1400281d0
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], si
lea r8, [rbp - 0x30]
mov edx, 0x103
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, str.ASUS.txt
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3f0]
lea r8, [0x1400c3fc8]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.140023560
lea r8, [0x1400ce0f0]
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, eax
test eax, eax
jne 0x140028286
mov edx, dword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__flushall]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r8d, ebx
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s_err_d_LastErr_d_szFile_s
call fcn.14004c3d0
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400282ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x710]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400a4898
nop
int3