Function at 0x4602a7
Capabilities:
Connect pipe
Print debug messages
Read pipe
Write pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2328
call fcn.004a98b0
mov eax, dword [0x4dd52c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x2318], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x2328], eax
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [ebp - 0x2320], eax
xor eax, eax
push 0x7f
mov word [ebp - 0x304], dx
pop ecx
lea edi, [ebp - 0x302]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp esi, edx
mov word [ebp - 0x1304], dx
mov ecx, 0x3ff
lea edi, [ebp - 0x1302]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2324], edx
mov dword [ebp - 0x231c], edx
stosw word es:[edi], ax
mov ebx, 0x800
je 0x4603f2
cmp dword [esi + 0x1dfa8], 1
jne 0x4603f2
mov eax, dword [esi + 0x1dfac]
cmp eax, edx
je 0x4603f2
cmp eax, 3
jb 0x4603f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2314]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x40cb70
mov ecx, 0x400
lea edi, [ebp - 0x1304]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2306]
push 0x40cb5c
push eax
movzx eax, word [ebp - 0x2308]
push eax
movzx eax, word [ebp - 0x230a]
push eax
movzx eax, word [ebp - 0x230c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1304]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1304]
push eax
jne 0x4603d4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4603f2
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
push dword [ebp - 0x2318]
lea eax, [ebp - 0x304]
push 0x40cb2c
push 0x40c920
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
test esi, esi
je 0x46053f
cmp dword [esi + 0x1dfa8], 1
jne 0x46053f
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x46053f
cmp eax, 3
jb 0x46053f
and word [ebp - 0x2304], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [ebp - 0x2302]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x304]
push eax
push 0x40cb08
lea eax, [ebp - 0x2304]
push ebx
push eax
call fcn.00431bde
add esp, 0x10
cmp dword [esi + 0x1dfa8], 1
jne 0x46053f
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x46053f
cmp eax, 3
jb 0x46053f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2314]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1304]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2304]
push eax
movzx eax, word [ebp - 0x2306]
push 0x40cb5c
push eax
movzx eax, word [ebp - 0x2308]
push eax
movzx eax, word [ebp - 0x230a]
push eax
movzx eax, word [ebp - 0x230c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1304]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1304]
push eax
jne 0x460521
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46053f
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
mov eax, dword [ebp + 0x18]
push 0x4e20
add eax, eax
lea ecx, [ebp - 0x2324]
push ecx
push eax
push dword [ebp - 0x2320]
mov dword [ebp - 0x2318], eax
push eax
jmp 0x4606a0
push 0x3f
mov byte [ebp - 0x104], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104]
push 0x40cacc
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
test esi, esi
je 0x460668
cmp dword [esi + 0x1dfa8], 1
jne 0x460668
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x460668
cmp eax, 3
jb 0x460668
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2314]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x40ca58
mov ecx, 0x400
lea edi, [ebp - 0x1304]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2306]
push 0x40cb5c
push eax
movzx eax, word [ebp - 0x2308]
push eax
movzx eax, word [ebp - 0x230a]
push eax
movzx eax, word [ebp - 0x230c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1304]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1304]
push eax
jne 0x46064a
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x460668
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [ebp - 0x231c], 0xa
je 0x4606ea
inc dword [ebp - 0x231c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4e20
lea eax, [ebp - 0x2324]
push eax
push dword [ebp - 0x2318]
push dword [ebp - 0x2320]
push dword [ebp - 0x2318]
push dword [ebp - 0x2328]
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
je 0x460563
push 0x405a00
push dword [ebp - 0x2320]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x46079e
cmp dword [ebp - 0x2324], 0
je 0x46079e
xor eax, eax
jmp 0x4607f8
test esi, esi
je 0x4607f5
cmp dword [esi + 0x1dfa8], 1
jne 0x4607f5
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4607f5
cmp eax, 3
jb 0x4607f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2314]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x40c9d8
xor eax, eax
lea edi, [ebp - 0x1304]
mov ecx, 0x400
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2306]
push 0x40cb5c
push eax
movzx eax, word [ebp - 0x2308]
push eax
movzx eax, word [ebp - 0x230a]
push eax
movzx eax, word [ebp - 0x230c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1304]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1304]
push eax
jne 0x4607d7
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4607f5
test esi, esi
je 0x4607f5
cmp dword [esi + 0x1dfa8], 1
jne 0x4607f5
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4607f5
cmp eax, 3
jb 0x4607f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2314]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x40c970
jmp 0x46072e
add esi, 0x1dfa4
push 0x4060a8
push dword [esi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [esi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x14