Function at 0x140075b30
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400e6280]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
call qword [sym.imp.Qt6Core.dll_public:_long_long___int64____cdecl_QString::length_void_const___ptr64]
cmp rax, 0x104
jl 0x140075c13
mov dl, 0x2f
lea rcx, [rsp + 0x44]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QChar::constructor_char____ptr64]
movzx ebx, word [rax]
lea rdx, [rsp + 0x46]
mov rcx, rdi
call qword [sym.imp.Qt6Core.dll_public:_class_QChar___cdecl_QString::front_void____ptr64]
cmp word [rax], bx
je 0x140075c13
mov dl, 0x5c
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QChar::constructor_char____ptr64]
movzx ebx, word [rax]
lea rdx, [rsp + 0x4a]
mov rcx, rdi
call qword [sym.imp.Qt6Core.dll_public:_class_QChar___cdecl_QString::front_void____ptr64]
cmp word [rax], bx
je 0x140075c13
mov rdx, rdi
lea rcx, [rsp + 0x80]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QString___cdecl_QDir::toNativeSeparators_class_QString_const____ptr64_]
mov rbx, rax
lea rdx, [0x1400bae88]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.Qt6Core.dll_public:_class_QString____ptr64___cdecl_QString::append_class_QString_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_class_QString____ptr64____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
jmp 0x140075c22
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public:_static_class_QString___cdecl_QDir::toNativeSeparators_class_QString_const____ptr64_]
nop
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.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], 7
jbe 0x140075c3f
mov rax, qword [rax]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rsp + 0xc0]
cmp rdx, 7
jbe 0x140075cb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140075cb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140075cb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a35d4
movdqa xmm0, xmmword [0x1400baf60]
movdqu xmmword [rsp + 0xb8], xmm0
mov word [rsp + 0xa8], bp
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp rbx, 0xffffffffffffffff
jne 0x140075ce8
xor al, al
jmp 0x140075d8d
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r9d, 0x10
lea r8, [rsp + 0x98]
mov edx, 0x980c8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140075d7f
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400a36a0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret