Function at 0x488a20
Capabilities:
Create thread
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5329b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 1
call fcn.004872c0
push 0
push 0
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x488ed9
xor edi, edi
mov dword [ebp - 0x2c], vtable.t_mutex::t_locker.0
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x34], edi
push ecx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
mov ebx, 0x5c9e98
push eax
mov ecx, ebx
call fcn.004638b0
test al, al
mov dword [ebp - 0x1c], 3
cmove ebx, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
call fcn.004594a0
mov edi, eax
cmp word [edi + 0x1926], 0
lea ebx, [edi + 0x1926]
mov dword [ebp - 0x20], ebx
jne 0x488afd
push str.Local_sogoutool_pipe_multithreading_eventnew2
push 0x104
push ebx
call fcn.004e1af2
add esp, 0xc
call fcn.004602e0
push eax
push 0x104
push ebx
call fcn.004e7085
add esp, 0xc
lea eax, [edi + 0x5c0]
push eax
push 0x104
push ebx
call fcn.004e7085
add esp, 0xc
xor edi, edi
xor dl, dl
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x20], edi
jle 0x488bd5
xor ebx, ebx
mov eax, dword [esi + 0x2c]
push 0
add eax, 0x18
push 1
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x488b66
mov ecx, str._client__t_processPipeList::PickUpAnIdlePipe_Find_NoCreate_Pipe
call fcn.00486b90
push 0xc
call fcn.004d7188
mov ecx, dword [esi + 0x2c]
add esp, 4
mov edx, dword [esi + 0x24]
add ecx, ebx
mov edi, dword [esi + 0x28]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x24], eax
mov dword [eax], ecx
mov dword [eax + 8], edi
call fcn.004897e0
add esp, 4
test al, al
je 0x488ba8
mov edi, dword [ebp - 0x18]
mov eax, dword [esi + 0x2c]
push 3
add eax, 0x18
push 4
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 3
je 0x488bc8
mov eax, dword [esi + 0x2c]
push 2
add eax, 0x18
push 4
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 2
je 0x488bba
inc edi
add ebx, 0x20
mov dword [ebp - 0x18], edi
cmp edi, dword [esi + 0x20]
jl 0x488b12
jmp 0x488bd2
mov ecx, str._client__t_processPipeList::PickUpAnIdlePipe_ConnectPipeToAgent_thr_Fail
call fcn.00486b90
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x18], edi
jmp 0x488bd2
mov ecx, str._client__t_processPipeList::PickUpAnIdlePipe_Find_NewCreate_Pipe
call fcn.00486b90
mov dl, 1
jmp 0x488bd5
mov ecx, str._client__t_processPipeList::PickUpAnIdlePipe_Find_Idle_Pipe
call fcn.00486b90
mov dl, byte [ebp - 0xd]
mov eax, dword [esi + 0x20]
cmp edi, eax
je 0x488e2c
test edi, edi
js 0x488bf6
cmp edi, eax
jge 0x488bf6
mov eax, dword [esi + 0x2c]
mov ecx, edi
shl ecx, 5
mov eax, dword [eax + ecx + 0x14]
jmp 0x488bf9
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
test dl, dl
je 0x488c62
push 0
push edi
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x488de9
mov eax, dword [esi]
cmp eax, 1
jge 0x488c62
mov eax, dword [esi + eax*4 + 4]
cmp eax, 0xffffffff
je 0x488c36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [esi + eax*4 + 4], 0xffffffff
push 0
push 0
push esi
push 0x488f00
push 0
push 0
call fcn.004e380e
mov ecx, dword [esi]
add esp, 0x18
mov dword [esi + ecx*4 + 4], eax
mov eax, dword [esi]
cmp dword [esi + eax*4 + 4], 0
je 0x488dbf
inc eax
mov dword [esi], eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [ebp + 0x14]
lea ecx, [edi + edi*2]
mov dword [esi + ecx*8 + 0x30], eax
lea eax, [edi + edi*2]
lea edi, [esi + eax*8]
mov eax, dword [ebp + 8]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x40], eax
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x44], eax
mov edi, dword [ebp + 0x10]
push edi
call fcn.004e1b5b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x488d96
push edi
push 0
push ebx
call fcn.004d9fe0
add esp, 0xc
test edi, edi
je 0x488cf7
mov eax, dword [ebp + 0xc]
push edi
test eax, eax
je 0x488cdc
push eax
push ebx
call fcn.004d9a60
add esp, 0xc
jmp 0x488cf7
push 0
push ebx
call fcn.004d9fe0
add esp, 0xc
call fcn.004e1e89
mov dword [eax], 0x16
call fcn.004e1d80
mov edi, dword [ebp - 0x18]
test edi, edi
js 0x488d0d
cmp edi, dword [esi + 0x20]
jge 0x488d0d
mov edx, edi
shl edx, 5
add edx, dword [esi + 0x2c]
jmp 0x488d0f
xor edx, edx
test edi, edi
js 0x488d26
cmp edi, dword [esi + 0x20]
jge 0x488d26
mov eax, dword [esi + 0x2c]
mov ecx, edi
shl ecx, 5
mov eax, dword [eax + ecx + 0x1c]
jmp 0x488d28
xor eax, eax
push edx
push 0
push 0x20
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x488d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x488d99
push ebx
call fcn.004e1b56
add esp, 4
mov ecx, str._client__t_toolStuAsync::RequestToolStart_Send_OK
call fcn.00486b90
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
test edi, edi
jne 0x488e0b
test esi, esi
je 0x488d7d
mov ecx, esi
call fcn.00463970
xor esi, esi
mov dword [ebp - 0x28], esi
mov ecx, str._client__t_toolStuAsync::RequestToolStart_nTry0_Fail
call fcn.00486b90
mov ecx, 3
call fcn.004872c0
jmp 0x488ea7
mov edi, dword [ebp - 0x18]
push edi
mov ecx, esi
call fcn.00489470
mov edi, dword [ebp - 0x1c]
dec edi
mov dword [ebp - 0x1c], edi
test ebx, ebx
je 0x488db5
push ebx
call fcn.004e1b56
add esp, 4
test edi, edi
jg 0x488aa7
jmp 0x488d62
mov dword [esi + eax*4 + 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x488dda
mov ecx, esi
call fcn.00463970
xor esi, esi
mov dword [ebp - 0x28], esi
mov ecx, str._client__t_toolStuAsync::RequestToolStart__beginthreadex_Fail
call fcn.00486b90
jmp 0x488ea7
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x488dfc
mov ecx, esi
call fcn.00463970
xor esi, esi
mov dword [ebp - 0x28], esi
mov ecx, str._client__t_toolStuAsync::RequestToolStart_CreateIoCompletionPort_Fail
call fcn.00486b90
jmp 0x488ea7
test esi, esi
je 0x488e1b
mov ecx, esi
call fcn.00463970
xor esi, esi
mov dword [ebp - 0x28], esi
mov ecx, 2
call fcn.004872c0
mov bl, 1
jmp 0x488ea9
mov ecx, str._client__t_toolStuAsync::RequestToolStart_m_pipes.PickUpAnIdlePipe_Fail
call fcn.00486b90
xor edx, edx
cmp dword [esi + 0x20], edx
jle 0x488e63
xor ecx, ecx
nop
mov eax, dword [esi + 0x2c]
cmp dword [ecx + eax + 0x18], 5
jne 0x488e5b
inc edx
add ecx, 0x20
cmp edx, dword [esi + 0x20]
jl 0x488e40
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ebx
jmp 0x488e66
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ebx
jmp 0x488e95
mov ebx, dword [ebp - 0x14]
mov ecx, str._client__t_toolStuAsync::RequestToolStart_m_pipes.BeAllAbandoned__________________________
call fcn.00486b90
mov ecx, esi
call fcn.004888d0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esi + 0x18]
push 0
push eax
call edi
push 0
lea eax, [esi + 0x10]
push eax
call edi
push 0
add esi, 0x14
push esi
call edi
test ebx, ebx
je 0x488ea4
mov ecx, ebx
call fcn.00463970
xor esi, esi
jmp 0x488ea7
mov esi, dword [ebp - 0x14]
xor bl, bl
lea ecx, [ebp - 0x34]
call fcn.00450c20
mov dword [ebp - 4], 2
test esi, esi
je 0x488ec3
mov ecx, esi
call fcn.00463970
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, str._client__t_toolStuAsync::RequestToolStart_m_bEverInit__false_p_eTaskType___e_agentProcessTypeTool
call fcn.00486b90
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20