Function at 0x1400a01f0
Capabilities:
Read file on windows
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.1400ca8f0
sub rsp, rax
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r8
mov rbx, rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp - 0x40]
call fcn.1400c7980
xor ecx, ecx
mov r12d, ecx
mov r14d, ecx
mov dword [rsp + 0x50], ecx
mov edi, ecx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
mov qword [rsp + 0x78], rcx
mov ecx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__set_fmode]
lea r8, [0x14010e644]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r9d, eax
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
test eax, eax
je 0x1400a02c4
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov r8d, 0x1e2
lea rcx, str._s__d__tfopen_s_ret_d_FilePath_s
call fcn.14005b9a0
nop
lea r15, [r12 - 1]
jmp 0x1400a0673
mov r9, qword [rbx]
mov r8d, 0x1e6
lea rcx, str._s__d_DAT_s
call fcn.14005b9a0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
mov dword [rsp + 0x54], eax
mov r9, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 0x1b]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea r13d, [rsi - 0x1c]
mov r15, 0xffffffffffffffff
test rax, rax
je 0x1400a065a
nop word [rax + rax]
xor eax, eax
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140052440
nop
mov eax, dword [rbp - 0x6c]
mov esi, eax
shr esi, 0x1f
and eax, 0xfffff
mov dword [rbp - 0x6c], eax
mov ebx, dword [rbp - 0x68]
cmp ebx, 0x1000000
jae 0x1400a0613
cmp ebx, 0xfff
jb 0x1400a03fd
cmp r14d, ebx
jae 0x1400a03b1
test r12, r12
je 0x1400a0384
mov rcx, r12
call fcn.1400c1818
mov ebx, dword [rbp - 0x68]
mov dword [rsp + 0x50], ebx
lea ecx, [rbx + 2]
call fcn.1400c1b80
mov r12, rax
mov r9d, ebx
mov r8d, 0x20b
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_new_HeapBufSize_d
call fcn.14005b9a0
jmp 0x1400a03b5
mov ebx, dword [rsp + 0x50]
mov r14, r12
mov r8d, 0x210
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, [0x1400e3358]
call fcn.14005b9a0
lea r8d, [rbx + 2]
xor edx, edx
mov rcx, r12
call fcn.1400c7980
mov r8d, 0x214
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, [0x1400e3358]
call fcn.14005b9a0
mov ebx, dword [rbp - 0x68]
jmp 0x1400a0412
lea r14, [rbp - 0x40]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp - 0x40]
call fcn.1400c7980
mov r8d, ebx
mov r9, qword [rsp + 0x78]
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [rbp - 0x68]
sub r13d, ecx
mov eax, dword [rbp - 0x6c]
cmp eax, 0x10001
jne 0x1400a047b
mov eax, dword [r14]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
test esi, esi
je 0x1400a046a
mov dword [rbp - 0x58], eax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x58]
jmp 0x1400a0535
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
jmp 0x1400a0530
cmp eax, 0x10000
jne 0x1400a05e4
mov rax, rcx
xor ecx, ecx
mov word [rax + r14], cx
test esi, esi
je 0x1400a04e8
test r14, r14
jne 0x1400a04a1
lea edi, [rcx + 0xd]
jmp 0x1400a0540
mov r8d, ecx
mov rdx, r14
nop word [rax + rax]
mov rcx, r15
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400a04b3
inc ecx
lea rdx, [rdx + rcx*2]
lea r8d, [r8 + rcx*2]
cmp ecx, 1
jne 0x1400a04b0
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r14
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
mov rax, qword [rsp + 0x58]
jmp 0x1400a0535
test r14, r14
jne 0x1400a04f3
lea edi, [r14 + 0xd]
jmp 0x1400a0540
mov r8d, ecx
mov rdx, r14
nop dword [rax]
mov rax, r15
inc rax
cmp word [rdx + rax*2], cx
jne 0x1400a0503
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1400a0500
mov dword [rsp + 0x28], r8d
lea r9d, [rax + 6]
mov rdx, qword [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov r9, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 0x1b]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
test rax, rax
jne 0x1400a0564
sub r13d, 0x1c
call fcn.14005b7b0
test eax, eax
je 0x1400a05ac
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], edi
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x6c]
mov r8d, 0x23b
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_Type_x_Key_s_DataSize_d_RegRet_d_RemindFileSize_d_FileSize_d
call fcn.14005b9a0
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a05d4
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
test rbx, rbx
mov r14d, dword [rsp + 0x50]
jne 0x1400a0330
jmp 0x1400a0655
cmp eax, 1
jne 0x1400a0540
mov dword [rsp + 0x28], ecx
lea r9d, [rax + 2]
test esi, esi
je 0x1400a0524
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
mov rax, qword [rsp + 0x58]
jmp 0x1400a0535
mov r8d, 0x1fc
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_over_buffer_size
call fcn.14005b9a0
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a0655
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r12, r12
je 0x1400a0673
mov rcx, r12
call fcn.1400c1818
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x1400a0699
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1400c17f0
mov rbx, qword [rsp + 0x1110]
add rsp, 0x10d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret