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

Disassembly:
push rbx
push r13
push r15
sub rsp, 0x90
mov rax, qword [0x1800f7050]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r15d, r15d
mov rax, rdx
mov r13, rcx
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001fda5
xor eax, eax
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rcx, rbx
mov byte [rsp + 0x58], r15b
mov qword [rsp + 0x59], rax
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
mov dword [rsp + 0x50], r15d
call fcn.18001f950
test eax, eax
je 0x18001fdac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001ffa9
mov eax, dword [rsp + 0x58]
cmp eax, dword [0x1800daed8]
jne 0x18001fd9c
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001fd9c
mov qword [rsp + 0x88], rsi
mov rsi, qword [rsp + 0x48]
mov ecx, 0x20000
cmp rsi, rcx
cmovg esi, ecx
cmp esi, 0x16
ja 0x18001fdfc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001ffa1
lea rdx, [0x1800fee28]
mov qword [rsp + 0x80], rdi
call fcn.1800626b4
mov rdi, rax
test rax, rax
jne 0x18001fe28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001ff99
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rbp
mov ebp, esi
sub rdx, rbp
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x48], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001ffdb
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001ffdb
cmp dword [rsp + 0x40], esi
jne 0x18001ffdb
lea ecx, [rsi - 0x16]
lea rbp, [rdi + rsi - 0x16]
test ecx, ecx
je 0x18001fea5
mov eax, dword [0x1800daeb4]
cmp dword [rbp], eax
je 0x18001fea5
dec rbp
add ecx, 0xffffffff
jne 0x18001fe98
cmp rbp, rdi
je 0x18001ffdb
mov qword [rsp + 0x78], r12
movzx r12d, word [rbp + 0x14]
test r12w, r12w
jne 0x18001fed6
mov rcx, rdi
call fcn.1800626bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001ff8c
add rbp, 0x16
mov qword [rsp + 0x70], r14
movzx r14d, r12w
mov eax, r14d
sub eax, edi
add eax, ebp
cmp eax, esi
jne 0x18001ff74
mov rcx, qword [r13 + 0xc8]
test rcx, rcx
je 0x18001ff0a
call fcn.1800626bc
mov qword [r13 + 0xc8], r15
movzx ecx, r12w
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1800fee28]
cmovo rax, rcx
mov rcx, rax
call fcn.1800626b4
mov qword [r13 + 0xc8], rax
test rax, rax
je 0x18001ff74
mov r9d, r14d
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [r13 + 0xd0], eax
jne 0x18001ffc3
mov rcx, qword [r13 + 0xc8]
call fcn.1800626bc
mov qword [r13 + 0xc8], r15
mov rcx, rdi
call fcn.1800626bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180062100
add rsp, 0x90
pop r15
pop r13
pop rbx
ret
mov rcx, rdi
call fcn.1800626bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x18001ff87
mov rcx, rdi
call fcn.1800626bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001ff91