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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6af11a
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x755613
lea ecx, [ebp - 0x40]
call fcn.0040dbe0
mov dword [ebp - 4], 0
push 0x75564a
lea ecx, [ebp - 0x2c]
call fcn.00404630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020b0
mov byte [ebp - 4], 2
mov eax, dword [0x7dde08]
push eax
push 0x75c6d8
call fcn.005128e0
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00666cf0
add esp, 4
test eax, eax
jbe 0x52bcf0
mov byte [ebp - 0x821], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov al, byte [ebp - 0x821]
jmp 0x52c426
push 0x75c6e0
push 0x7e47e8
call fcn.00404520
add esp, 8
test eax, eax
je 0x52bd79
mov edx, dword [0x7dde08]
push edx
push 0x75c6e4
call fcn.005128e0
add esp, 8
push eax
call fcn.00666b8d
add esp, 4
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00403050
test eax, eax
je 0x52bd79
mov byte [ebp - 0x822], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov al, byte [ebp - 0x822]
jmp 0x52c426
mov byte [ebp - 0x23c], 0
push 0x1f3
push 0
lea edx, [ebp - 0x23b]
push edx
call fcn.006665c0
add esp, 0xc
mov byte [ebp - 0x34c], 0
push 0x103
push 0
lea eax, [ebp - 0x34b]
push eax
call fcn.006665c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x34c]
push ecx
call fcn.0049f360
add esp, 8
push str._bincommon_fastboot.exe
lea edx, [ebp - 0x34c]
push edx
call fcn.00666bb0
add esp, 8
lea eax, [ebp - 0x34c]
push eax
push str.__s__devices
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0066926d
add esp, 0xc
mov dword [ebp - 0x240], 0
mov edx, 1
test edx, edx
je 0x52c3ff
lea eax, [ebp - 0x23c]
push eax
push str.in_Creat_fastboot_process__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 dword [ebp - 0x37c], 0xc
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x374], 1
push 0
lea ecx, [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x52beb7
push str.Create_fastboot_Pipe_fail._r_n
call fcn.0066610b
add esp, 4
mov byte [ebp - 0x823], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov al, byte [ebp - 0x823]
jmp 0x52c426
push 0x44
push 0
lea ecx, [ebp - 0x3cc]
push ecx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x3cc], 0x44
lea edx, [ebp - 0x3cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
push 1
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x38c], ecx
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x390], edx
mov dword [ebp - 0x3a0], 0x100
xor eax, eax
mov word [ebp - 0x39c], ax
lea ecx, [ebp - 0x370]
push ecx
lea edx, [ebp - 0x3cc]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x52c000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7d8], eax
push 0
push 0
lea ecx, [ebp - 0x7d4]
push ecx
push 0x400
mov edx, dword [ebp - 0x7d8]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x7d4]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push str.failed_at_CreateProcess___nCommand___s_r_nMessage___s_r_n
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp - 0x7d4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Create_fastboot_process_fail._r_n
call fcn.0066610b
add esp, 4
mov byte [ebp - 0x824], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov al, byte [ebp - 0x824]
jmp 0x52c426
mov eax, dword [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x368]
push ecx
push str.subprocessid_d_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x358], 0x400
lea ecx, [ebp - 0x360]
call fcn.00401490
mov byte [ebp - 4], 3
mov edx, 1
test edx, edx
je 0x52c139
push 0
lea eax, [ebp - 0x7d0]
push eax
push 0x3ff
lea ecx, [ebp - 0x7cc]
push ecx
mov edx, dword [ebp - 0x35c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x52c088
jmp 0x52c139
mov eax, dword [ebp - 0x7d0]
mov byte [ebp + eax - 0x7cc], 0
lea ecx, [ebp - 0x7cc]
push ecx
lea ecx, [ebp - 0x7dc]
call fcn.0040dbe0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x7dc]
push edx
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x828]
push ecx
call fcn.00468e90
add esp, 0xc
mov dword [ebp - 0x838], eax
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x83c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x360]
call fcn.0040fe20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x828]
call fcn.004014d0
lea ecx, [ebp - 0x7cc]
push ecx
push 0x75c7c8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7dc]
call fcn.004014d0
jmp 0x52c04b
mov dword [ebp - 0x380], 0xffffffff
push 0
push 0x75c7cc
lea ecx, [ebp - 0x360]
call fcn.00404540
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x52c2b7
mov edx, dword [ebp - 0x380]
add edx, 1
push edx
lea eax, [ebp - 0x7e4]
push eax
lea ecx, [ebp - 0x360]
call fcn.00401270
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x380]
add ecx, 1
push ecx
push 0
lea ecx, [ebp - 0x360]
call fcn.004545c0
mov dword [ebp - 0x7e0], 0xffffffff
push 0
push 9
lea ecx, [ebp - 0x7e4]
call fcn.00454810
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0xffffffff
je 0x52c2a3
mov edx, dword [ebp - 0x7e0]
push edx
lea eax, [ebp - 0x7e8]
push eax
lea ecx, [ebp - 0x7e4]
call fcn.00401270
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x82c], esp
lea edx, [ebp - 0x7e8]
push edx
call fcn.004014b0
mov dword [ebp - 0x840], eax
call fcn.0052c440
add esp, 4
mov byte [ebp - 0x841], al
movzx eax, byte [ebp - 0x841]
test eax, eax
je 0x52c294
lea ecx, [ebp - 0x804]
call fcn.004045c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x804]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x830], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.0040d8d0
mov dword [ebp - 0x848], eax
lea ecx, [ebp - 0x3c]
call fcn.00403180
lea ecx, [ebp - 0x804]
call fcn.00404810
push eax
lea eax, [ebp - 0x7e8]
push eax
call fcn.00413840
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x52c285
lea edx, [ebp - 0x7e8]
push edx
lea ecx, [ebp - 0x40]
call fcn.0040fe20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x804]
call fcn.00404770
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7e8]
call fcn.004014d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7e4]
call fcn.004014d0
jmp 0x52c143
push 0xffffffffffffffff
mov eax, dword [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x370]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.0040e940
movzx eax, al
test eax, eax
jne 0x52c383
push 0x75c7d0
lea ecx, [ebp - 0x820]
call fcn.00404630
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40]
call fcn.00489570
push eax
lea ecx, [ebp - 0x820]
call fcn.00412990
lea ecx, [ebp - 0x820]
push ecx
mov ecx, 0x10abc88
call fcn.004066d0
mov byte [ebp - 0x831], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x820]
call fcn.00404770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x360]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov al, byte [ebp - 0x831]
jmp 0x52c426
cmp dword [ebp - 0x240], 0x3c
jne 0x52c3d1
mov byte [ebp - 0x832], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x360]
call fcn.004014d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov al, byte [ebp - 0x832]
jmp 0x52c426
mov edx, dword [ebp - 0x240]
add edx, 1
mov dword [ebp - 0x240], edx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x360]
call fcn.004014d0
jmp 0x52be00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004014d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret