Function at 0x1000dab58
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 0x1000dabc0
test byte [rcx + 0x1c], bpl
je 0x1000dabc0
cmp byte [rcx + 0x19], bpl
jb 0x1000dabc0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xcc
call fcn.10001c7b8
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 0x1000db102
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, ebx
jne 0x1000dac68
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db099
test byte [rax + 0x1c], bpl
je 0x1000db099
cmp byte [rax + 0x19], r12b
jb 0x1000db099
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003188]
mov rcx, qword [rcx + 0x10]
mov edx, 0xcd
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x1000db099
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 0x1000daca9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax], r11d
mov ebx, r12d
jmp 0x1000db099
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 0x1000db0a6
cmp dword [rsp + 0x40], 0x200
jne 0x1000db0a6
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.1000df4e4
cmp al, bl
jne 0x1000dad41
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db090
test byte [rcx + 0x1c], bpl
je 0x1000db090
cmp byte [rcx + 0x19], r12b
jb 0x1000db090
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xcf
call fcn.10001c7b8
jmp 0x1000db090
mov r9, qword [rsp + 0x50]
cmp r9, rsi
jge 0x1000dadae
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db090
test byte [rcx + 0x1c], bpl
je 0x1000db090
cmp byte [rcx + 0x19], r12b
jb 0x1000db090
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, [0x100003188]
call fcn.10001e8fc
jmp 0x1000db090
mov edx, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
cmp rax, rbx
jne 0x1000dade5
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 0x1000daca1
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 0x1000db03d
cmp dword [rsp + 0x40], 0x400
jne 0x1000db03d
mov rdx, rsi
mov rcx, r13
call fcn.1000e0140
cmp al, bl
jne 0x1000dae6b
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000db087
test byte [rcx + 0x1c], bpl
je 0x1000db087
cmp byte [rcx + 0x19], r12b
jb 0x1000db087
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xd2
call fcn.10001c7b8
jmp 0x1000db087
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 0x1000daeb9
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 0x1000db099
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 0x1000dafdc
cmp dword [rsp + 0x40], r12d
jne 0x1000dafdc
mov rdx, rbp
mov rcx, r13
call fcn.1000e073c
cmp al, bl
jne 0x1000daf36
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000daf28
test byte [rcx + 0x1c], 4
je 0x1000daf28
cmp byte [rcx + 0x19], 3
jb 0x1000daf28
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xd4
call fcn.10001c7b8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000db087
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000daf6d
test byte [rcx + 0x1c], 4
je 0x1000daf6d
cmp byte [rcx + 0x19], 4
jb 0x1000daf6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xd5
mov r9, r15
call fcn.10001da24
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 0x1000db102
test byte [rcx + 0x1c], 4
je 0x1000db102
cmp byte [rcx + 0x19], 4
jb 0x1000db102
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xd6
call fcn.10001c7b8
jmp 0x1000db102
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000daf28
test byte [rax + 0x1c], 4
je 0x1000daf28
cmp byte [rax + 0x19], 3
jb 0x1000daf28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003188]
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.1000c27bc
jmp 0x1000daf28
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db087
test byte [rax + 0x1c], bpl
je 0x1000db087
cmp byte [rax + 0x19], r12b
jb 0x1000db087
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xd1
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
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 0x1000db104
mov rax, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rax, r13
je 0x1000db0f0
test byte [rax + 0x1c], bpl
je 0x1000db0f0
cmp byte [rax + 0x19], r12b
jb 0x1000db0f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003188]
mov edx, 0xce
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
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