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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
lea r13, vtable.micro::files::QFile.0
mov qword [rsp + 0x40], r13
and qword [rsp + 0x48], 0
lea r14, [rcx + 0x18]
lea rsi, [0x14012da68]
mov rdx, rsi
cmp qword [r14 + 8], 0
cmovne rdx, qword [r14 + 8]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.1400e82c4
test al, al
jne 0x1400507cc
xor bl, bl
jmp 0x1400509b0
lea rdx, [rbp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov rbx, qword [rbp + 0x58]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140024ca0
nop
lea r12, vtable.micro::utils::QBaseArray.0
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x14005099a
and dword [rbp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [rbp + 0x58]
mov rdi, qword [rbp - 0x78]
cmp rax, rbx
jne 0x14005099a
mov edx, ebx
mov rcx, rdi
call fcn.14005057c
test al, al
je 0x14005099a
movzx edx, byte [rdi + 0x10]
shl edx, 8
movzx eax, byte [rdi + 0x11]
add edx, eax
shl edx, 8
movzx eax, byte [rdi + 0x12]
add edx, eax
shl edx, 8
movzx eax, byte [rdi + 0x13]
add edx, eax
lea rcx, [rbp - 0x58]
call fcn.140024ca0
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140050983
and dword [rbp + 0x58], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, rcx
mov rcx, qword [rbp - 0x78]
call fcn.14005005c
test al, al
je 0x14005097f
or r8d, 0xffffffff
lea rdx, [0x14011aa58]
lea rcx, [rsp + 0x30]
call fcn.1400e6fc8
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400e8e08
nop
lea rbx, vtable.micro::utils::QString.0
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
call fcn.1400e712c
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400e8f80
nop
mov rax, qword [rsp + 0x38]
test rax, rax
cmovne rsi, rax
mov r8d, 0x1000
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.1400e825c
nop
mov r8d, dword [rbp + 0x58]
and dword [rbp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.1400ea694
nop
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.1400e7b9c
nop
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x58]
call fcn.1400e712c
nop
mov qword [rbp - 0x70], r13
lea rcx, [rbp - 0x70]
call fcn.1400e8500
nop
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
call fcn.1400e712c
nop
lea rcx, [rbp - 0x20]
call fcn.1400e8f00
mov bl, 1
mov rcx, qword [rbp - 0x38]
jmp 0x140050985
mov rcx, qword [rbp - 0x38]
xor bl, bl
mov qword [rbp - 0x58], r12
test rcx, rcx
je 0x140050994
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rdi, qword [rbp - 0x78]
jmp 0x14005099c
xor bl, bl
mov qword [rsp + 0x68], r12
test rdi, rdi
je 0x1400509b0
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x40]
call fcn.1400e8500
mov al, bl
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret