Function at 0x4210b2
Capabilities:
Check if file exists
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4210d6
mov dword [ebp - 8], 1
cmp word [0x4551c4], bx
je 0x421281
push 0x14
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0042b620
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
cmp word [esi + 0x14], bx
jne 0x42116e
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp eax, ebx
jne 0x421114
push 1
pop eax
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jae 0x421182
sub ecx, eax
cmp ecx, 0x32
ja 0x421128
push 0x32
pop ecx
lea edi, [esi + 0x1e]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x421148
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x421281
jmp 0x421101
push dword [0x4552f0]
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421199
xor ebx, ebx
jmp 0x421101
push str.PIPE:_Giving_up_trying_to_connect_to_pipe_because_driver_is_closing
push dword [esi + 0x18]
call fcn.0041e63d
pop ecx
pop ecx
jmp 0x421281
push str.PIPE:_Timed_out_trying_to_connect_to_pipe
push dword [esi + 0x18]
call fcn.0041e63d
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x4212d0
push 0
lea eax, [ebp - 0xc]
push 0
push eax
push ebx
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4211ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PIPE:_Failed_to_set_pipe_client_state__error__u
push dword [esi + 0x18]
call fcn.0041e63d
add esp, 0xc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x144]
push 0x119
push eax
push 0x15e6
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov edi, eax
test edi, edi
jne 0x421256
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x421245
xor edi, edi
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x421256
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
test edi, edi
jne 0x421256
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PIPE:_Failed_to_transact_with_pipe__error__u
jmp 0x42124b
push edi
push str.PIPE:_Failed_to_transact_with_pipe__non_overlapped___error__u
push dword [esi + 0x18]
call fcn.0041e63d
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x421281
cmp dword [ebp - 4], 4
je 0x421285
push dword [ebp - 4]
push str.PIPE:_Length_of_reply_message_is_invalid___u_bytes_
push dword [esi + 0x18]
call fcn.0041e63d
add esp, 0xc
xor eax, eax
jmp 0x4212d0
lea eax, [esi + 0x1e]
push eax
push str.PIPE:_Successfully_connected_to_existing_driver_through_pipe___s_
push dword [esi + 0x18]
call fcn.0041e63d
mov eax, 0x8009
add esp, 0xc
cmp word [ebp - 0x144], ax
je 0x4212c0
push eax
movzx eax, word [ebp - 0x144]
push eax
push str.PIPE:_Existing_driver_is_different_version___u_rather_than__u_
push dword [esi + 0x18]
call fcn.0041e63d
add esp, 0x10
mov al, byte [ebp - 0x142]
and al, 1
neg al
sbb eax, eax
and eax, 2
dec eax
pop edi
pop esi
pop ebx
leave
ret 8