Function at 0x180019c54
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.18000687c
lea rax, [rbp + 0x110]
lea edx, [r15 + 0x1a]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x18003e738]
mov rdx, qword [0x18003f860]
lea rcx, [rbp + 0x110]
call qword [0x18003e748]
lea rcx, [rbp + 0x221]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x220], r15b
call fcn.18000687c
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x220]
call qword [0x18003e740]
mov rdx, qword [0x18003f830]
lea rcx, [rbp + 0x220]
call qword [0x18003e748]
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 0x180019f4c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rbx + 1]
call fcn.180006340
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 [0x18003f868]
mov rcx, rdi
call qword [0x18003e798]
test rax, rax
je 0x180019f3a
cmp byte [rax + 0xb], 0x31
mov rdx, qword [0x18003f870]
mov rcx, rdi
mov r14d, r15d
sete r14b
call qword [0x18003e798]
mov rbx, rax
test rax, rax
je 0x180019f3a
lea rdx, [0x180031a20]
mov rcx, rax
call qword [0x18003e798]
test rax, rax
je 0x180019f3a
mov byte [rax], r15b
lea rcx, [rbp + 0x331]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x330], r15b
call fcn.18000687c
test r14d, r14d
je 0x180019e03
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x330]
call qword [0x18003e740]
lea rdx, [rbx + 5]
lea rcx, [rbp + 0x330]
call qword [0x18003e748]
lea rcx, [rsp + 0x68]
call fcn.180006524
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x440]
call qword [0x18003e740]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x440]
call qword [0x18003e748]
lea rdx, [rbp + 0x440]
lea rcx, [rbp + 0x330]
call fcn.180006348
lea rcx, [rbp + 1]
mov r8, r12
xor edx, edx
mov byte [rbp], r15b
call fcn.18000687c
mov rdx, qword [0x18003f848]
lea rcx, [rbp]
call qword [0x18003e740]
mov rdx, qword [0x18003f5f8]
lea rcx, [rbp]
call qword [0x18003e748]
mov rdx, qword [0x18003f878]
lea rcx, [rbp]
call qword [0x18003e748]
lea rdx, [0x180031a1c]
lea rcx, [rbp]
call qword [0x18003e748]
lea rdx, [rbp + 0x440]
lea rcx, [rbp]
call qword [0x18003e748]
lea rdx, [0x180031a1c]
lea rcx, [rbp]
call qword [0x18003e748]
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.18000687c
lea rax, [0x180046390]
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 [0x18003e828]
mov rcx, rsi
call qword [0x18003e690]
mov rcx, rdi
call qword [0x18003e6d0]
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