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

Disassembly:
jmp 0x1400156e0
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 [0x1400bb008]
xor rax, rsp
mov qword [rbp + 0x600], rax
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x60]
call fcn.14006d020
mov dword [rsp + 0x54], 3
mov dword [rsp + 0x50], 0x64
xor esi, esi
mov qword [rsp + 0x40], rsi
xor eax, eax
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140049730
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
or rdi, 0xffffffffffffffff
test eax, eax
je 0x140015784
lea r8d, [rsi + 0x28]
jmp 0x1400157d4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140015794
lea r8d, [rcx + 0x29]
jmp 0x1400157d4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
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 + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1400157ec
mov r8d, 0x2e
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140026f80
jmp 0x1400159b2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.14006d020
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.14006d020
mov qword [rsp + 0x48], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.14006d020
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
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140015844
cmp word [rbp + rax*2 - 0x32], 0x5c
jne 0x140015870
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x1400159f6
mov word [rbp + rax - 0x30], si
mov ecx, 0x103
lea rax, [rbp - 0x30]
nop dword [rax]
cmp word [rax], 0
je 0x140015890
add rax, 2
sub rcx, 1
jne 0x140015880
mov eax, 0x103
sub rax, rcx
mov rdx, rsi
test rcx, rcx
cmovne rdx, rax
mov qword [rsp + 0x38], rdx
je 0x1400158fd
mov r8d, 0x103
sub r8, rdx
lea rcx, [rbp - 0x30]
lea rcx, [rcx + rdx*2]
je 0x1400158ef
lea rax, [rdx + 0x7ffffefb]
add rax, r8
lea r9, str.Logs
sub r9, rcx
test rax, rax
je 0x1400158ef
movzx edx, word [r9 + rcx]
test dx, dx
je 0x1400158ef
mov word [rcx], dx
add rcx, 2
dec rax
sub r8, 1
jne 0x1400158d0
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, [0x140081910]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.140012e80
lea r8, [0x14008561c]
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, eax
test eax, eax
jne 0x140015986
mov edx, dword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
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 + 0x48]
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.140026f80
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400159ce
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.140065bd0
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.140066364
nop
int3