Function at 0x415b00
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c128
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x490274]
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 0x415ca1
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.00403650
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 0x415b9f
test cl, 1
je 0x415ba8
test al, 2
je 0x415c0b
test cl, 1
je 0x415c0b
call fcn.004106d0
cmp eax, 1
jg 0x415bf0
push 1
push 0x10e
push str.f:360workgzturbowin_master_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040f530
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.00402230
add esp, 8
mov ecx, eax
call fcn.0040d600
test bl, 4
je 0x415f38
lea ecx, [ebp - 0x11c]
call fcn.0040f6f0
xor bl, bl
jmp 0x416070
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 0x415e81
call fcn.004106d0
cmp eax, 1
jg 0x415c86
push 1
push 0x118
push str.f:360workgzturbowin_master_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040f530
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.00402230
add esp, 8
mov ecx, eax
call fcn.00409be0
test bl, 8
je 0x415f38
lea ecx, [ebp - 0x11c]
call fcn.0040f6f0
xor bl, bl
jmp 0x416070
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x44], ecx
je 0x415d9e
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 0x415cfc
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x415cfc
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x415cfc
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.004162b0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x415d3b
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x415d2f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403650
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402e70
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 0x415e81
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x415e81
test al, 2
je 0x415e7a
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 0x415df3
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x415df3
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x415df3
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.004162b0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
cmp ecx, eax
je 0x415e32
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x415e26
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403650
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402e70
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 0x415e81
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x415e81
mov dword [ebp - 4], 2
cmp dword [edi + 0x105c], 0xffffffff
jne 0x415f3f
call fcn.004106d0
cmp eax, 1
jg 0x415f29
push 1
push 0x144
push str.f:360workgzturbowin_master_baseipcipc_channel_win.cc
lea ecx, [ebp - 0x11c]
call fcn.0040f530
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.00402230
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.0040ffd0
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.00402230
add esp, 8
push eax
call fcn.00402230
add esp, 8
push eax
call fcn.00402230
add esp, 8
mov ecx, eax
call fcn.00409be0
test bl, bl
jns 0x415f38
lea ecx, [ebp - 0x11c]
call fcn.0040f6f0
xor bl, bl
jmp 0x416070
push 0x14
call fcn.00435bec
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x415f68
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.00416f70
mov esi, eax
jmp 0x415f6a
xor esi, esi
mov dword [ebp - 0x48], esi
cmp byte [edi + 0x107a], 0
mov byte [ebp - 4], 0xe
je 0x415f7e
xor ebx, ebx
jmp 0x415f84
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.0042b170
test al, al
je 0x41604c
test ebx, ebx
je 0x415fbe
push 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
mov ecx, esi
call fcn.0042b170
test al, al
je 0x41604c
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 0x415ff2
lea eax, [edx + 4]
shr eax, 2
cmp dword [edi + 8], eax
ja 0x415ff2
push 1
mov ecx, edi
call fcn.00416ab0
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 0x41603c
push 0x10
call fcn.00435bec
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 0x416070
push dword [edi + 0x105c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov dword [edi + 0x105c], 0xffffffff
test esi, esi
je 0x416070
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4160a6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41609c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4160c6
push edx
push ecx
call fcn.00435c1c
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.00435bdb
mov esp, ebp
pop ebp
ret 8
call fcn.00451286
int3