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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rdx
lea rdx, [r11 - 0x48]
call fcn.1400222a0
nop
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400222a0
nop
lea rcx, [rsp + 0x80]
call fcn.14002aa20
mov rcx, rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400161b5
lea ebx, [rax - 2]
jmp 0x140016373
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400161da
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffffc
jmp 0x140016373
mov rbp, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001622d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [rsi - 4]
jmp 0x140016373
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14001625b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffffa
jmp 0x140016373
cmp rbp, qword [rsp + 0x48]
je 0x14001627e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffff9
jmp 0x140016373
test rbp, rbp
jne 0x14001629a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140016373
mov ecx, 0x32000
call fcn.140283754
mov rbp, rax
mov ecx, 0x32000
call fcn.140283754
mov r14, rax
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 0x32000
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016350
cmp dword [rsp + 0x40], ebx
jbe 0x140016350
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8d, 0x32000
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001634b
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jne 0x14001634b
mov r8d, eax
mov rdx, r14
mov rcx, rbp
call fcn.1402855f0
test eax, eax
jne 0x140016344
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 0x32000
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400162d8
jmp 0x140016350
mov ebx, 0xffffff38
jmp 0x140016350
mov ebx, 0xffffff9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call fcn.140283144
mov rcx, r14
call fcn.140283144
nop
lea rcx, [rsp + 0x58]
call fcn.14001d440
nop
lea rcx, [rsp + 0x80]
call fcn.14001d440
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret