Function at 0x180156a20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x180156a52
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x180185450
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x180185593
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x180185626
mov rcx, qword [rsi + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x18018561d
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x48], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18018551c
nop
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x180185514
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x180185514
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1801854d0
test rdi, rdi
je 0x18018551c
mov rax, rdi
jmp 0x180185634
mov edx, 0xffffffff
lea rcx, [rsp + 0x88]
call sym.Qt5Core.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call sym.Qt5Core.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x180185571
cmp ecx, 0xffffffff
je 0x18018561d
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x88]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18018561d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x88]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rax, 0xffffffffffffffff
jmp 0x180185634
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
je 0x180185626
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x180185626
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x180185626
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QSystemError::stdString_int_
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call sym.Qt5Core.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFileDevice::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x18018560a
cmp ecx, 0xffffffff
je 0x18018561d
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x18018561d
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rax, 0xffffffffffffffff
jmp 0x180185634
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.180156a70
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret