Function at 0x465ca0
Capabilities:
Connect pipe
Create pipe
Create thread
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4cc576
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e4]
xor ebx, ebx
push ebx
push 1
xor eax, eax
push 1
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x38], eax
mov dword [esp + 0x1dc], ebx
cmp eax, ebx
jne 0x465dd2
mov byte [esp + 0x1b], bl
mov esi, 0x40000003
cmp byte [esp + 0x1b], bl
jne 0x465d45
mov byte [esp + 0x1b], 1
mov esi, 0x400c0003
xor ecx, ecx
cmp cx, word [0x51bff0]
jne 0x465d68
call fcn.00430710
push eax
push str..pipe_sogouCloudImeAgentPipe_s
mov edx, 0x51bff0
call fcn.0040c200
add esp, 8
push ebx
push ebx
push 0x2000
push 0x2000
push 0xff
push 4
push esi
push 0x51bff0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x465dd9
test esi, 0x80000
jne 0x465d30
mov byte [esp + 0x20], bl
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 1
call fcn.0042caa0
push 0x4f7df8
push 0x4f0ffc
mov edx, eax
call fcn.00430eb0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.0042c930
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x465e91
cmp dword [0x51bb10], ebx
jne 0x465def
mov esi, 0x51bb10
call fcn.004315c0
test al, al
je 0x465e04
mov edx, dword [0x51bb10]
push ebx
push edx
push ebx
push ebx
push 4
push 6
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 6
push edi
call fcn.004318b0
add esp, 8
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x465e62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x465ebb
cmp eax, 0x3e5
jne 0x465e62
jmp 0x465e40
mov edx, dword [esp + 0x34]
push 0x3e80
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x465eca
cmp eax, 0x102
jne 0x465e40
mov eax, dword [ebp]
test eax, eax
jne 0x465e40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp]
test ecx, ecx
jne 0x465d30
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._ncloud_agent_stopped._n
call fcn.004a9682
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004a4a25
add esp, 0x1cc
ret 4
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x465e62
push 8
mov byte [ebp + 4], 1
call fcn.004a5359
add esp, 4
cmp eax, ebx
je 0x465e74
push ebx
push ebx
push eax
push 0x466250
push ebx
push ebx
mov dword [eax + 4], edi
mov dword [eax], ebp
call fcn.004a5022
add esp, 0x18
test eax, eax
ja 0x465d30
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x465e91