Function at 0x1400bb910
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.1400fdb80
sub rsp, rax
mov rax, qword [0x1401aa010]
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.1400fac10
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, [0x14016a658]
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.CRtkApoConditionPresetLoader::LoadPresetFromDATFile2ServiceRegStore
test eax, eax
je 0x1400bb9e4
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov r8d, 0x1e9
lea rcx, str._s__d__tfopen_s_ret_d_FilePath_s
call fcn.140075db0
nop
lea r15, [r12 - 1]
jmp 0x1400bbd93
mov r9, qword [rbx]
mov r8d, 0x1ed
lea rcx, str._s__d_DAT_s
call fcn.140075db0
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 0x1400bbd7a
nop word [rax + rax]
xor eax, eax
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14006a210
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 0x1400bbd33
cmp ebx, 0xfff
jb 0x1400bbb1d
cmp r14d, ebx
jae 0x1400bbad1
test r12, r12
je 0x1400bbaa4
mov rcx, r12
call fcn.1400f4438
mov ebx, dword [rbp - 0x68]
mov dword [rsp + 0x50], ebx
lea ecx, [rbx + 2]
call fcn.1400f47dc
mov r12, rax
mov r9d, ebx
mov r8d, 0x212
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_new_HeapBufSize_d
call fcn.140075db0
jmp 0x1400bbad5
mov ebx, dword [rsp + 0x50]
mov r14, r12
mov r8d, 0x217
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, [0x14011bca8]
call fcn.140075db0
lea r8d, [rbx + 2]
xor edx, edx
mov rcx, r12
call fcn.1400fac10
mov r8d, 0x21b
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, [0x14011bca8]
call fcn.140075db0
mov ebx, dword [rbp - 0x68]
jmp 0x1400bbb32
lea r14, [rbp - 0x40]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp - 0x40]
call fcn.1400fac10
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 0x1400bbb9b
mov eax, dword [r14]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
test esi, esi
je 0x1400bbb8a
mov dword [rbp - 0x58], eax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x58]
jmp 0x1400bbc55
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
jmp 0x1400bbc50
cmp eax, 0x10000
jne 0x1400bbd04
mov rax, rcx
xor ecx, ecx
mov word [rax + r14], cx
test esi, esi
je 0x1400bbc08
test r14, r14
jne 0x1400bbbc1
lea edi, [rcx + 0xd]
jmp 0x1400bbc60
mov r8d, ecx
mov rdx, r14
nop word [rax + rax]
mov rcx, r15
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400bbbd3
inc ecx
lea rdx, [rdx + rcx*2]
lea r8d, [r8 + rcx*2]
cmp ecx, 1
jne 0x1400bbbd0
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 0x1400bbc55
test r14, r14
jne 0x1400bbc13
lea edi, [r14 + 0xd]
jmp 0x1400bbc60
mov r8d, ecx
mov rdx, r14
nop dword [rax]
mov rax, r15
inc rax
cmp word [rdx + rax*2], cx
jne 0x1400bbc23
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1400bbc20
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 0x1400bbc84
sub r13d, 0x1c
call fcn.140075a20
test eax, eax
je 0x1400bbccc
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, 0x242
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_Type_x_Key_s_DataSize_d_RegRet_d_RemindFileSize_d_FileSize_d
call fcn.140075db0
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bbcf4
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
test rbx, rbx
mov r14d, dword [rsp + 0x50]
jne 0x1400bba50
jmp 0x1400bbd75
cmp eax, 1
jne 0x1400bbc60
mov dword [rsp + 0x28], ecx
lea r9d, [rax + 2]
test esi, esi
je 0x1400bbc44
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, qword [rbp - 0x60]
mov rax, qword [rsp + 0x58]
jmp 0x1400bbc55
mov r8d, 0x203
lea rdx, str.CRtkApoConditionPresetLoader::LoadPresetFromDATFile2ServiceRegStore
lea rcx, str._s__d_over_buffer_size
call fcn.140075db0
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bbd75
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.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 0x1400bbd93
mov rcx, r12
call fcn.1400f4438
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x1400bbdb9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1400f4410
mov rbx, qword [rsp + 0x1110]
add rsp, 0x10d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret