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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, r8
mov ebx, edx
mov rdi, rcx
xor r15d, r15d
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
lea r8d, [r15 + 3]
lea rdx, [0x1801e4a80]
lea rcx, [rbp - 0x11]
call fcn.180009930
nop
lea r9, [rbp - 0x11]
mov r8d, ebx
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.1800a7e90
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1800a7aa2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a7a9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a7ce0
call fcn.18017e41c
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
cmp qword [rbp + 0x27], 0
jne 0x1800a7ac2
xor dil, dil
jmp 0x1800a7c60
mov qword [rbp - 0x29], r15
mov ecx, 8
call fcn.18017df2c
mov qword [rbp + 0xf], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x29], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.18001b530
mov rbx, qword [rbp - 0x29]
test al, al
je 0x1800a7c31
test rbx, rbx
je 0x1800a7c31
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a7c17
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1800a7b49
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a7c17
mov edi, dword [rbp + 0xf]
shl rdi, 0x20
add rdi, rsi
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp - 0x11], r14
mov rsi, r15
mov qword [rbp - 9], r15
mov dword [rbp - 1], r15d
lea r14d, [rdi + 1]
cmp r14d, 1
jae 0x1800a7b80
mov dword [rbp - 0x19], r15d
jmp 0x1800a7be7
lea ecx, [r14 + 1]
call fcn.18017ea5c
mov rsi, rax
mov qword [rbp - 9], rax
mov byte [rax], 0
mov dword [rbp - 1], r14d
mov dword [rbp - 0x19], r15d
cmp qword [rbx], 0xffffffffffffffff
je 0x1800a7bda
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x19]
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a7bda
mov eax, dword [rbp - 0x19]
cmp eax, edi
jne 0x1800a7bda
mov byte [rax + rsi], 0
lea rcx, [rbp - 0x11]
call fcn.1800a8530
mov dil, 1
mov rsi, qword [rbp - 9]
jmp 0x1800a7c04
lea rcx, [rbp - 0x11]
call fcn.1800a8530
mov rsi, qword [rbp - 9]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a7c01
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800a7c01
mov qword [rbx], 0xffffffffffffffff
xor dil, dil
test rsi, rsi
je 0x1800a7c34
mov rcx, rsi
call fcn.18017e41c
mov qword [rbp - 9], r15
jmp 0x1800a7c34
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a7c31
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800a7c31
mov qword [rbx], 0xffffffffffffffff
xor dil, dil
test rbx, rbx
je 0x1800a7c60
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800a7c4f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 8
mov rcx, rbx
call fcn.18017e41c
mov qword [rbp - 0x29], r15
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x1800a7c9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a7c97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a7cda
call fcn.18017e41c
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], r15w
movzx eax, dil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18017df00
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.180182c3c
nop
call fcn.180182c3c
nop
int3