Function at 0x410880
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4132e4
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x87f03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xdc], esi
mov edi, dword [ebp + 8]
push str.wine_get_version
push str.ntdll.dll
mov dword [ebp - 0xd8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4109e5
push 1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x410a65
push 0
push 0
push 1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x410a65
push 1
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov dword [ebp - 0xd8], eax
call fcn.0040ecc0
mov eax, esp
lea ecx, [ebp - 0xd8]
push ecx
push eax
push 0
push 0x41
mov dword [ebp - 0xe4], eax
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x410a65
mov esi, dword [ebp - 0xd8]
add esi, 0x10
mov eax, esi
mov dword [ebp - 0xd8], esi
call fcn.0040ecc0
mov eax, esp
push 2
push esi
push eax
mov dword [ebp - 0xe0], eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x410a5f
push dword [ebp - 0xe4]
mov esi, dword [ebp - 0xe0]
push 1
push 0
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddMandatoryAce]
test eax, eax
je 0x410a5f
push 0
push esi
push 1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
mov esi, dword [ebp - 0xdc]
test eax, eax
je 0x410a65
lea eax, [ebp - 0x104]
mov dword [ebp - 0xf0], 0xc
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xe8], 1
mov dword [ebp - 0xd8], eax
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push 0x20
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
movups xmmword [ebp - 0x70], xmm0
call fcn.00403290
movups xmm0, xmmword [str..pipehl_launcher_]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], 0x15
mov dword [ebp - 0x5c], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x87afd0]
mov dword [eax + 0x10], ecx
mov cl, byte [0x87afd4]
mov byte [eax + 0x14], cl
mov byte [eax + 0x15], 0
mov dword [ebp - 4], 1
test edi, edi
jns 0x410b3d
mov eax, edi
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0040fa10
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x410b4a
mov esi, dword [ebp - 0xdc]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x40
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Fatal:_failed_to_initialize_security_attributes_n]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x3f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x87af9c]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x87afac]
movups xmmword [eax + 0x20], xmm0
mov byte [eax + 0x30], 0
cmp dword [esi + 0x238], 0
mov dword [ebp - 4], 0
je 0x410b00
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
call fcn.0040a180
push edx
push eax
call fcn.0040ad50
mov ecx, dword [esi + 0x238]
lea eax, [ebp - 0x40]
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x410b36
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410b2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410b2c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
xor al, al
jmp 0x410e60
lea eax, [ebp - 0x13]
push edi
push eax
call fcn.0040fa10
add esp, 8
lea ecx, [ebp - 0xd1]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040f720
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.00403340
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x410bb1
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410ba7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410e4a
push ecx
push edx
call fcn.0040e25c
add esp, 8
push dword [ebp - 0xd8]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push 0x4e20
cmovae eax, dword [ebp - 0x70]
push 0x1000
push 0x1000
push 1
push 0xe
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0x228], eax
cmp eax, 0xffffffff
jne 0x410e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2b]
push eax
call fcn.0040fa10
add esp, 8
lea ecx, [ebp - 0xd1]
push ecx
lea ecx, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.0040f720
mov byte [ebp - 4], 3
lea eax, [ebp - 0x13]
test edi, edi
jns 0x410c38
neg edi
push edi
push eax
call fcn.0040fa10
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x410c42
push edi
push eax
call fcn.0040fa10
add esp, 8
lea ecx, [ebp - 0xd1]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040f720
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x88]
push str.Fatal:_failed_to_create_pipe__pid
push eax
call fcn.0040f7e0
add esp, 0xc
push 8
push str.__error
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00403340
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xa0]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0xe0]
call fcn.0040ddc0
push 2
push 0x87afd8
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
call fcn.00403340
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov ecx, esi
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 8
call fcn.00412620
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x410d5c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410d52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410da3
push ecx
push edx
call fcn.0040e25c
add esp, 8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004019f0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x410db3
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410da9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410da9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.004019f0
lea ecx, [ebp - 0xb8]
call fcn.004019f0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.004019f0
lea eax, [ebp - 0x88]
push eax
call fcn.0040fc70
add esp, 4
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00412620
lea ecx, [ebp - 0x88]
call fcn.004019f0
push dword [esi + 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x228], 0
mov byte [ebp - 0xd1], 0
jmp 0x410e24
mov byte [ebp - 0xd1], 1
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x410e5a
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410e50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410e50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov al, byte [ebp - 0xd1]
lea esp, [ebp - 0x110]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6c4
mov esp, ebp
pop ebp
ret 4