Function at 0x18001a430
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 [0x18003e6f8]
mov rdx, qword [0x18003f820]
lea rcx, [rbp + 0x110]
call qword [0x18003e708]
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 [0x18003e700]
mov rdx, qword [0x18003f7f0]
lea rcx, [rbp + 0x220]
call qword [0x18003e708]
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 0x18001a728
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 [0x18003f828]
mov rcx, rdi
call qword [0x18003e758]
test rax, rax
je 0x18001a716
cmp byte [rax + 0xb], 0x31
mov rdx, qword [0x18003f830]
mov rcx, rdi
mov r14d, r15d
sete r14b
call qword [0x18003e758]
mov rbx, rax
test rax, rax
je 0x18001a716
lea rdx, [0x180031ac8]
mov rcx, rax
call qword [0x18003e758]
test rax, rax
je 0x18001a716
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 0x18001a5df
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x330]
call qword [0x18003e700]
lea rdx, [rbx + 5]
lea rcx, [rbp + 0x330]
call qword [0x18003e708]
lea rcx, [rsp + 0x68]
call fcn.180006c7c
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x440]
call qword [0x18003e700]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x440]
call qword [0x18003e708]
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 [0x18003f808]
lea rcx, [rbp]
call qword [0x18003e700]
mov rdx, qword [0x18003f5b8]
lea rcx, [rbp]
call qword [0x18003e708]
mov rdx, qword [0x18003f838]
lea rcx, [rbp]
call qword [0x18003e708]
lea rdx, [0x180031ac4]
lea rcx, [rbp]
call qword [0x18003e708]
lea rdx, [rbp + 0x440]
lea rcx, [rbp]
call qword [0x18003e708]
lea rdx, [0x180031ac4]
lea rcx, [rbp]
call qword [0x18003e708]
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.180006fd4
lea rax, [0x180046320]
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 [0x18003e7e8]
mov rcx, rsi
call qword [0x18003e650]
mov rcx, rdi
call qword [0x18003e690]
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