Function at 0x4168d0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0xc94
mov dword [ebp - 0xc44], 0x445710
mov dword [ebp - 0xc40], 0x446a16
mov dword [ebp - 0xc3c], eax
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xc38], 0x416c92
mov dword [ebp - 0xc34], esp
mov dword [esp], eax
call fcn.004286e0
mov dword [ebp - 0xc58], 0xffffffff
call fcn.00417600
test al, al
jne 0x416940
lea eax, [ebp - 0xc5c]
mov dword [esp], eax
call fcn.00428750
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc64], eax
call eax
mov dword [ebp - 0xc68], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 0xc08], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x400
mov dword [esp + 8], eax
lea eax, [ebp - 0xc08]
mov dword [esp], eax
mov dword [ebp - 0xc58], 1
call fcn.00428ed0
cmp eax, 0x3ff
ja 0x416997
mov byte [ebp + eax - 0xc08], 0
lea eax, [ebp - 0xc20]
mov byte [ebp - 0x809], 0
mov dword [esp], eax
mov dword [ebp - 0xc58], 1
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xc1c]
xor eax, eax
sub esp, 4
xor ebx, ebx
mov edx, ecx
mov ecx, dword [ebp - 0xc20]
mov dword [esp + 8], 0x2710
mov dword [esp + 0xc], 0
add eax, ecx
adc edx, ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00428170
add eax, 0xcf499800
mov dword [esp + 8], 0x5f5e100
mov dword [esp + 0xc], 0
adc edx, 0xfffff568
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004282b0
lea ecx, [ebp - 0x808]
mov dword [ebp - 0xc60], eax
mov byte [ebp - 0x808], 0
mov dword [esp + 8], 0x400
mov dword [esp], 0
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x808]
sub esp, 0xc
mov dword [esp + 4], 0x5c
mov dword [esp], ecx
call sub.msvcrt.dll_strrchr
lea ecx, [ebp - 0x808]
lea edx, [eax + 1]
test eax, eax
mov dword [ebp - 0xc58], 1
cmove edx, ecx
mov dword [ebp - 0xc70], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc6c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0xc08]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0xc6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov edx, dword [ebp - 0xc70]
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0xc60]
mov edx, 0x10624dd3
mov ebx, dword [ebp - 0xc60]
mov dword [esp + 4], str.__05d._03d__s_p_04d_t_04d_:__s
imul edx
mov eax, ebx
sar eax, 0x1f
sar edx, 6
sub edx, eax
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ebx, eax
lea eax, [ebp - 0x408]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00432fb0
mov byte [ebp - 9], 0
jmp 0x416b30
mov eax, dword [ebp - 0xc64]
call eax
cmp eax, 0xe7
jne 0x416c71
mov dword [esp + 4], 0xffffffff
mov dword [esp], str..pipeDebugServer
mov dword [ebp - 0xc58], 1
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
sub esp, 8
test eax, eax
je 0x416c71
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x110000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..pipeDebugServer
mov dword [ebp - 0xc58], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0xc60], eax
je 0x416af3
lea eax, [ebp - 0xc28]
mov dword [ebp - 0xc28], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
mov dword [ebp - 0xc58], 1
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
lea edx, [ebp - 0x408]
sub esp, 0x10
mov dword [ebp - 0xc24], 0
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x416bd9
mov ecx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x10
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
mov ebx, eax
cmove edx, ecx
add bl, al
lea eax, [ebp - 0x408]
sbb edx, 3
sub edx, eax
lea eax, [ebp - 0xc24]
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc18]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x408]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
mov dword [ebp - 0xc58], 1
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov eax, dword [ebp - 0xc60]
sub esp, 0x1c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0xc68]
mov dword [esp], eax
mov dword [ebp - 0xc58], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x416928