Function at 0x410d50
Capabilities:
Check if file exists
Create pipe
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x415900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], ecx
push ebx
push 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], ecx
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], ecx
call esi
push ebx
push 1
mov edi, eax
push ebx
push ebx
mov dword [esp + 0x60], edi
call esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov al, byte [ebp + 0x38]
mov dword [esp + 0x30], ebx
test al, al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x58], bl
je 0x410f02
cmp dword [ebp + 0x5c], ebx
je 0x410e0d
mov dword [0x4208d8], 1
call dword [ebp + 0x5c]
mov dword [0x4208d4], eax
mov dword [0x4208d0], 0xc
mov dword [ebp + 0x5c], ebx
mov eax, dword [ebp + 0x64]
push 0x4208d0
push 0xea60
push 0x10000
push 0x10000
push 0xff
push 6
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
mov dword [esp + 0x1c], esi
jne 0x410ea3
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], ebx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CreateNamedPipe
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
mov edx, dword [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push edx
call esi
mov eax, dword [esp + 0x54]
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x4111ae
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, ebx
jne 0x410ef0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SetEvent
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
add esp, 0xc
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 4], ebx
jmp 0x4111ae
lea edx, [ebp + 0x64]
or edi, 0xffffffff
mov dword [esp + 0x10], edx
push str.RR_ServerReadyEvent
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
jne 0x410f6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x410ff9
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.OpenEvent
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
add esp, 0xc
jmp 0x410ff9
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x410fb7
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x41c198
call fcn.00413dc4
push ecx
mov dword [esp + 0x70], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Server_did_not_respond.
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x70], edi
call fcn.00406ff0
jmp 0x410fef
cmp eax, edi
jne 0x410ff2
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.WaitForSingleObject
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push ebx
push 0xe0000000
push 3
mov eax, dword [eax]
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x1c], esi
jne 0x411155
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x411050
mov ecx, dword [esp + 0x10]
push 0x61a8
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x411119
jmp 0x410f0c
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
mov eax, dword [esp + 0x14]
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push eax
push str.CreateFile
push edx
mov dword [esp + 0x78], 5
call sub.MFC42u.DLL_operator_2
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, ebx
je 0x4110d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4110d7
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 6
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.CloseHandle__worker.hReadEvent_
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
add esp, 0xc
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x41122c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41122c
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 7
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.CloseHandle__worker.hWriteEvent_
jmp 0x41113e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.WaitNamedPipe
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
add esp, 0xc
jmp 0x41122c
cmp esi, ebx
je 0x41122c
push ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
push esi
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4111ae
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4207b8
call fcn.00413dc4
push ecx
mov dword [esp + 0x6c], 9
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SetNamedPipeHandleState
call fcn.00413dc4
push ebx
mov dword [esp + 0x70], edi
call fcn.00406a10
add esp, 0xc
cmp esi, ebx
je 0x41122c
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x44]
cmp eax, ebx
jne 0x4111ec
mov edx, dword [ebp + 0x54]
push 0x48
lea eax, [ebp + 0x50]
push edx
push eax
call sub.MFC42u.DLL_CPlex::Create
mov ecx, dword [ebp + 0x54]
add eax, 4
lea edx, [ecx + ecx*8]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*8 - 0x48]
jl 0x4111ec
inc ecx
mov edx, dword [ebp + 0x4c]
mov dword [eax], edx
mov dword [ebp + 0x4c], eax
sub eax, 0x48
dec ecx
jne 0x4111de
mov edx, dword [ebp + 0x4c]
mov ecx, 0x10
mov eax, dword [edx]
mov dword [ebp + 0x4c], eax
mov dword [edx + 4], esi
mov dword [edx], ebx
mov esi, dword [ebp + 0x48]
lea ebx, [edx + 8]
inc esi
xor eax, eax
mov edi, ebx
mov dword [ebp + 0x48], esi
lea esi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x411226
mov dword [eax], edx
jmp 0x411229
mov dword [ebp + 0x40], edx
mov dword [ebp + 0x44], edx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret