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

Disassembly:
push 0xffffffffffffffff
push 0x427cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4334ac]
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]
push ebx
push ebx
push ebp
push 0x40cbd0
push ebx
push ebx
mov dword [esp + 0x4c], eax
call fcn.004178ad
add esp, 0x18
test eax, eax
jbe 0x40b61f
lea eax, [esp + 0x3c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1dc], ebx
cmp eax, ebx
jne 0x40b61f
mov byte [esp + 0x1b], bl
jmp 0x40b580
mov edi, 0x40000003
cmp byte [esp + 0x1b], bl
jne 0x40b595
mov byte [esp + 0x1b], 1
mov edi, 0x400c0003
xor ecx, ecx
cmp cx, word [0x437418]
jne 0x40b5b7
push str.6652
push str..pipe_sogouCloudImeAgentPipe_s
mov edx, 0x437418
call fcn.004049a0
add esp, 8
push ebx
push ebx
push 0x2000
push 0x2000
push 0xff
push 4
push edi
push 0x437418
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b626
test edi, 0x80000
jne 0x40b580
mov byte [esp + 0x20], bl
mov dword [esp + 0x1c], ebx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x1dc], 1
call fcn.004058e0
push 0x42ec44
push 0x42b32c
mov edx, eax
call fcn.00408980
add esp, 8
mov ecx, ebx
call fcn.00404c90
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x40b6d5
cmp dword [0x437010], ebx
jne 0x40b63c
mov edi, 0x437010
call fcn.00405f20
test al, al
je 0x40b651
mov edx, dword [0x437010]
push ebx
push edx
push ebx
push ebx
push 4
push 6
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 6
push esi
call fcn.00406190
add esp, 8
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x40b6a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x40b6ff
cmp eax, 0x3e5
jne 0x40b6a6
mov edx, dword [esp + 0x34]
push 0x3e80
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x40b70e
cmp eax, 0x102
jne 0x40b684
mov eax, dword [ebp]
test eax, eax
jne 0x40b684
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp]
test ecx, ecx
jne 0x40b580
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._ncloud_agent_stopped._n
call fcn.00416f02
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.00415c3e
add esp, 0x1cc
ret 4
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40b6a6
push 8
mov byte [ebp + 4], 1
call fcn.00417028
add esp, 4
cmp eax, ebx
je 0x40b6b8
push ebx
push ebx
push eax
push 0x40b950
push ebx
push ebx
mov dword [eax + 4], esi
mov dword [eax], ebp
call fcn.004178ad
add esp, 0x18
test eax, eax
ja 0x40b580
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x40b6d5