Function at 0x140172f20
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1411d99d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov qword [r11 - 0x58], rdx
mov esi, 1
mov rax, qword [rdx]
cmp dword [rax + 4], 0
je 0x1401731bc
xor r13d, r13d
mov dword [r11 - 0x68], r13d
mov ebp, r13d
mov qword [r11 - 0x60], 0xfffffffffffffe00
lea rdx, [r11 - 0x50]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x140172f90
mov rax, qword [rax]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, esi
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140173001
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140172ffc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140172ffc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402b2268
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r13w
cmp rbx, 0xffffffffffffffff
je 0x1401731bc
mov ecx, 0x200
call fcn.1402b2a70
mov r14, rax
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, 2
lea r8, [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [r14 + 4]
cmp al, 6
je 0x140173088
cmp al, 9
je 0x140173088
cmp al, 7
jne 0x14017308d
mov ebp, 0x200
jmp 0x14017308d
mov ebp, 0x18a
mov rcx, r14
call fcn.1402b2268
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r12d, [rbp + 0x200]
mov eax, r12d
neg rax
mov qword [rsp + 0x48], rax
mov ecx, r12d
call fcn.1402b2a70
mov r15, rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x1401730e0
mov rax, qword [rax]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, esi
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140173151
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017314c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14017314c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402b2268
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r13w
mov r9d, 2
lea r8, [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [rbp + 0x1bb]
mov ebx, dword [rax + r15]
mov rcx, r15
call fcn.1402b2268
shr ebx, 9
test ebx, ebx
cmove ebx, esi
mov esi, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov eax, esi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b25d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret