Function at 0x4a69c89c
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4a69c8a4
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a69cb1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x4a69c8fd
push 0x100040
mov eax, dword [ebp - 0x14]
push eax
call fcn.4a69d2b8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, 0
call fcn.4a607c04
mov eax, dword [ebp - 4]
call fcn.4a607a64
cmp eax, 0x104
jle 0x4a69c92e
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.4a60801c
push dword [ebp - 4]
lea edx, [ebp - 0x1c]
mov eax, dword [0x4a6cc1ac]
call fcn.4a611c30
push dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov eax, dword [0x4a6cc16c]
call fcn.4a611c30
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.4a607da0
mov eax, dword [ebp - 0x18]
call fcn.4a607ee8
push eax
call fcn.4a696b94
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a69caf7
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
push ebp
push 0x4a69caf0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x150
push dword [ebp - 4]
lea edx, [ebp - 0x28]
mov eax, dword [0x4a6cc1ac]
call fcn.4a611c30
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
mov eax, dword [0x4a6cc174]
call fcn.4a611c30
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.4a607da0
mov eax, dword [ebp - 0x24]
call fcn.4a607ee8
push eax
call fcn.4a696cb4
mov ebx, eax
test ebx, ebx
je 0x4a69cad0
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xb7
je 0x4a69caca
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x4a69cac2
mov byte [ebp - 5], 1
mov edx, 0x150
mov eax, esi
call fcn.4a60df34
push 0
push 0x4a6d51dc
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
call sub.kernel32.dll_CreatePipe
mov dword [esi], ebx
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.4a607a64
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.4a607ee8
lea edx, [esi + 0x28]
pop ecx
call fcn.4a604a4c
push 0x150
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push esi
mov edi, ebx
mov ecx, 0x54
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push 0x4a69c33c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edi, eax
mov dword [esi + 0x24], edi
push 7
push edi
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
mov dword [esi + 0x130], eax
push esi
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x4a69cad0
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x4a69cad0
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a69caf7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a69cb21
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.4a607618
lea eax, [ebp - 4]
call fcn.4a6075ac
ret