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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov r12d, 0x103
lea rcx, [rbp + 0x111]
xor r15d, r15d
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x110], r15b
call fcn.180007020
lea rax, [rbp + 0x110]
lea edx, [r15 + 0x1a]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x180040738]
mov rdx, qword [0x180041860]
lea rcx, [rbp + 0x110]
call qword [0x180040748]
lea rcx, [rbp + 0x221]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x220], r15b
call fcn.180007020
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x220]
call qword [0x180040740]
mov rdx, qword [0x180041830]
lea rcx, [rbp + 0x220]
call qword [0x180040748]
lea r8d, [r15 + 3]
mov qword [rsp + 0x30], r15
lea edx, [r15 + 1]
lea rcx, [rbp + 0x220]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001ab90
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rbx + 1]
call fcn.180006ae4
lea r9, [rbp + 0x580]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rbx + rdi], r15b
mov rdx, qword [0x180041868]
mov rcx, rdi
call qword [0x180040798]
test rax, rax
je 0x18001ab7e
cmp byte [rax + 0xb], 0x31
mov rdx, qword [0x180041870]
mov rcx, rdi
mov r14d, r15d
sete r14b
call qword [0x180040798]
mov rbx, rax
test rax, rax
je 0x18001ab7e
lea rdx, [0x180033150]
mov rcx, rax
call qword [0x180040798]
test rax, rax
je 0x18001ab7e
mov byte [rax], r15b
lea rcx, [rbp + 0x331]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x330], r15b
call fcn.180007020
test r14d, r14d
je 0x18001aa47
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x330]
call qword [0x180040740]
lea rdx, [rbx + 5]
lea rcx, [rbp + 0x330]
call qword [0x180040748]
lea rcx, [rsp + 0x68]
call fcn.180006cc8
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x440]
call qword [0x180040740]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x440]
call qword [0x180040748]
lea rdx, [rbp + 0x440]
lea rcx, [rbp + 0x330]
call fcn.180006aec
lea rcx, [rbp + 1]
mov r8, r12
xor edx, edx
mov byte [rbp], r15b
call fcn.180007020
mov rdx, qword [0x180041848]
lea rcx, [rbp]
call qword [0x180040740]
mov rdx, qword [0x1800415f8]
lea rcx, [rbp]
call qword [0x180040748]
mov rdx, qword [0x180041878]
lea rcx, [rbp]
call qword [0x180040748]
lea rdx, [0x18003314c]
lea rcx, [rbp]
call qword [0x180040748]
lea rdx, [rbp + 0x440]
lea rcx, [rbp]
call qword [0x180040748]
lea rdx, [0x18003314c]
lea rcx, [rbp]
call qword [0x180040748]
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.180007020
lea rax, [0x180048360]
lea rdx, [rbp]
mov qword [rbp - 0x60], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rbp - 0x70], 0x68
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x50], r15
call qword [0x180040828]
mov rcx, rsi
call qword [0x180040690]
mov rcx, rdi
call qword [0x1800406d0]
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret