Function at 0x1400911d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r13, rcx
mov rcx, qword [rcx]
mov r14d, edx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x40]
mov eax, 2
lea rbx, [rdi + 0xa]
mov r12, 0xffffffffffffffff
mul rbx
cmovo rax, r12
mov rcx, rax
call sub.MFC80U.DLL_Ordinal_265
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call sub.ntdll.dll_memset
mov rcx, qword [r13]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r13]
xor esi, esi
cmp rcx, r12
mov dword [rsp + 0x40], esi
je 0x140091416
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], esi
je 0x140091416
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call sub.MFC80U.DLL_Ordinal_265
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r12, rax
call sub.ntdll.dll_memset
lea rdx, str.Pointer_d__r_n
mov r8d, r14d
mov rcx, r12
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rdx, [0x1402e82a8]
movsxd rcx, eax
lea rbx, [r12 + rcx*2]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
mov rdx, rax
jne 0x140091319
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_266
call fcn.140049470
lea rcx, str...configmgr.cpp
mov rbx, qword [rax]
mov edx, 0x221
mov rdi, rax
call fcn.140090880
lea rdx, str._s:_Failed_to__tcsstr_DiskIndex_in_WritePointer.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
jmp 0x1400914d6
shr rdi, 1
sub rax, rbp
mov rcx, rbx
sar rax, 1
sub edi, eax
movsxd rdi, edi
add rdi, rdi
mov r8, rdi
call sub.ntdll.dll_memcpy
mov rcx, qword [r13]
add rbx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rcx, [r13 + 0x2c]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [r13], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r13]
cmp rcx, 0xffffffffffffffff
je 0x1400913d5
sub rbx, r12
lea r9, [rsp + 0x40]
mov rdx, r12
sar rbx, 1
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r8d, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400913d5
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_266
mov eax, 1
jmp 0x1400914d8
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
mov rcx, r12
call sub.MFC80U.DLL_Ordinal_266
call fcn.140049470
lea rcx, str...configmgr.cpp
mov rbx, qword [rax]
mov edx, Ordinal_563
mov rdi, rax
call fcn.140090880
lea rdx, str._s:_Failed_to_FileIO::Write.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
jmp 0x1400914d6
mov rcx, rbp
call sub.MFC80U.DLL_Ordinal_266
call fcn.140049470
lea rbp, [0x140434050]
mov rcx, rbp
xor edx, edx
mov r8d, 0x80
mov rbx, rax
call sub.ntdll.dll_memset
lea rcx, str...configmgr.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400914c3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x40]
mov r8d, 0x211
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x4b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbp
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140091490
xor eax, eax
mov rdi, rbp
mov rcx, r12
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400914b0
mov rsi, rbp
mov rax, qword [rbx]
lea rdx, str._s:_Failed_to_FileIO::Read_in_WritePointer.
mov r8, rsi
mov rcx, rbx
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret