Function at 0x14002dc68
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x4df70]
mov eax, 0x4e070
call fcn.140001a50
sub rsp, rax
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4df60], rax
mov rdi, r8
mov rsi, rdx
mov r15, rcx
lea r14, vtable.micro::files::QFile.0
mov qword [rsp + 0x60], r14
xor r13d, r13d
mov qword [rsp + 0x68], r13
lea rbx, [0x14012da68]
mov rdx, rbx
cmp qword [rsi + 8], r13
cmovne rdx, qword [rsi + 8]
xor r8d, r8d
lea rcx, [rsp + 0x60]
call fcn.1400e82c4
test al, al
je 0x14002dff4
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov eax, 0xffffffff
cmp qword [rsp + 0x38], rax
jg 0x14002dff4
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r13
mov rdx, rbx
cmp qword [rdi + 8], r13
cmovne rdx, qword [rdi + 8]
mov r8d, 0x1000
lea rcx, [rsp + 0x48]
call fcn.1400e82c4
test al, al
je 0x14002dfd7
mov qword [rbp + 0x4df50], 0x88b1f
mov word [rbp + 0x4df58], 0xff00
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
lea r8d, [r13 + 0xa]
lea rdx, [rbp + 0x4df50]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [rsp + 0x30], 0xa
jne 0x14002dfd7
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov rax, qword [rsp + 0x38]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14002dde9
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
lea esi, [rax + 4]
mov r8d, esi
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea ebx, [rsi - 3]
jmp 0x14002dfe3
mov rcx, qword [r15 + 0x40]
test rcx, rcx
je 0x14002de1a
mov rdx, rbx
cmp qword [rsi + 8], r13
cmovne rdx, qword [rsi + 8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp qword [rdi + 8], r13
cmovne rbx, qword [rdi + 8]
mov rcx, qword [r15 + 0x40]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov edx, 0xffff
lea rcx, [rbp - 0x60]
call fcn.140024ca0
nop
lea rax, vtable.micro::qsec::QCRC32.0
mov qword [rsp + 0x78], rax
mov eax, 0xffffffff
mov dword [rbp - 0x80], eax
mov r14d, dword [rsp + 0x40]
mov qword [rbp - 0x30], r13
xor edx, edx
mov r8d, 0x4df70
lea rcx, [rbp - 0x28]
call sub.msvcrt.dll_memset
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
lea rax, [rsp + 0x48]
mov qword [rbp - 0x78], rax
movsxd rdx, dword [r15 + 8]
lea r9, [0x14010f3b8]
mov eax, r13d
mov r8d, 0x4000
cmp edx, 3
cmovle eax, r8d
mov r9d, dword [r9 + rdx*4]
or r9d, eax
test edx, edx
jne 0x14002de93
bts r9d, 0x13
lea r8, [rbp - 0x78]
lea rcx, [rbp - 0x30]
call fcn.14002d8d4
mov esi, 4
lea ebx, [rsi - 3]
mov eax, 0xffff
mov edi, eax
cmp r14, rax
cmovb rdi, r14
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [rsp + 0x30]
cmp rax, rdi
jne 0x14002dfb8
mov r8, rdi
mov rdx, qword [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.1400e9028
sub r14, rdi
mov qword [rsp + 0x38], rdi
mov rax, r14
neg rax
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [rsp + 0x28], ecx
lea r8, [rsp + 0x38]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.14002d71c
cmp eax, ebx
je 0x14002df69
test eax, eax
jne 0x14002dfb8
mov rcx, qword [r15 + 0x40]
test rcx, rcx
je 0x14002dea8
mov r8d, dword [rsp + 0x40]
mov rax, qword [rcx]
mov edx, r8d
sub rdx, r14
call qword [rax + 0x28]
mov rcx, qword [r15 + 0x40]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x40]
mov rcx, qword [r15 + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x48]
test al, al
jne 0x14002dfb8
jmp 0x14002dea8
mov eax, dword [rbp - 0x80]
not eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x38]
mov r8d, esi
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x38]
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x14002dfbb
mov bl, r13b
lea rax, vtable.micro::utils::QBaseArray.0
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14002dfdc
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14002dfdc
mov bl, r13b
jmp 0x14002dfe3
lea r14, vtable.micro::files::QFile.0
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x48]
call fcn.1400e8500
jmp 0x14002dff7
mov bl, r13b
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x60]
call fcn.1400e8500
mov al, bl
mov rcx, qword [rbp + 0x4df60]
xor rcx, rsp
call fcn.140001010
add rsp, 0x4e070
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret