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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov r14, r9
mov dword [rbp - 0x20], ebx
mov rsi, r8
mov rdi, rdx
mov r13, rcx
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
mov r15b, 4
cmp rcx, rax
je 0x1400d01bd
test byte [rcx + 0x1c], r15b
je 0x1400d01bd
cmp byte [rcx + 0x19], r15b
jb 0x1400d01bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d820]
mov edx, 0xca
call fcn.140004c10
mov byte [r14], bl
xor r9d, r9d
mov r14d, 3
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], r14d
lea r8d, [r14 - 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400d0773
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400d0276
mov rax, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rax, r13
je 0x1400d06f3
test byte [rax + 0x1c], r15b
je 0x1400d06f3
cmp byte [rax + 0x19], r14b
jb 0x1400d06f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
lea r8, [0x14015d820]
mov edx, 0xcb
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
jmp 0x1400d06f3
mov rcx, qword [rbp + 0x68]
mov edx, 0x200
mov rax, qword [rbp - 0x18]
mov qword [rcx], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400d02b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov rax, qword [rbp + 0x70]
mov dword [rax], ecx
mov ebx, r14d
jmp 0x1400d06f3
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x1400d0706
cmp dword [rbp - 0x20], 0x200
jne 0x1400d0706
mov qword [rsp + 0x28], rbx
lea r8, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, r13
call fcn.1400d49c4
test al, al
jne 0x1400d0353
mov rcx, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rcx, r13
je 0x1400d0755
test byte [rcx + 0x1c], r15b
je 0x1400d0755
cmp byte [rcx + 0x19], r14b
jb 0x1400d0755
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d820]
mov edx, 0xcd
call fcn.140004c10
jmp 0x1400d0755
mov r9, qword [rbp - 0x10]
cmp r9, rsi
jge 0x1400d03bf
mov rcx, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rcx, r13
je 0x1400d0755
test byte [rcx + 0x1c], r15b
je 0x1400d0755
cmp byte [rcx + 0x19], r14b
jb 0x1400d0755
mov rcx, qword [rcx + 0x10]
mov r8, r9
sar r8, 0x20
mov rax, rsi
sar rax, 0x20
mov edx, 0xce
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x14015d820]
call fcn.1400111a4
jmp 0x1400d0755
mov edx, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400d0402
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov rax, qword [rbp + 0x70]
mov dword [rax], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
jmp 0x1400d02b0
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x1400d0686
cmp dword [rbp - 0x20], 0x400
jne 0x1400d0686
mov rdx, rsi
mov rcx, r13
call fcn.1400d52cc
test al, al
jne 0x1400d048c
mov rcx, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rcx, r13
je 0x1400d06d5
test byte [rcx + 0x1c], r15b
je 0x1400d06d5
cmp byte [rcx + 0x19], r14b
jb 0x1400d06d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d820]
mov edx, 0xd0
call fcn.140004c10
jmp 0x1400d06d5
mov r14d, dword [r13 + 0xbc]
xor ecx, ecx
shl r14d, 2
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x1400d04eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov rax, qword [rbp + 0x70]
mov dword [rax], ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
lea ebx, [r15 + 3]
jmp 0x1400d06f3
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x1400d0620
cmp dword [rbp - 0x20], r14d
jne 0x1400d0620
mov rdx, r15
mov rcx, r13
call fcn.1400d5890
test al, al
jne 0x1400d056f
mov rcx, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rcx, r13
je 0x1400d0675
test byte [rcx + 0x1c], 4
je 0x1400d0675
cmp byte [rcx + 0x19], 3
jb 0x1400d0675
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d820]
mov edx, 0xd2
call fcn.140004c10
jmp 0x1400d0675
mov rcx, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rcx, r13
je 0x1400d05a7
test byte [rcx + 0x1c], 4
je 0x1400d05a7
cmp byte [rcx + 0x19], 4
jb 0x1400d05a7
mov r9, qword [rbp + 0x48]
lea r8, [0x14015d820]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd3
call fcn.140005cd0
mov rax, qword [rbp + 0x58]
mov rcx, rsi
mov byte [rax], 1
mov rax, qword [rbp + 0x60]
mov qword [rax], r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x1400d0773
test byte [rcx + 0x1c], 4
je 0x1400d0773
cmp byte [rcx + 0x19], 4
jb 0x1400d0773
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d820]
mov edx, 0xd4
call fcn.140004c10
jmp 0x1400d0773
mov rax, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rax, r13
je 0x1400d0675
test byte [rax + 0x1c], 4
je 0x1400d0675
cmp byte [rax + 0x19], 3
jb 0x1400d0675
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
lea r8, [0x14015d820]
mov dword [rsp + 0x28], eax
mov edx, 0xd1
mov eax, dword [rbp - 0x20]
mov r9d, r14d
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.1400b2e10
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
jmp 0x1400d06d5
mov rax, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rax, r13
je 0x1400d06d5
test byte [rax + 0x1c], r15b
je 0x1400d06d5
cmp byte [rax + 0x19], r14b
jb 0x1400d06d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
lea r8, [0x14015d820]
mov r9d, dword [rbp - 0x20]
mov edx, 0xcf
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140010290
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400d0775
mov rax, qword [0x14017b048]
lea r13, [0x14017b048]
cmp rax, r13
je 0x1400d0755
test byte [rax + 0x1c], r15b
je 0x1400d0755
cmp byte [rax + 0x19], r14b
jb 0x1400d0755
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
lea r8, [0x14015d820]
mov r9d, dword [rbp - 0x20]
mov edx, 0xcc
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140010290
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret