Function at 0x414c40
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45109d
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x46e224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x44], ecx
cmp dword [esi + 0x18], ebx
je 0x414de4
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.00403220
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x44], ebx
je 0x414ce1
test al, 1
je 0x414ceb
test byte [ebp - 0x48], 2
je 0x414d4e
test al, 1
je 0x414d4e
call fcn.0040f710
cmp eax, 1
jg 0x414d33
push 1
push 0x10e
push str.D:360Work2.vpn_turbowin_turbo_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040e4f0
push dword [ebp - 0x48]
add eax, 8
mov byte [ebp - 4], 5
push str.Inconsistent_open_mode._Mode_:
mov ebx, 4
push eax
mov dword [ebp - 0x50], ebx
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.0040c2a0
test bl, 4
je 0x41506f
lea ecx, [ebp - 0x11c]
call fcn.0040e6b0
xor bl, bl
jmp 0x4151a8
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x105c]
push 2
push 0
push 0
push eax
call esi
push eax
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x18]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x414fb8
call fcn.0040f710
cmp eax, 1
jg 0x414dc9
push 1
push 0x118
push str.D:360Work2.vpn_turbowin_turbo_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040e4f0
mov esi, eax
mov ebx, 8
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.DuplicateHandle_failed._Error_:
push eax
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
test bl, 8
je 0x41506f
lea ecx, [ebp - 0x11c]
call fcn.0040e6b0
xor bl, bl
jmp 0x4151a8
test ecx, ecx
je 0x414ed8
push 0x14
push 0x40
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x414e36
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x414e36
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ecx, dword [ebp - 0x5c]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x4c]
lea esi, [edi + 0x107c]
push esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
call fcn.004153f0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x414e75
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x414e69
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403220
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402cb0
cmp dword [esi], 0
lea ecx, [ebp - 0x60]
push ecx
push 0x1388
push 0x1000
push 0x1000
setne al
cmp dword [ebp - 0x14], 8
push 1
mov byte [edi + 0x107a], al
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x105c], eax
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x414fb8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x414fb8
test al, 2
je 0x414fb1
push 0x14
push 0x40
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x6c], 0xc
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x414f2a
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x414f2a
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ecx, dword [ebp - 0x68]
test eax, eax
cmovne ecx, esi
mov dword [ebp - 0x68], ecx
lea eax, [edi + 0x107c]
mov dword [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004153f0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
cmp ecx, eax
je 0x414f69
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x414f5d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403220
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402cb0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x6c]
push 0
push 0x40000000
push 3
push ecx
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x105c], eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x414fb8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x414fb8
mov dword [ebp - 4], 2
cmp dword [edi + 0x105c], 0xffffffff
jne 0x415076
call fcn.0040f710
cmp eax, 1
jg 0x415060
push 1
push 0x144
push str.D:360Work2.vpn_turbowin_turbo_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040e4f0
add eax, 8
mov byte [ebp - 4], 0xc
push str.Unable_to_create_pipe__
mov ebx, 0x80
push eax
mov dword [ebp - 0x50], ebx
call fcn.00402200
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.0040ef60
add esp, 0x10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x44], 0
mov ecx, str.server
push eax
mov eax, str.client
push str._mode._Error_:
cmove ecx, eax
push ecx
push str.__in
push esi
call fcn.00402200
add esp, 8
push eax
call fcn.00402200
add esp, 8
push eax
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
test bl, bl
jns 0x41506f
lea ecx, [ebp - 0x11c]
call fcn.0040e6b0
xor bl, bl
jmp 0x4151a8
push 0x14
call fcn.00432115
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x41509f
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.004160a0
mov esi, eax
jmp 0x4150a1
xor esi, esi
mov dword [ebp - 0x48], esi
cmp byte [edi + 0x107a], 0
mov byte [ebp - 4], 0xe
je 0x4150b5
xor ebx, ebx
jmp 0x4150bb
mov ebx, dword [edi + 0x107c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x44], eax
mov ecx, esi
push 4
lea eax, [ebp - 0x44]
push eax
call fcn.00427ab0
test al, al
je 0x415184
test ebx, ebx
je 0x4150f5
push 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
mov ecx, esi
call fcn.00427ab0
test al, al
je 0x415184
mov edx, dword [edi + 0x1074]
add edi, 0x1064
mov dword [ebp - 0x48], 0
mov ebx, edx
mov ecx, dword [edi + 0xc]
lea eax, [ecx + edx]
test al, 3
jne 0x41512e
lea eax, [edx + 4]
shr eax, 2
cmp dword [edi + 8], eax
ja 0x41512e
push 1
mov ecx, edi
call fcn.00415b70
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov edx, dword [edi + 8]
lea eax, [edx*4 - 1]
and eax, ecx
add ebx, eax
mov dword [edi + 0xc], eax
mov ecx, ebx
lea eax, [edx - 1]
shr ecx, 2
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x44], eax
cmp dword [ecx + eax], 0
jne 0x415174
push 0x10
call fcn.00432115
mov ecx, dword [edi + 4]
add esp, 4
mov edx, dword [ebp - 0x44]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx + eax]
and ebx, 3
mov dword [eax + ebx*4], esi
mov bl, 1
inc dword [edi + 0x10]
jmp 0x4151a8
push dword [edi + 0x105c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov dword [edi + 0x105c], 0xffffffff
test esi, esi
je 0x4151a8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4151de
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4151d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4151fe
push edx
push ecx
call fcn.00432145
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432107
mov esp, ebp
pop ebp
ret 8
call fcn.00436c8f
int3