Function at 0x18001a014
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.180006fd4
lea rax, [rbp + 0x110]
lea edx, [r15 + 0x1a]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x18003e6b8]
mov rdx, qword [0x18003f7e0]
lea rcx, [rbp + 0x110]
call qword [0x18003e6c8]
lea rcx, [rbp + 0x221]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x220], r15b
call fcn.180006fd4
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x220]
call qword [0x18003e6c0]
mov rdx, qword [0x18003f7b0]
lea rcx, [rbp + 0x220]
call qword [0x18003e6c8]
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 0x18001a30c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rbx + 1]
call fcn.180006a98
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 [0x18003f7e8]
mov rcx, rdi
call qword [0x18003e718]
test rax, rax
je 0x18001a2fa
cmp byte [rax + 0xb], 0x31
mov rdx, qword [0x18003f7f0]
mov rcx, rdi
mov r14d, r15d
sete r14b
call qword [0x18003e718]
mov rbx, rax
test rax, rax
je 0x18001a2fa
lea rdx, [0x180031b08]
mov rcx, rax
call qword [0x18003e718]
test rax, rax
je 0x18001a2fa
mov byte [rax], r15b
lea rcx, [rbp + 0x331]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x330], r15b
call fcn.180006fd4
test r14d, r14d
je 0x18001a1c3
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x330]
call qword [0x18003e6c0]
lea rdx, [rbx + 5]
lea rcx, [rbp + 0x330]
call qword [0x18003e6c8]
lea rcx, [rsp + 0x68]
call fcn.180006c7c
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x440]
call qword [0x18003e6c0]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x440]
call qword [0x18003e6c8]
lea rdx, [rbp + 0x440]
lea rcx, [rbp + 0x330]
call fcn.180006aa0
lea rcx, [rbp + 1]
mov r8, r12
xor edx, edx
mov byte [rbp], r15b
call fcn.180006fd4
mov rdx, qword [0x18003f7c8]
lea rcx, [rbp]
call qword [0x18003e6c0]
mov rdx, qword [0x18003f578]
lea rcx, [rbp]
call qword [0x18003e6c8]
mov rdx, qword [0x18003f7f8]
lea rcx, [rbp]
call qword [0x18003e6c8]
lea rdx, [0x180031b04]
lea rcx, [rbp]
call qword [0x18003e6c8]
lea rdx, [rbp + 0x440]
lea rcx, [rbp]
call qword [0x18003e6c8]
lea rdx, [0x180031b04]
lea rcx, [rbp]
call qword [0x18003e6c8]
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.180006fd4
lea rax, [0x18004c310]
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 [0x18003e7a8]
mov rcx, rsi
call qword [0x18003e610]
mov rcx, rdi
call qword [0x18003e650]
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