Function at 0x412b10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446978
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x461264]
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 - 0x4c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
cmp dword [esi + 0x18], ecx
je 0x412cb1
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.00401400
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 - 0x48]
mov ecx, eax
and ecx, 1
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x54]
je 0x412baf
test cl, 1
je 0x412bb8
test al, 2
je 0x412c1b
test cl, 1
je 0x412c1b
call fcn.00410400
cmp eax, 1
jg 0x412c00
push 1
push 0x10e
push str.f:360work_vpn_turbowin_master_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040f260
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.004026f0
add esp, 8
mov ecx, eax
call fcn.00404250
test bl, 4
je 0x412f48
lea ecx, [ebp - 0x11c]
call fcn.0040f420
xor bl, bl
jmp 0x413080
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 0x412e91
call fcn.00410400
cmp eax, 1
jg 0x412c96
push 1
push 0x118
push str.f:360work_vpn_turbowin_master_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040f260
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.004026f0
add esp, 8
mov ecx, eax
call fcn.0040a0a0
test bl, 8
je 0x412f48
lea ecx, [ebp - 0x11c]
call fcn.0040f420
xor bl, bl
jmp 0x413080
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x44], ecx
je 0x412dae
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 0x412d0c
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x412d0c
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x412d0c
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
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.004132c0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x412d4b
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x412d3f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00401400
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004012d0
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 0x412e91
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x412e91
test al, 2
je 0x412e8a
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 0x412e03
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x412e03
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x412e03
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 0
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.004132c0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
cmp ecx, eax
je 0x412e42
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x412e36
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00401400
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004012d0
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 0x412e91
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x412e91
mov dword [ebp - 4], 2
cmp dword [edi + 0x105c], 0xffffffff
jne 0x412f4f
call fcn.00410400
cmp eax, 1
jg 0x412f39
push 1
push 0x144
push str.f:360work_vpn_turbowin_master_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040f260
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.004026f0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.0040fd00
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.004026f0
add esp, 8
push eax
call fcn.004026f0
add esp, 8
push eax
call fcn.004026f0
add esp, 8
mov ecx, eax
call fcn.0040a0a0
test bl, bl
jns 0x412f48
lea ecx, [ebp - 0x11c]
call fcn.0040f420
xor bl, bl
jmp 0x413080
push 0x14
call fcn.004299f8
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x412f78
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.00413e60
mov esi, eax
jmp 0x412f7a
xor esi, esi
mov dword [ebp - 0x48], esi
cmp byte [edi + 0x107a], 0
mov byte [ebp - 4], 0xe
je 0x412f8e
xor ebx, ebx
jmp 0x412f94
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.004143a0
test al, al
je 0x41305c
test ebx, ebx
je 0x412fce
push 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
mov ecx, esi
call fcn.004143a0
test al, al
je 0x41305c
mov edx, dword [edi + 0x1074]
add edi, 0x1064
mov dword [ebp - 0x48], 0
mov ecx, dword [edi + 0xc]
lea eax, [ecx + edx]
test al, 3
jne 0x413002
lea eax, [edx + 4]
shr eax, 2
cmp dword [edi + 8], eax
ja 0x413002
push 1
mov ecx, edi
call fcn.00413ac0
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
lea eax, [eax*4 - 1]
and eax, ecx
mov dword [edi + 0xc], eax
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 8]
add ebx, eax
dec ecx
mov eax, ebx
shr eax, 2
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x44], eax
cmp dword [ecx + eax], 0
jne 0x41304c
push 0x10
call fcn.004299f8
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 0x413080
push dword [edi + 0x105c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov dword [edi + 0x105c], 0xffffffff
test esi, esi
je 0x413080
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4130b6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4130ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4130d6
push edx
push ecx
call fcn.00429a28
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.004299e7
mov esp, ebp
pop ebp
ret 8
call fcn.0042ecaa
int3