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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r15, r9
mov r14, r8
mov rax, rdx
cmp qword [rdx + 0x10], 0
jne 0x1400ec998
lea rdx, str.Invalid_parameters.
lea rcx, [rsp + 0x78]
call fcn.140027a80
mov rbx, rax
lea rax, str.PcFile.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcFile::ReadFromFile
mov edx, 4
lea r8d, [rdx + 0x24]
lea rcx, [rbp]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400ec98e
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14002e610
mov eax, 0x57
jmp 0x1400ecd38
lea rdx, vtable.CAutoHandle.0
mov qword [rsp + 0x58], rdx
lea rbx, [rcx + 8]
mov qword [rsp + 0x60], rbx
cmp qword [rax + 0x18], 8
jb 0x1400ec9b7
mov rax, qword [rax]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400eca27
lea ecx, [rdi + 6]
call fcn.1400294e0
test eax, eax
je 0x1400ecaaa
lea rax, str.Error:_File_not_found.
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x2f]
lea r8, str.CPcFile::ReadFromFile
lea rdx, str.PcFile.cpp
lea ecx, [rdi + 6]
call fcn.140029450
jmp 0x1400ecaaa
lea rdx, [rbp + 0x540]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400ecab4
lea rdx, str.Error:_File_size_not_obtained.
lea rcx, [rbp - 0x68]
call fcn.140027a80
mov rbx, rax
lea rax, str.PcFile.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcFile::ReadFromFile
mov edx, 4
lea r8d, [rdx + 0x31]
lea rcx, [rbp + 0x150]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0x150]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400ecaaa
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.14002e610
mov edi, 2
jmp 0x1400ecd17
mov rcx, qword [rbp + 0x540]
call fcn.14026ded8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x548], xmm0
movzx r8d, byte [rsp + 0x40]
mov rdx, rax
lea rcx, [rbp + 0x548]
call fcn.140055480
nop
mov rsi, qword [rbp + 0x548]
test rsi, rsi
setne al
test al, al
jne 0x1400ecb6b
lea rdx, str.Error:_not_enough_memory.
lea rcx, [rbp - 0x48]
call fcn.140027a80
mov rbx, rax
lea rax, str.PcFile.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcFile::ReadFromFile
mov edx, 4
lea r8d, [rdx + 0x37]
lea rcx, [rbp + 0x2a0]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0x2a0]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1400ecb61
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.14002e610
mov edi, 8
jmp 0x1400ecc31
mov dword [rbp + 0x558], edi
mov qword [rbp + 0x560], rdi
xor eax, eax
mov qword [rbp + 0x568], rax
mov qword [rbp + 0x570], rax
mov qword [rbp + 0x578], rax
lea rax, [rbp + 0x560]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x558]
mov r8d, dword [rbp + 0x540]
mov rdx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ecc3d
lea rdx, str.Error:_Read_fault.
lea rcx, [rbp - 0x28]
call fcn.140027a80
mov rbx, rax
lea rax, str.PcFile.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcFile::ReadFromFile
mov edx, 4
lea r8d, [rdx + 0x3f]
lea rcx, [rbp + 0x3f0]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0x3f0]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400ecc2c
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.14002e610
mov edi, 0x1e
mov rbx, qword [rbp + 0x550]
jmp 0x1400eccdb
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov rbx, qword [rbp + 0x550]
test rbx, rbx
je 0x1400ecc64
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x550]
mov rsi, qword [rbp + 0x548]
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14002f180
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x50], rcx
mov qword [r14 + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [r14], rax
test rcx, rcx
je 0x1400eccd2
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400ecccb
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ecccb
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x550]
mov eax, dword [rbp + 0x558]
mov dword [r15], eax
test rbx, rbx
je 0x1400ecd17
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ecd17
mov rbx, qword [rbp + 0x550]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ecd17
mov rcx, qword [rbp + 0x550]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400ecd36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov eax, edi
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x698
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret