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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r13, rcx
mov dword [rax - 0x48], ebx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
mov bpl, 4
cmp rcx, rax
je 0x1000dad14
test byte [rcx + 0x1c], bpl
je 0x1000dad14
cmp byte [rcx + 0x19], bpl
jb 0x1000dad14
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xcc
call fcn.10001c854
mov r12d, 3
mov qword [rsp + 0x30], rbx
xor r9d, r9d
lea r8d, [r12 - 2]
mov edx, 0x80000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
mov byte [rdi], bl
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1000db256
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, ebx
jne 0x1000dadbc
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db1ed
test byte [rax + 0x1c], bpl
je 0x1000db1ed
cmp byte [rax + 0x19], r12b
jb 0x1000db1ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003148]
mov rcx, qword [rcx + 0x10]
mov edx, 0xcd
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x1000db1ed
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0x48]
mov edx, 0x200
mov qword [rcx], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
jne 0x1000dadfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax], r11d
mov ebx, r12d
jmp 0x1000db1ed
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1000db1fa
cmp dword [rsp + 0x40], 0x200
jne 0x1000db1fa
lea r8, [rsp + 0x50]
xor r9d, r9d
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.1000df638
cmp al, bl
jne 0x1000dae95
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db1e4
test byte [rcx + 0x1c], bpl
je 0x1000db1e4
cmp byte [rcx + 0x19], r12b
jb 0x1000db1e4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xcf
call fcn.10001c854
jmp 0x1000db1e4
mov r9, qword [rsp + 0x50]
cmp r9, rsi
jge 0x1000daf02
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db1e4
test byte [rcx + 0x1c], bpl
je 0x1000db1e4
cmp byte [rcx + 0x19], r12b
jb 0x1000db1e4
mov rcx, qword [rcx + 0x10]
mov r8, r9
mov dword [rsp + 0x30], esi
sar r8, 0x20
mov rax, rsi
mov edx, 0xd0
sar rax, 0x20
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x100003148]
call fcn.10009ab38
jmp 0x1000db1e4
mov edx, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
cmp rax, rbx
jne 0x1000daf39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov r11d, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax], r11d
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000dadf5
lea r9, [rsp + 0x40]
mov r8d, 0x400
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1000db191
cmp dword [rsp + 0x40], 0x400
jne 0x1000db191
mov rdx, rsi
mov rcx, r13
call fcn.1000e0294
cmp al, bl
jne 0x1000dafbf
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db1db
test byte [rcx + 0x1c], bpl
je 0x1000db1db
cmp byte [rcx + 0x19], r12b
jb 0x1000db1db
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xd2
call fcn.10001c854
jmp 0x1000db1db
mov r12d, dword [r13 + 0xbc]
xor ecx, ecx
shl r12d, 2
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
cmp rax, rbx
jne 0x1000db00d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov r11d, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax], r11d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 3
jmp 0x1000db1ed
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, rax
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1000db130
cmp dword [rsp + 0x40], r12d
jne 0x1000db130
mov rdx, rbp
mov rcx, r13
call fcn.1000e0890
cmp al, bl
jne 0x1000db08a
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db07c
test byte [rcx + 0x1c], 4
je 0x1000db07c
cmp byte [rcx + 0x19], 3
jb 0x1000db07c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xd4
call fcn.10001c854
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000db1db
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db0c1
test byte [rcx + 0x1c], 4
je 0x1000db0c1
cmp byte [rcx + 0x19], 4
jb 0x1000db0c1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xd5
mov r9, r15
call fcn.10001db08
mov rax, qword [rsp + 0xa8]
mov rcx, rsi
mov byte [rax], 1
mov rax, qword [rsp + 0xb0]
mov qword [rax], rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000db256
test byte [rcx + 0x1c], 4
je 0x1000db256
cmp byte [rcx + 0x19], 4
jb 0x1000db256
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xd6
call fcn.10001c854
jmp 0x1000db256
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db07c
test byte [rax + 0x1c], 4
je 0x1000db07c
cmp byte [rax + 0x19], 3
jb 0x1000db07c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003148]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov edx, 0xd3
mov r9d, r12d
mov dword [rsp + 0x20], eax
call fcn.10007fb28
jmp 0x1000db07c
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db1db
test byte [rax + 0x1c], bpl
je 0x1000db1db
cmp byte [rax + 0x19], r12b
jb 0x1000db1db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xd1
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1000db258
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db244
test byte [rax + 0x1c], bpl
je 0x1000db244
cmp byte [rax + 0x19], r12b
jb 0x1000db244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003148]
mov edx, 0xce
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret