Function at 0x4017e0
Capabilities:
Connect pipe
Create pipe
Create thread
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb9c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0xb98], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
push str.__terminate
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], edi
call fcn.004034e0
add esp, 8
test eax, eax
je 0x401842
call fcn.00401640
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb98]
xor ecx, esp
call fcn.00402f98
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x98]
push eax
call fcn.00402dd0
add esp, 4
lea esi, [esp + 0x98]
call fcn.00402f30
call fcn.00401390
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1a4]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x1a0]
push eax
push str..pipeprintfab_1_xlock_ws
mov ecx, 0x200
lea ebx, [esp + 0x7a8]
call fcn.004012d0
lea ecx, [esp + 0x1a8]
push ecx
push str..pipeprintfab_1_xuser_ws
mov ecx, 0x200
lea ebx, [esp + 0x3b0]
call fcn.004012d0
lea edx, [esp + 0x7b0]
push edx
push str._nPrintFabMonitor:_creating_lock_pipe__ws_n
call fcn.004012c0
add esp, 0x18
push edi
push edi
push 0x10000
push 0x10000
push 1
push 6
push 3
lea eax, [esp + 0x7bc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
jne 0x40191a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe_failed__GLE_d._nAnother_instance_of_PrintFabMonitor_running__nExiting_n
call fcn.004012c0
mov ecx, dword [esp + 0xbac]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00402f98
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x3a8]
push edx
push 0x401b20
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTime]
jmp 0x401940
lea eax, [esp + 0x38]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x1c]
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x2a]
push eax
push ecx
push edx
push str._.02d__.02d__.02d__.02d:_.02d:_.02d
mov ecx, 0x40
lea edi, [esp + 0x74]
call fcn.00401040
add esp, 0x1c
mov eax, edi
push eax
lea ecx, [esp + 0x3a4]
push ecx
push str._nPrintFabMonitor:_Main_thread_awaiting_client_connection_on__ws_at__s_n
call fcn.004012c0
add esp, 0xc
push 0
push 0
push 0x10000
push 0x10000
push 0xff
push 6
push 0x40003
lea edx, [esp + 0x3bc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe_failed__GLE_d._n
call fcn.004012c0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401940
mov ecx, esi
call fcn.00401490
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x401a2e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
xor ecx, ecx
cmp eax, 0x217
sete cl
mov eax, ecx
test eax, eax
je 0x401adf
lea edx, [esp + 0x48]
push edx
call ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
push edx
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
push eax
push ecx
push str._.02d__.02d__.02d__.02d:_.02d:_.02d
mov ecx, 0x40
lea edi, [esp + 0x74]
call fcn.00401040
add esp, 0x1c
mov edx, edi
push edx
push str.Client_connected__creating_a_processing_thread_at__s._n
call fcn.004012c0
add esp, 8
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x401be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed__GLE_d._n
call fcn.004012c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401940
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401940
call edi
push eax
push str.ConnectNamedPipe_failed__GLE_d._n
call fcn.004012c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401940