Function at 0x1400323a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
mov byte [rbp], 0
lea rcx, [rbp + 0x60]
call fcn.140030030
nop
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.140030800
mov r8, qword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1d0]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, 0xffffffff
lea rcx, [rbp + 0x60]
call fcn.1400308e0
lea rcx, [rbp + 0x60]
call fcn.140030730
mov rcx, rax
call fcn.140031be0
movzx eax, al
test eax, eax
je 0x140032680
mov qword [rbp + 0x10], 0xffffffffffffffff
lea rcx, [rbp + 0x60]
call fcn.140030730
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0xffffffffffffffff
je 0x140032680
mov dword [rbp + 0x18], 0
mov dword [rbp + 4], 0
lea rdx, [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140032676
cmp dword [rbp + 0x18], 0
jne 0x140032676
mov eax, dword [rbp + 4]
mov ecx, eax
call sub.mfc120u.dll_Ordinal_265
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x58]
mov qword [rax], rcx
mov rax, qword [rbp + 0x1e0]
cmp qword [rax], 0
je 0x140032676
mov eax, dword [rbp + 4]
mov dword [rbp + 8], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 8]
mov r8d, dword [rbp + 4]
mov rax, qword [rbp + 0x1e0]
mov rdx, qword [rax]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032676
mov eax, dword [rbp + 4]
cmp dword [rbp + 8], eax
jne 0x140032676
call fcn.140015130
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 8]
mov rcx, qword [rbp + reloc.mfc120u.dll_Ordinal_488]
mov qword [rcx], rax
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.MSVCR120.dll_wcslen]
add rax, 0x12
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x91]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea r8, [0x14021b010]
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCR120.dll_strcpy_s]
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x1400325a5
mov qword [rbp + 0x38], 0
jmp 0x140032626
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp + 0xc], eax
cmp dword [rbp + 0xc], 0x3fffffff
jle 0x1400325c7
mov qword [rbp + 0x28], 0
jmp 0x14003261e
movsxd rax, dword [rbp + 0xc]
shl rax, 1
mov qword [rbp + 0x48], rax
movsxd rcx, dword [rbp + 0xc]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x1400325ef
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x1c]
mov rcx, qword [rbp + 0x48]
mov r8d, ecx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x38], rax
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCR120.dll_strcat_s]
lea rax, [rbp + 0x90]
mov qword [rbp + 0x40], rax
mov eax, dword [rbp + 8]
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x40]
call sub.MSVCR120.dll_strlen
mov rcx, qword [rbp + 0x78]
mov r9, rcx
mov rcx, qword [rbp + 0x1e0]
mov r8, qword [rcx]
mov rdx, rax
mov rcx, qword [rbp + 0x40]
call fcn.14007da60
mov byte [rbp], al
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rbp]
test eax, eax
jne 0x1400326ad
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax]
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x50]
call sub.mfc120u.dll_Ordinal_266
mov rax, qword [rbp + 0x1e0]
mov qword [rax], 0
movzx eax, byte [rbp]
mov byte [rbp + 1], al
lea rcx, [rbp + 0x60]
call fcn.140030070
movzx eax, byte [rbp + 1]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14010f170
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret