Function at 0x140023d7c
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15, r8
mov rdi, rcx
lea rsi, vtable.micro::utils::QString.0
mov qword [rsp + 0x40], rsi
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], r13d
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
lea rcx, [rsp + 0x30]
call fcn.1400ea694
nop
lea rcx, [rdi + 0x48]
cmp qword [rcx + 8], r13
jne 0x140023e03
mov bl, r13b
jmp 0x140023e14
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.1400e9958
mov bl, al
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.1400e712c
test bl, bl
jne 0x140023e4d
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x50]
call fcn.1400e712c
nop
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x40]
call fcn.1400e712c
xor al, al
jmp 0x140024002
lea rcx, [rdi + 0x20]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
call qword [rax + 0x30]
lea rsi, [0x14012da68]
mov rdx, rsi
cmp qword [r15 + 8], r13
cmovne rdx, qword [r15 + 8]
mov r8d, 0x1000
lea rcx, [rbp - 0x40]
call fcn.1400e825c
nop
mov edx, 0x80000
lea rcx, [rbp - 0x18]
call fcn.140024ca0
nop
mov r12, qword [rsp + 0x60]
mov rbx, r12
mov r14b, r13b
test r12, r12
je 0x140023f47
mov eax, 0x80000
mov r8d, eax
cmp rbx, rax
cmovb r8d, ebx
mov dword [rbp + 0x60], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x60]
mov rdx, qword [rbp + 8]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140023f47
mov eax, dword [rbp + 0x60]
test eax, eax
je 0x140023f47
mov r8d, eax
mov dword [rbp + 0x78], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x78]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [rbp + 0x60]
sub rbx, rax
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140023f3a
mov rax, qword [rcx]
mov rdx, r12
sub rdx, rbx
mov r8, r12
call qword [rax + 0x28]
mov rcx, qword [rdi + 0xa0]
mov rax, qword [rcx]
mov edx, dword [rbp + 0x60]
call qword [rax + 0x40]
mov rcx, qword [rdi + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x48]
test al, al
jne 0x140023f44
test rbx, rbx
je 0x140023faa
jmp 0x140023ea5
mov r14b, 1
test rbx, rbx
je 0x140023faa
cmp qword [r15 + 8], r13
cmovne rsi, qword [r15 + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test r14b, r14b
jne 0x140023faa
or r8d, 0xffffffff
lea rdx, str.Write_Error
lea rcx, [rbp - 0x28]
call fcn.1400e6fc8
nop
lea rbx, vtable.micro::utils::QString.0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r13
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400e7b9c
nop
lea rdx, [0x14016bc48]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
nop
lea rax, vtable.micro::utils::QBaseArray.0
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140023fc5
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, vtable.micro::files::QFile.0
mov qword [rbp - 0x40], rcx
lea rcx, [rbp - 0x40]
call fcn.1400e8500
nop
lea rbx, vtable.micro::utils::QString.0
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x50]
call fcn.1400e712c
nop
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x40]
call fcn.1400e712c
mov al, 1
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret