Function at 0x140172c60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1411d99d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov qword [rsp + 0x50], rdx
xor edi, edi
mov rax, qword [rdx]
cmp dword [rax + 4], edi
je 0x140172ee5
mov dword [rsp + 0x40], edi
mov ebp, edi
mov qword [rsp + 0x48], 0xfffffffffffffe00
lea rdx, [rsp + 0x58]
mov rcx, rsi
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 0x140172cc7
mov rax, qword [rax]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140172d39
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140172d34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140172d34
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], rdi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], di
cmp rbx, 0xffffffffffffffff
je 0x140172ee5
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], rdi
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 0x140172dbf
cmp al, 9
je 0x140172dbf
cmp al, 7
jne 0x140172dc4
mov ebp, 0x200
jmp 0x140172dc4
mov ebp, 0x18a
mov rcx, r14
call fcn.1402b2268
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r15d, [rbp + 0x200]
mov eax, r15d
neg rax
mov qword [rsp + 0x48], rax
mov ecx, r15d
call fcn.1402b2a70
mov r14, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x58]
mov rcx, rsi
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 0x140172e17
mov rax, qword [rax]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140172e89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140172e84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140172e84
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], rdi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], di
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], rdi
lea r9, [rsp + 0x40]
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, ebp
mov rdi, qword [rax + r14]
mov rcx, r14
call fcn.1402b2268
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b25d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret