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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.1400c3110
sub rsp, rax
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbp, r8
mov r14, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x40]
call fcn.1400c5120
xor sil, sil
mov dword [rsp + 0x30], 0
test rbp, rbp
je 0x14008e908
mov edi, dword [rbp + 4]
lea r9, [rsp + 0x30]
add edi, 8
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14008e958
mov edx, dword [rsp + 0x30]
cmp edi, edx
jne 0x14008e958
cmp byte [rbx + 0x33], sil
je 0x14008e7ce
lea rcx, str._AsusSync_Phone__SendRPCRequest_WriteFile_:_d_n
call fcn.1400959a0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14008e92a
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x14008e92a
cmp edx, 0xd
jb 0x14008e908
mov eax, dword [rsp + 0x40]
cmp eax, 0x80003
je 0x14008e83e
cmp eax, 0x81005
jne 0x14008e8f3
mov rax, qword [rsp + 0x48]
test eax, eax
je 0x14008e8f3
mov edx, eax
lea rcx, str._AsusSync_Phone__SendRPCRequest_RPCCMD_PHONE_CALL_EX_and_get_error:0x_I64X_n
jmp 0x14008e8ea
lea eax, [rdx - 0xd]
cmp eax, 0x7d
jne 0x14008e8e3
mov eax, dword [rsp + 0x4c]
lea rcx, [rbx + 0xb6]
mov dword [rbx + 0x90], eax
lea rdx, [rsp + 0x72]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x94], eax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x98], eax
movzx eax, byte [rsp + 0x58]
mov byte [rbx + 0x9c], al
movzx eax, byte [rsp + 0x59]
mov byte [rbx + 0x9d], al
mov eax, dword [rsp + 0x5a]
mov dword [rbx + 0x9e], eax
mov eax, dword [rsp + 0x5e]
mov dword [rbx + 0xa2], eax
mov rax, qword [rsp + 0x62]
mov qword [rbx + 0xa6], rax
mov rax, qword [rsp + 0x6a]
mov qword [rbx + 0xae], rax
call fcn.140001cd0
cmp byte [rbx + 0x33], sil
je 0x14008e8ef
mov edx, dword [rbx + 0x90]
lea r9, [rbx + 0xd1]
lea r8, [rbx + 0xef]
lea rcx, str._AsusSync_Phone__SendRPCRequest_RPCCMD_PHONE_GET_STATE___state:_d__Name:_s__Number:_s_n
call fcn.1400959a0
jmp 0x14008e8ef
lea rcx, str._AsusSync_Phone__SendRPCRequest_RPCCMD_PHONE_GET_STATE_output_size_is_not_the_same_:_d_n
call fcn.1400959a0
mov edx, dword [rsp + 0x30]
cmp byte [rbx + 0x33], 0
mov sil, 1
je 0x14008e908
lea rcx, str._AsusSync_Phone__SendRPCRequest_ReadFile_:_d_n
call fcn.1400959a0
movzx eax, sil
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x1050
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov byte [rbx + 0x65], 1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x6d
jne 0x14008e947
lea rcx, str._AsusSync_Phone__SendRPCRequest_client_disconnected._n
call fcn.1400959a0
jmp 0x14008e908
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__SendRPCRequest_ReadFile_failed__GLE0x_I64X_n
jmp 0x14008e903
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str._AsusSync_Phone__SendRPCRequest_WriteFile_failed__GLE0x_I64X_n
call fcn.1400959a0
xor al, al
mov byte [rbx + 0x65], 1
jmp 0x14008e90c