Function at 0x14000abb0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140048010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 0x18], 4
ja 0x14000ae26
movzx edx, byte [rcx + 0x21]
movzx eax, byte [rcx + 0x22]
shl eax, 8
shl edx, 0x10
add edx, eax
mov qword [rsp + 0x50], rbx
movzx eax, byte [rcx + 0x20]
shl eax, 0x18
add edx, eax
movzx eax, byte [rcx + 0x23]
add edx, eax
sub edx, 0x3009001
je 0x14000ad15
cmp edx, 1
jne 0x14000ae21
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x14004abb0]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000aca0
mov edx, 0xff
mov dword [rsp + 0x40], ebx
lea rcx, str.MakeFnAndSpace
call fcn.1400195fc
mov rcx, qword [0x14004abb0]
lea r9, [rsp + 0x40]
lea rdx, str.MakeFnAndSpace
mov qword [rsp + 0x20], rbx
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000ae21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14000ac81
cmp eax, 0x6d
je 0x14000ac81
cmp eax, 0xe8
je 0x14000ac81
cmp eax, 0xe9
jne 0x14000ac10
mov rcx, qword [0x14004abb0]
test rcx, rcx
je 0x14000ac93
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004abb0], rbx
jmp 0x14000ac10
mov edx, 0x2710
lea rcx, str..pipecom.Lenovo.LPlatSvc.EmToSvc.Pipe
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x14000acf0
mov qword [rsp + 0x30], rbx
lea rcx, str..pipecom.Lenovo.LPlatSvc.EmToSvc.Pipe
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14004abb0], rax
cmp rax, 0xffffffffffffffff
jne 0x14000acff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ae21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000ac10
xor ebx, ebx
nop word [rax + rax]
mov rax, qword [0x14004abb0]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000adb0
mov edx, 0xff
mov dword [rsp + 0x40], ebx
lea rcx, str.ChangeKeyboardBacklitStatusChange
call fcn.1400195fc
mov rcx, qword [0x14004abb0]
lea r9, [rsp + 0x40]
lea rdx, str.ChangeKeyboardBacklitStatusChange
mov qword [rsp + 0x20], rbx
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000ae21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14000ad91
cmp eax, 0x6d
je 0x14000ad91
cmp eax, 0xe8
je 0x14000ad91
cmp eax, 0xe9
jne 0x14000ad20
mov rcx, qword [0x14004abb0]
test rcx, rcx
je 0x14000ada3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14004abb0], rbx
jmp 0x14000ad20
mov edx, 0x2710
lea rcx, str..pipecom.Lenovo.LPlatSvc.EmToSvc.Pipe
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x14000ae00
mov qword [rsp + 0x30], rbx
lea rcx, str..pipecom.Lenovo.LPlatSvc.EmToSvc.Pipe
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14004abb0], rax
cmp rax, 0xffffffffffffffff
jne 0x14000ae0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000ae21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000ad20
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400109a0
add rsp, 0x58
ret