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

Disassembly:
jmp 0x14002d690
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 [0x140150010]
xor rax, rsp
mov qword [rbp + 0x600], rax
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x60]
call fcn.1400c0ee0
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.14008a0c0
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 0x14002d734
mov r8d, 0x84
jmp 0x14002d786
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x14002d746
mov r8d, 0x85
jmp 0x14002d786
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 0x14002d79e
mov r8d, 0x8a
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005c7e0
jmp 0x14002d8ea
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.1400c0ee0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.1400c0ee0
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400c0ee0
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 0x14002d800
cmp word [rbp + rax*2 - 0x32], 0x5c
jne 0x14002d82c
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14002d92e
mov word [rbp + rax - 0x30], si
lea rcx, [rbp - 0x30]
call fcn.14002d050
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, [0x1400dea78]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call fcn.140028bf0
lea r8, [0x1400eb8b4]
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 0x14002d8be
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.14005c7e0
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002d906
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.1400ba610
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.1400bae88
nop
int3