Function at 0x402300
Capabilities:
Read pipe
Write pipe

Disassembly:
sub esp, 0x124
mov eax, dword [0x49ab28]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x134]
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
mov esi, dword [esp + 0x138]
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push str..pipeK7TSMngrService1
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_wsprintfA]
xor ebx, ebx
add esp, 8
cmp dword [esi], ebx
je 0x402359
mov ebx, dword [esi + 4]
lea ecx, [ebx + ebp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x402520
mov edx, dword [esp + 0x138]
mov dword [edi], 0x4b375453
mov dword [edi + 4], 0x1010
mov dword [edi + 8], 0x1c
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebp
test ebx, ebx
je 0x4023bd
mov eax, dword [esi]
lea ecx, [edi + 0x1c]
test eax, eax
je 0x4023bd
mov edx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.0046c470
add esp, 0xc
push 0
call fcn.0046feb9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 4
push 0
push 0
push 3
push 0
add eax, 5
push 0
mov dword [esp + 0x30], eax
push 0xc0000000
lea eax, [esp + 0x44]
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x402446
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x402419
push 0
call fcn.0046feb9
add esp, 4
cmp eax, dword [esp + 0x1c]
ja 0x402469
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x44]
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4023f1
push 0
push 0
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x402475
xor ebx, ebx
jmp 0x402502
cmp esi, 0xffffffff
jne 0x402446
xor ebx, ebx
jmp 0x40250e
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
add edx, 0x24
push edx
lea ebp, [edi + ebx + 0x1c]
push ebp
add ebx, 0x1c
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x4024a5
xor ebx, ebx
jmp 0x402502
mov eax, dword [esp + 0x10]
cmp eax, 0x24
jae 0x4024b2
xor ebx, ebx
jmp 0x402502
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4024c3
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [eax], ecx
jmp 0x402502
mov ecx, dword [esp + 0x14]
sub eax, 0x24
mov ebx, 1
mov dword [esp + 0x10], eax
cmp eax, ecx
jbe 0x4024dd
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
test eax, eax
je 0x4024f9
push eax
mov eax, dword [esp + 0x28]
lea edx, [ebp + 0x24]
push edx
push eax
call fcn.0046c470
add esp, 0xc
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
cmp esi, 0xffffffff
je 0x40250e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c1d2
add esp, 0x124
ret