Function at 0x140220f40
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1411d99d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
add rcx, 0x68
mov qword [rsp + 0x40], rcx
je 0x140220f7b
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMutex::lock_void____ptr64]
or qword [rsp + 0x40], 1
mov byte [0x1411dd025], 1
mov byte [0x1411dd05a], 0
mov rcx, rbx
cmp byte [rbx + 0x28], 0
jne 0x140220f99
call fcn.1402ac2f0
jmp 0x140220f9e
call fcn.1402ac2d0
cmp byte [0x1411dd026], 0
jne 0x1402211b9
xor esi, esi
mov rax, qword [0x1411dcc50]
mov rcx, qword [rax + 0xc]
cmp byte [rbx + 0x58], sil
jne 0x140221002
movzx eax, byte [rcx + 1]
mov byte [rbx + 0x16], al
mov rax, qword [0x1411dcc50]
mov rcx, qword [rax + 0xc]
mov rax, qword [rcx + 2]
mov qword [rbx + 0x38], rax
mov rax, qword [0x1411dcc50]
mov rcx, qword [rax + 0xc]
mov eax, dword [rcx + 0xa]
mov dword [rbx + 0x10], eax
test eax, eax
je 0x140220ff6
cmp eax, 8
jbe 0x1402210e6
mov dword [rbx + 0x10], 1
jmp 0x1402210e6
mov eax, dword [rcx + 0xa]
mov dword [rbx + 0x10], eax
test eax, eax
je 0x140221011
cmp eax, 8
jbe 0x140221018
mov dword [rbx + 0x10], 1
lea rcx, [rbx + 0x60]
lea rdx, [rsp + 0x58]
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 0x140221031
mov rax, qword [rax]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1402210a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022109d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14022109d
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], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
cmp rdi, 0xffffffffffffffff
je 0x1402210e6
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rbx + 0x10]
shl ecx, 9
mov rax, qword [rsp + 0x48]
cqo
idiv rcx
mov qword [rbx + 0x38], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x28], sil
jne 0x14022118a
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
nop
mov dword [0x1411edc68], esi
mov word [0x1411edc70], si
mov dword [0x1411edc6c], esi
mov word [0x1411dcca8], 0
mov byte [0x1411dccaa], 0
mov dword [0x1411dd04e], 0
mov word [0x1411dd052], 0
mov qword [0x1411dcdb0], rsi
mov qword [0x1411dcd30], rsi
mov word [0x1411dd025], 1
mov byte [0x1411dd05a], 0
lea rcx, [0x1411dc830]
call fcn.14007cc90
mov rcx, rbx
call fcn.14021c770
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
jmp 0x140221192
mov rcx, rbx
call fcn.14021a350
cmp byte [0x1411dd026], 0
jne 0x1402211b9
mov rcx, rbx
cmp byte [rbx + 0x28], 1
jne 0x1402211b0
mov edx, 1
call fcn.1402ac250
jmp 0x1402211c1
xor edx, edx
call fcn.1402ac250
jmp 0x1402211c1
mov rcx, rbx
call fcn.1402ac3e0
mov rcx, rbx
cmp byte [rbx + 0x28], 0
jne 0x1402211d1
call fcn.1402ac2b0
jmp 0x1402211d6
call fcn.1402ac290
mov word [0x1411dd025], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMutexLocker::destructor_void____ptr64]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402b25d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret