Function at 0x40f6b0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69d9fb
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8b8], ecx
mov eax, dword [ebp + 8]
push eax
push str.in_FastbootAL35ExecuteCommandLine__cmdline_s_r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x844], 0xc
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 1
push 0
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40f74c
xor al, al
jmp 0x40fc66
push 0x44
push 0
lea edx, [ebp - 0x894]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x894], 0x44
lea ecx, [ebp - 0x894]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x854], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x868], 0x100
xor ecx, ecx
mov word [ebp - 0x864], cx
lea edx, [ebp - 0x838]
push edx
lea eax, [ebp - 0x894]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40f843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x89c], eax
push 0
push 0
lea edx, [ebp - 0x898]
push edx
push 0x400
mov eax, dword [ebp - 0x89c]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x898]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x6c6518
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x898]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x40fc66
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x830]
push edx
push 0x6c6504
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 0x824], 0
push 0x800
push 0
lea eax, [ebp - 0x823]
push eax
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x825], 0
push 0x6c48e9
lea ecx, [ebp - 0x14]
call fcn.0040dbe0
mov dword [ebp - 4], 0
push 1
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
cmp eax, 0x102
sete dl
mov byte [ebp - 0x825], dl
push 0
lea eax, [ebp - 0x848]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx edx, byte [ebp - 0x825]
test edx, edx
jne 0x40f90c
cmp dword [ebp - 0x848], 0
ja 0x40f90c
mov dword [ebp - 0x8bc], 0
jmp 0x40f916
mov dword [ebp - 0x8bc], 1
cmp dword [ebp - 0x8bc], 0
je 0x40fa11
push 0x6c48ea
lea ecx, [ebp - 0x8a0]
call fcn.0040dbe0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x848], 0
jbe 0x40f9cd
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x8a4], eax
cmp dword [ebp - 0x8a4], 0x800
jbe 0x40f966
mov dword [ebp - 0x8a4], 0x800
push 0
lea ecx, [ebp - 0x8a4]
push ecx
mov edx, dword [ebp - 0x8a4]
push edx
lea eax, [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x8a4]
mov byte [ebp + edx - 0x824], 0
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x8a0]
call fcn.0040e920
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e920
mov edx, dword [ebp - 0x848]
sub edx, dword [ebp - 0x8a4]
mov dword [ebp - 0x848], edx
jmp 0x40f937
lea ecx, [ebp - 0x8a0]
call fcn.0040e940
movzx eax, al
test eax, eax
jne 0x40f9f5
mov ecx, dword [ebp - 0x8a0]
push ecx
push 0x6c6568
call fcn.0066610b
add esp, 8
jmp 0x40f9fd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a0]
call fcn.004014d0
jmp 0x40f8b4
push 0xffffffffffffffff
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.readSecState
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
je 0x40fab0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0
push str.Secure_boot_enable
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x40fa8a
mov eax, dword [ebp - 0x8b8]
mov byte [eax + 0x210], 1
push 0
push str.BootLoader_flash_otp_enable
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x40faab
mov ecx, dword [ebp - 0x8b8]
mov byte [ecx + 0x211], 1
jmp 0x40fc4a
push 0
push str.APP_is_Running
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x40fae7
push str.run_app
mov edx, dword [ebp + 8]
push edx
call fcn.00404520
add esp, 8
test eax, eax
je 0x40fae7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x40fc4a
push 0
push 0x6c65c4
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
je 0x40fc22
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40fbe8
push 0x6c48eb
mov ecx, dword [ebp - 0x8b8]
add ecx, 0x20c
call fcn.0040dc60
push 0
push 0x6c65cc
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x8a8], eax
cmp dword [ebp - 0x8a8], 0
jl 0x40fbe8
push 0x6c65dc
call fcn.00666cf0
add esp, 4
add eax, dword [ebp - 0x8a8]
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp - 0x8a8]
push eax
push 0x6c65ec
lea ecx, [ebp - 0x14]
call fcn.00404540
mov dword [ebp - 0x8ac], eax
cmp dword [ebp - 0x8ac], 0
jle 0x40fbe8
mov ecx, dword [ebp - 0x8ac]
sub ecx, dword [ebp - 0x8a8]
push ecx
mov edx, dword [ebp - 0x8a8]
push edx
lea eax, [ebp - 0x8b0]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040fc90
mov dword [ebp - 0x8c0], eax
mov ecx, dword [ebp - 0x8c0]
mov dword [ebp - 0x8c4], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8c4]
push edx
mov ecx, dword [ebp - 0x8b8]
add ecx, 0x20c
call fcn.0040fe20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b0]
call fcn.004014d0
push 0x6c65f0
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x40fc20
push 0
push 0x6c65f8
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x40fc20
push 0
push 0x6c6618
lea ecx, [ebp - 0x14]
call fcn.00404540
jmp 0x40fc4a
push 0
push 0x6c666c
lea ecx, [ebp - 0x14]
call fcn.00404540
cmp eax, 0xffffffff
jle 0x40fc41
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x5001
jmp 0x40fc4a
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x5004
mov byte [ebp - 0x8b1], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004014d0
mov al, byte [ebp - 0x8b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 0xc