Function at 0x51d780
Capabilities:
Check for time delay via gettickcount
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x30], 0x7530
mov eax, dword [ebp + 8]
push eax
push str.QualCmdline_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 - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x51d7fc
xor eax, eax
jmp 0x51db1d
push 0x44
push 0
lea edx, [ebp - 0x80]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x80], 0x44
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x100
xor ecx, ecx
mov word [ebp - 0x50], cx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x80]
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 0x51d8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x494], eax
push 0
push 0
lea edx, [ebp - 0x490]
push edx
push 0x400
mov eax, dword [ebp - 0x494]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x490]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.::QualExecuteCmdLine___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 eax, dword [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x51db1d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
push 0x758fa8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x84], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], 0
mov eax, 1
test eax, eax
je 0x51daa4
push 0
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x51da37
cmp dword [ebp - 0x84], 0
je 0x51da37
push str.Qual_ReadFile_r_n
call fcn.0066610b
add esp, 4
push 0
lea eax, [ebp - 0x48c]
push eax
push 0x3ff
lea ecx, [ebp - 0x488]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51d99a
jmp 0x51daa4
mov eax, dword [ebp - 0x48c]
mov byte [ebp + eax - 0x488], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x51d9d5
lea edx, [ebp - 0x488]
push edx
push 0x758fcc
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push str.____1_r_n
call fcn.0066610b
add esp, 4
push str.Qualcomm_In
lea eax, [ebp - 0x488]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x51da12
mov dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x34]
push ecx
push str._____bCOM_d_r_n
call fcn.0066610b
add esp, 8
push str.____2_r_n
call fcn.0066610b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
push str.____3_r_n
call fcn.0066610b
add esp, 4
jmp 0x51da97
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51da5a
mov eax, dword [ebp - 0x34]
push eax
push str.QualExecuteCmdLine_WAIT_OBJECT_0__bCOM_d_r_n
call fcn.0066610b
add esp, 8
jmp 0x51daa4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, 0x7530
jbe 0x51da7e
push str.Wait_for_timeout.
push 0x759044
call fcn.0066610b
add esp, 8
jmp 0x51daa4
cmp dword [ebp - 0x34], 0
je 0x51da97
mov ecx, dword [ebp - 0x34]
push ecx
push str.else_bCOM_d_break_r_n
call fcn.0066610b
add esp, 8
jmp 0x51daa4
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x51d925
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str.QualExitCode_d_r_n
call fcn.0066610b
add esp, 8
push 0x759078
mov eax, dword [ebp + 8]
push eax
call fcn.00404520
add esp, 8
test eax, eax
je 0x51db18
cmp dword [ebp - 0x34], 0
jne 0x51db18
push str.FindQualcomm.exe_Fond_Target_Com_failed_r_n
call fcn.0066610b
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x707
xor eax, eax
jmp 0x51db1d
mov eax, 1
mov ecx, dword [ebp - 0x88]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret