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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ae36a
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x78], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push str.in_ADBExecuteCommandLine__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 - 0x2c], 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x51c5fa
xor eax, eax
jmp 0x51cb51
push 0x44
push 0
lea edx, [ebp - 0x74]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x74], 0x44
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x100
xor ecx, ecx
mov word [ebp - 0x44], cx
push 0x10abc64
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x51c6d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
push 0
push 0
lea ecx, [ebp - 0x484]
push ecx
push 0x400
mov edx, dword [ebp - 0x488]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x758a98
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x51cb51
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10abc6c]
push ecx
push 0x758ae8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x10], 0
push 0x7553a3
lea ecx, [ebp - 0x18]
call fcn.0040dbe0
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x51c7d0
push 0
lea eax, [ebp - 0x480]
push eax
push 0x3ff
lea ecx, [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51c75c
jmp 0x51c7d0
mov eax, dword [ebp - 0x480]
mov byte [ebp + eax - 0x47c], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x51c797
lea edx, [ebp - 0x47c]
push edx
push 0x758afc
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x48c]
call fcn.0040dbe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004174c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48c]
call fcn.004014d0
jmp 0x51c728
push 0x758b00
call fcn.0066610b
add esp, 4
push 0xffffffffffffffff
mov edx, dword [0x10abc64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x10abc64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [0x10abc64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10abc68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x758b18
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
je 0x51c9ce
lea ecx, [ebp - 0x498]
call fcn.00401490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x490]
call fcn.00401490
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x49c]
call fcn.00401490
mov byte [ebp - 4], 4
mov dword [ebp - 0x494], 0
push 0xa
mov ecx, dword [ebp - 0x494]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00489570
push eax
lea edx, [ebp - 0x498]
push edx
call fcn.00578182
test eax, eax
je 0x51c9a1
lea ecx, [ebp - 0x490]
call fcn.0040dff0
push 0
push 0x3d
lea ecx, [ebp - 0x498]
call fcn.00454810
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0xffffffff
je 0x51c98d
mov eax, dword [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
lea ecx, [ebp - 0x498]
call fcn.00401270
mov dword [ebp - 0x4b4], eax
mov edx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x490]
call fcn.0040fe20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4a4]
call fcn.004014d0
lea ecx, [ebp - 0x498]
call fcn.004014f0
sub eax, dword [ebp - 0x4a0]
sub eax, 1
push eax
lea ecx, [ebp - 0x4a8]
push ecx
lea ecx, [ebp - 0x498]
call fcn.004137c0
mov dword [ebp - 0x4bc], eax
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x49c]
call fcn.0040fe20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4a8]
call fcn.004014d0
push str..pax.persist.bt.mac
lea ecx, [ebp - 0x490]
call fcn.004138f0
test eax, eax
jne 0x51c98d
lea ecx, [ebp - 0x49c]
push ecx
mov ecx, 0x10abc84
call fcn.0040fe20
jmp 0x51c9a1
mov edx, dword [ebp - 0x494]
add edx, 1
mov dword [ebp - 0x494], edx
jmp 0x51c865
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x49c]
call fcn.004014d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x490]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x498]
call fcn.004014d0
push 0
push 0x758b44
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51ca1e
push 0
push str.not_supported
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51ca1e
push 0
push 0x758b5c
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51ca1e
push 0
push str.unknown_command
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
je 0x51ca61
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffffe
mov ecx, dword [ebp - 0x18]
push ecx
push 0x758b74
call fcn.0066610b
add esp, 8
mov dword [ebp - 0x4ac], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004014d0
mov eax, dword [ebp - 0x4ac]
jmp 0x51cb51
push str.systool
mov edx, dword [ebp + 8]
push edx
call fcn.00404520
add esp, 8
test eax, eax
je 0x51cb32
push str.systool_get_sysver
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
jne 0x51cb32
push str.systool_get_device_info
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404520
add esp, 8
test eax, eax
jne 0x51cb32
push str.systool_get_settings_info
mov edx, dword [ebp + 8]
push edx
call fcn.00404520
add esp, 8
test eax, eax
jne 0x51cb32
push 0
push str._SYSTOOL:0_
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51cae9
push 0
push str._SYNC:0_
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
je 0x51cb1c
push 0
push 0x758be4
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
je 0x51cb1c
push 0
push str._SYSTOOL:_101__unknown_command
lea ecx, [ebp - 0x18]
call fcn.00404540
cmp eax, 0xffffffff
jne 0x51cb1c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x51cb32
push str.systool_fail.has_no___SYSTOOL:0__ok___r_n
call fcn.0066610b
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xfffffffe
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004014d0
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x78]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret