Function at 0x140021204
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x658]
sub rsp, 0x730
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov rbx, r8
mov r14, rcx
add rcx, 0x20
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x30]
mov rax, qword [r14 + 0x38]
mov qword [rsp + 0x78], rax
lea rdx, [0x14012da68]
cmp qword [rbx + 8], 0
cmovne rdx, qword [rbx + 8]
mov r8d, 0x1000
lea rcx, [rsp + 0x58]
call fcn.1400e825c
nop
cmp qword [rsp + 0x60], 0
je 0x1400215c7
xor r15d, r15d
and dword [rsp + 0x40], r15d
xor esi, esi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, vtable.micro::qsec::QCRC32.0
mov qword [rbp - 0x10], rcx
or eax, 0xffffffff
mov dword [rbp - 8], eax
mov qword [rbp + 0x1b0], rcx
mov dword [rbp + 0x1b8], eax
or qword [rbp + 0x1c0], 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x140132c08]
lea rcx, [rbp + 0x1c8]
call fcn.1400eaa4c
lea rbx, vtable.micro::qsec::QSha256.0
mov qword [rbp + 0x1c8], rbx
mov dword [rbp + 0x1a8], 1
xor r8d, r8d
lea rdx, [0x140132c08]
lea rcx, [rbp + 0x1e0]
call fcn.1400eaa4c
mov qword [rbp + 0x1e0], rbx
lea rax, [0x140171058]
mov qword [rbp], rax
and qword [rbp + 8], rsi
and dword [rbp + 0x10], esi
lea rax, [rbp + 0x70]
lea ecx, [rsi + 4]
and qword [rax], rsi
lea rax, [rax + 0x28]
dec rcx
jne 0x140021326
and dword [rbp - 0x60], ecx
and dword [rbp - 0x5c], ecx
and qword [rbp - 0x18], rcx
mov ecx, 0x8000
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
mov qword [rbp - 0x70], rax
mov ecx, 0x200000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp - 0x68], rax
test rbx, rbx
je 0x14002157f
test rax, rax
je 0x14002157f
xor r13d, r13d
mov ecx, dword [rsp + 0x40]
cmp r15d, ecx
jne 0x1400213a8
xor r15d, r15d
and dword [rsp + 0x40], r15d
and qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 0x8000
mov rdx, rbx
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x40]
mov rbx, qword [rbp - 0x70]
mov eax, ecx
sub eax, r15d
mov qword [rsp + 0x70], rax
mov eax, 0x200000
sub eax, esi
mov qword [rsp + 0x48], rax
xor eax, eax
test ecx, ecx
sete al
mov r9d, r15d
add r9, rbx
mov edx, esi
add rdx, qword [rbp - 0x68]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call fcn.140022310
mov ebx, eax
mov rdi, qword [rsp + 0x70]
add r15d, edi
add esi, dword [rsp + 0x48]
add r13, rdi
mov rcx, qword [r14 + 0xa0]
test rcx, rcx
je 0x140021444
mov r9, qword [rcx]
mov r8, qword [rsp + 0x78]
mov rdx, r13
call qword [r9 + 0x28]
mov rcx, qword [r14 + 0xa0]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x40]
mov rcx, qword [r14 + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x48]
test al, al
jne 0x1400214a3
test rdi, rdi
jne 0x140021450
cmp qword [rsp + 0x48], rdi
je 0x140021459
test ebx, ebx
jne 0x140021459
xor dil, dil
jmp 0x14002145c
mov dil, 1
cmp esi, 0x200000
je 0x140021469
test dil, dil
je 0x14002149a
test esi, esi
je 0x140021493
and dword [rsp + 0x48], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400214c6
xor esi, esi
test dil, dil
jne 0x1400214fc
mov rbx, qword [rbp - 0x70]
jmp 0x140021372
lea rcx, [rbp]
call fcn.140021d3c
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x14002159d
lea rax, vtable.micro::utils::QString.0
mov qword [rsp + 0x78], rax
and qword [rbp - 0x80], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e7960
nop
lea rdx, [0x14016bc48]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll__CxxThrowException
int3
test ebx, ebx
jne 0x14002151a
cmp dword [rsp + 0x50], 3
jne 0x140021513
cmp dword [rbp - 0x60], 4
jne 0x140021513
test byte [rbp - 0x20], 3
je 0x140021518
mov ebx, 1
test ebx, ebx
sete bl
lea rcx, [rbp]
call fcn.140021d3c
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.msvcrt.dll_free]
nop
lea rcx, [rbp + 0x1e0]
call fcn.1400eaabc
lea rcx, [rbp + 0x1c8]
call fcn.1400eaabc
lea rax, vtable.micro::qsec::QCRC32B.0
mov qword [rbp + 0x1b0], rax
mov qword [rbp - 0x10], rax
lea rax, vtable.micro::files::QFile.0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.1400e8500
mov al, bl
jmp 0x1400215df
lea rcx, [rbp]
call fcn.140021d3c
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.msvcrt.dll_free]
nop
lea rcx, [rbp + 0x1e0]
call fcn.1400eaabc
lea rcx, [rbp + 0x1c8]
call fcn.1400eaabc
lea rax, vtable.micro::qsec::QCRC32B.0
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x1b0], rax
lea rax, vtable.micro::files::QFile.0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.1400e8500
xor al, al
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret