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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
xor esi, esi
push esi
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x69b8eb
push 2
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0xc]
push eax
call esi
mov ecx, dword [ebp - 4]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x69b8f3
mov edx, dword [ebp - 4]
push edx
call esi
mov eax, dword [ebp - 8]
push eax
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call esi
xor eax, eax
push 0x44
push eax
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], pe_nt_image_headers32
mov dword [ebp - 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x69ba4f
push edi
push 0
push ebx
call sub.MSVCR100.dll_memset
lea eax, [ebx + edi - 1]
add esp, 0xc
mov esi, ebx
cmp ebx, eax
jae 0x69ba3d
mov eax, dword [ebp - 0xc]
push 0x2710
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x69b9d9
push eax
mov eax, dword [ebp - 0xc]
mov edx, ebx
lea ecx, [ebp - 0x10]
push ecx
sub edx, esi
add edx, edi
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x69b9d9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x69b9b0
sub eax, edx
add esi, eax
cmp dword [ebp - 0x10], 0
je 0x69b9d9
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x69b9d9
lea eax, [ebx + edi - 1]
cmp esi, eax
jb 0x69b976
cmp esi, ebx
je 0x69ba3d
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x69b9f1
mov byte [eax + 1], 0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x69b9f6
sub eax, edx
cmp eax, 2
jl 0x69ba1a
cmp byte [eax + ebx - 2], 0xd
jne 0x69ba1a
cmp byte [eax + ebx - 1], 0xa
jne 0x69ba1a
mov word [eax + ebx - 2], 0xa
dec eax
test eax, eax
je 0x69ba25
cmp byte [eax + ebx - 1], 0xa
je 0x69ba3a
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x69ba28
mov cx, word [0x6b27a0]
mov word [edi], cx
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret