Function at 0x1400580e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd0]
xor r14d, r14d
mov r11d, r8d
mov qword [rsp + 0x90], rbp
mov rbp, rdx
mov qword [rsp + 0x48], r9
mov dword [rsp + 0x40], r11d
mov r10d, ecx
mov qword [rsp + 0x50], rax
cmp ecx, 0x224
jb 0x140058425
cmp r11d, 0x234
jb 0x140058425
movsxd r8, dword [rdx + 0x10]
lea eax, [r8 - 1]
movsxd rcx, eax
imul rdx, rcx, 0x210
add rdx, 0x224
cmp r10, rdx
je 0x140058171
lea rcx, str._AsusSync_FileTransfer__IsFileAccessible___Input_ERROR_NOT_ENOUGH_MEMORY__n
call fcn.140095ab0
lea r15d, [r14 + 8]
jmp 0x1400583e8
imul rcx, r8, 0x234
cmp r11, rcx
je 0x140058194
lea rcx, str._AsusSync_FileTransfer__IsFileAccessible___Output_ERROR_NOT_ENOUGH_MEMORY__n
call fcn.140095ab0
mov r15d, 8
jmp 0x1400583e8
xor eax, eax
mov r15d, r14d
mov qword [rsp + 0x60], rax
test r8d, r8d
jle 0x140058425
mov qword [rsp + 0x88], rsi
lea rsi, [r9 + 0x210]
mov qword [rsp + 0x80], rdi
lea rdi, [rbp + 0x14]
mov qword [rsp + 0x70], r13
mov r13d, r14d
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x78], r12
nop word [rax + rax]
lea rcx, [rsi - 0x210]
mov rax, rdi
mov edx, 4
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400581f0
movups xmm0, xmmword [rax]
mov dword [rsi], r14d
movups xmmword [rcx], xmm0
cmp word [rdi + 8], r14w
jne 0x14005826b
mov r8, qword [rdi]
lea rcx, str._AsusSync_FileTransfer__IsFileAccessible___session_id:0x_I64X__file_id:__d__path_is_empty._skip_it._n
mov rdx, qword [rbp + 8]
call fcn.140095ab0
jmp 0x14005835c
movsxd rax, r13d
lea r12, [rbp + 0x1c]
imul rcx, rax, 0x210
xor r9d, r9d
mov qword [rsp + 0x30], r14
add r12, rcx
mov dword [rsp + 0x28], 0x80
mov rcx, r12
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400582dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rdi]
lea rcx, str._AsusSync_FileTransfer__IsFileAccessible___session_id:0x_I64X__file_id:__d__path:__s__can_not_be_opened__error_code:__d._n
mov rdx, qword [rbp + 8]
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.140095ab0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsi], eax
jmp 0x14005835c
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
cmp qword [rsp + 0x60], r14
jle 0x140058353
lea r9, [rsp + 0x5c]
mov dword [rsp + 0x5c], r14d
mov r8d, 1
mov dword [rsi], r14d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140058353
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbx, 0xffffffffffffffff
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rdi]
lea rcx, str._AsusSync_FileTransfer__IsFileAccessible___session_id:0x_I64X__file_id:__d__path:__s__can_not_be_accessed__error_code:__d._n
mov rdx, qword [rbp + 8]
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.140095ab0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsi], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rbp + 0x10]
inc r13d
add rdi, 0x210
add rsi, 0x234
cmp r13d, eax
jl 0x1400581e0
mov r13, qword [rsp + 0x70]
mov edi, r14d
mov r12, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
test eax, eax
jle 0x1400583d8
mov r15, qword [rsp + 0x48]
mov rbx, r15
nop word [rax + rax]
mov r9d, dword [rbx + 0x210]
lea r8, [r15 + 8]
mov rdx, qword [rbx]
movsxd rax, edi
imul rcx, rax, 0x234
add r8, rcx
lea rcx, str._AsusSync_FileTransfer__IsFileAccessible___Finish_id:0x_I64X__path:__s__result:_d_n
call fcn.140095ab0
inc edi
lea rbx, [rbx + 0x234]
cmp edi, dword [rbp + 0x10]
jl 0x1400583a0
mov r15d, r14d
mov rbx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x80]
mov r11d, dword [rsp + 0x40]
mov r9, qword [rsp + 0x50]
mov eax, r15d
mov rbp, qword [rsp + 0x90]
test r9, r9
je 0x14005840c
test r15d, r15d
cmove r14d, r11d
mov dword [r9], r14d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x98
pop r15
pop r14
ret
mov r15d, 0x57
jmp 0x1400583ed