Function at 0x1800a7a70
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 [0x180268080]
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, [0x1801e5bb0]
lea rcx, [rbp - 0x11]
call fcn.1800099c0
nop
lea r9, [rbp - 0x11]
mov r8d, ebx
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.1800a7f20
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1800a7b32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a7b2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a7d70
call fcn.18017ebfc
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
cmp qword [rbp + 0x27], 0
jne 0x1800a7b52
xor dil, dil
jmp 0x1800a7cf0
mov qword [rbp - 0x29], r15
mov ecx, 8
call fcn.18017e70c
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.18001b5c0
mov rbx, qword [rbp - 0x29]
test al, al
je 0x1800a7cc1
test rbx, rbx
je 0x1800a7cc1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a7ca7
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1800a7bd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a7ca7
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 0x1800a7c10
mov dword [rbp - 0x19], r15d
jmp 0x1800a7c77
lea ecx, [r14 + 1]
call fcn.18017f23c
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 0x1800a7c6a
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 0x1800a7c6a
mov eax, dword [rbp - 0x19]
cmp eax, edi
jne 0x1800a7c6a
mov byte [rax + rsi], 0
lea rcx, [rbp - 0x11]
call fcn.1800a85c0
mov dil, 1
mov rsi, qword [rbp - 9]
jmp 0x1800a7c94
lea rcx, [rbp - 0x11]
call fcn.1800a85c0
mov rsi, qword [rbp - 9]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a7c91
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800a7c91
mov qword [rbx], 0xffffffffffffffff
xor dil, dil
test rsi, rsi
je 0x1800a7cc4
mov rcx, rsi
call fcn.18017ebfc
mov qword [rbp - 9], r15
jmp 0x1800a7cc4
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800a7cc1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800a7cc1
mov qword [rbx], 0xffffffffffffffff
xor dil, dil
test rbx, rbx
je 0x1800a7cf0
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800a7cdf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov edx, 8
mov rcx, rbx
call fcn.18017ebfc
mov qword [rbp - 0x29], r15
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x1800a7d2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a7d27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a7d6a
call fcn.18017ebfc
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.18017e6e0
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.18018341c
nop
call fcn.18018341c
nop
int3