Function at 0x1400b2c20
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.1400e8ab0
sub rsp, rax
mov rax, qword [0x140178010]
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.1400e5b40
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, [0x14013ffa8]
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 0x1400b2cf4
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.14006dd20
nop
lea r15, [r12 - 1]
jmp 0x1400b30a3
mov r9, qword [rbx]
mov r8d, 0x1e6
lea rcx, str._s__d_DAT_s
call fcn.14006dd20
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 0x1400b308a
nop word [rax + rax]
xor eax, eax
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14005bab0
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 0x1400b3043
cmp ebx, 0xfff
jb 0x1400b2e2d
cmp r14d, ebx
jae 0x1400b2de1
test r12, r12
je 0x1400b2db4
mov rcx, r12
call fcn.1400df368
mov ebx, dword [rbp - 0x68]
mov dword [rsp + 0x50], ebx
lea ecx, [rbx + 2]
call fcn.1400df70c
mov r12, rax
mov r9d, ebx
mov r8d, 0x20b
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_new_HeapBufSize_d
call fcn.14006dd20
jmp 0x1400b2de5
mov ebx, dword [rsp + 0x50]
mov r14, r12
mov r8d, 0x210
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, [0x140102ba8]
call fcn.14006dd20
lea r8d, [rbx + 2]
xor edx, edx
mov rcx, r12
call fcn.1400e5b40
mov r8d, 0x214
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, [0x140102ba8]
call fcn.14006dd20
mov ebx, dword [rbp - 0x68]
jmp 0x1400b2e42
lea r14, [rbp - 0x40]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp - 0x40]
call fcn.1400e5b40
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 0x1400b2eab
mov eax, dword [r14]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
test esi, esi
je 0x1400b2e9a
mov dword [rbp - 0x58], eax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x58]
jmp 0x1400b2f65
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
jmp 0x1400b2f60
cmp eax, 0x10000
jne 0x1400b3014
mov rax, rcx
xor ecx, ecx
mov word [rax + r14], cx
test esi, esi
je 0x1400b2f18
test r14, r14
jne 0x1400b2ed1
lea edi, [rcx + 0xd]
jmp 0x1400b2f70
mov r8d, ecx
mov rdx, r14
nop word [rax + rax]
mov rcx, r15
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400b2ee3
inc ecx
lea rdx, [rdx + rcx*2]
lea r8d, [r8 + rcx*2]
cmp ecx, 1
jne 0x1400b2ee0
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 0x1400b2f65
test r14, r14
jne 0x1400b2f23
lea edi, [r14 + 0xd]
jmp 0x1400b2f70
mov r8d, ecx
mov rdx, r14
nop dword [rax]
mov rax, r15
inc rax
cmp word [rdx + rax*2], cx
jne 0x1400b2f33
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1400b2f30
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 0x1400b2f94
sub r13d, 0x1c
call fcn.14006db30
test eax, eax
je 0x1400b2fdc
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.14006dd20
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b3004
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
test rbx, rbx
mov r14d, dword [rsp + 0x50]
jne 0x1400b2d60
jmp 0x1400b3085
cmp eax, 1
jne 0x1400b2f70
mov dword [rsp + 0x28], ecx
lea r9d, [rax + 2]
test esi, esi
je 0x1400b2f54
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
mov rax, qword [rsp + 0x58]
jmp 0x1400b2f65
mov r8d, 0x1fc
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_over_buffer_size
call fcn.14006dd20
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400b3085
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.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 0x1400b30a3
mov rcx, r12
call fcn.1400df368
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x1400b30c9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1400df340
mov rbx, qword [rsp + 0x1110]
add rsp, 0x10d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret