Function at 0x496760
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov esi, esp
mov dword [esi + 0x138], ebp
mov dword [esi + 0x13c], esp
mov dword [esi + 0x148], 0xffffffff
mov dword [esi + 0x144], 0x5351d0
mov dword [esi + 0xbc], ecx
lea eax, [esi + 0x140]
mov ecx, dword fs:[0]
mov dword [esi + 0x140], ecx
lea ecx, [esi + 0xc0]
mov dword fs:[0], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
call fcn.00497370
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], 0
mov word [esi + 0x38], 0
mov dword [esi + 0x148], 5
sub esp, 0xc
mov al, byte [esi + 0x6c]
lea ecx, [esi + 0x38]
mov byte [esp + 4], al
mov dword [esp + 8], str..pipe_
mov dword [esp], 9
mov dword [esi], ecx
call fcn.00405590
mov eax, dword [ebp + 8]
lea edi, [eax + 0x204]
push edi
call fcn.005d3244
add esp, 4
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
mov ebx, edx
sub ebx, ecx
cmp ebx, eax
jae 0x49685a
mov dword [esi + 0x148], 6
sub esp, 0x10
mov cl, byte [esi + 0x6c]
mov byte [esp + 4], cl
lea ecx, [esi + 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.0040b010
jmp 0x49688f
mov dword [esi + 8], edi
lea edi, [ecx + eax]
cmp edx, 7
mov ebx, edi
mov dword [esi + 4], edi
mov dword [esi + 0x48], edi
jbe 0x496872
mov edx, dword [esi + 0x38]
mov dword [esi], edx
mov ebx, dword [esi]
add eax, eax
lea ecx, [ebx + ecx*2]
push eax
push dword [esi + 8]
push ecx
call fcn.0061e340
add esp, 0xc
mov eax, dword [esi + 4]
mov word [ebx + eax*2], 0
mov ecx, dword [ebp + 8]
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x58], 0
cmp byte [ecx + 0x400], 0
je 0x49692f
mov dword [esi + 0x80], 7
mov dword [esi + 0x7c], 0
mov word [esi + 0x6c], 0
mov dword [esi + 0x148], 0xa
sub esp, 0xc
mov al, byte [esi + 0x20]
lea ecx, [esi + 0x6c]
mov byte [esp + 4], al
mov dword [esp + 8], str.S:_ML__NW___LW_
mov dword [esp], 0xf
call fcn.00405590
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
mov edx, ecx
sub edx, eax
cmp edx, 3
jae 0x496938
sub esp, 0x10
mov al, byte [esi + 0x20]
lea ecx, [esi + 0x6c]
mov byte [esp + 4], al
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x6603f8
mov dword [esp], 3
call fcn.0040b010
jmp 0x496965
xor ebx, ebx
xor edi, edi
jmp 0x496d3c
lea edx, [eax + 3]
cmp ecx, 7
mov dword [esi + 0x7c], edx
lea edx, [esi + 0x6c]
jbe 0x496949
mov edx, dword [esi + 0x6c]
movzx ecx, word [0x6603fc]
mov edi, dword [0x6603f8]
mov word [edx + eax*2 + 4], cx
mov dword [edx + eax*2], edi
mov word [edx + eax*2 + 6], 0
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
mov edx, ecx
sub edx, eax
cmp edx, 0xc
jae 0x4969ae
sub esp, 0x10
mov al, byte [esi + 0x20]
lea ecx, [esi + 0x6c]
mov byte [esp + 4], al
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], str._A__GA___OW_
mov dword [esp], 0xc
call fcn.0040b010
cmp byte [0x6cef19], 0
jne 0x4969fa
jmp 0x496a35
lea edx, [eax + 0xc]
cmp ecx, 7
mov dword [esi + 0x7c], edx
jbe 0x4969be
mov ecx, dword [esi + 0x6c]
jmp 0x4969c1
lea ecx, [esi + 0x6c]
movsd xmm0, qword [0x660410]
movsd xmm2, qword [0x660408]
movsd xmm1, qword [str._A__GA___OW_]
movsd qword [ecx + eax*2 + 0x10], xmm0
movsd qword [ecx + eax*2 + 8], xmm2
movsd qword [ecx + eax*2], xmm1
mov word [ecx + eax*2 + 0x18], 0
cmp byte [0x6cef19], 0
je 0x496a35
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
mov edx, ecx
sub edx, eax
cmp edx, 0xc
jae 0x496a43
sub esp, 0x10
mov al, byte [esi + 0x20]
lea ecx, [esi + 0x6c]
mov byte [esp + 4], al
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], str._A__GA___AC_
mov dword [esp], 0xc
call fcn.0040b010
cmp dword [esi + 0x80], 7
jbe 0x496a8f
mov eax, dword [esi + 0x6c]
jmp 0x496a92
lea edx, [eax + 0xc]
cmp ecx, 7
mov dword [esi + 0x7c], edx
jbe 0x496a53
mov ecx, dword [esi + 0x6c]
jmp 0x496a56
lea ecx, [esi + 0x6c]
movsd xmm0, qword [0x66042a]
movsd xmm2, qword [0x660422]
movsd xmm1, qword [str._A__GA___AC_]
movsd qword [ecx + eax*2 + 0x10], xmm0
movsd qword [ecx + eax*2 + 8], xmm2
movsd qword [ecx + eax*2], xmm1
mov word [ecx + eax*2 + 0x18], 0
cmp dword [esi + 0x80], 7
ja 0x496a3e
lea eax, [esi + 0x6c]
lea ecx, [esi + 0x18]
push 0
push ecx
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
xor ebx, ebx
test eax, eax
mov dword [esi], 2
je 0x496cab
mov eax, dword [esi + 0x18]
mov dword [esi + 0x50], 0xc
mov dword [esi + 0x54], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x58], 0
push eax
call fcn.005e38b0
add esp, 4
test al, al
mov edi, 0
mov ebx, 0
je 0x496cf2
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
mov word [esi + 0x20], 0
mov dword [esi + 0x148], 0xb
mov dword [esi + 0xf0], eax
sub esp, 0x10
mov al, byte [esi + 0xa4]
lea ecx, [esi + 0x20]
mov byte [esp + 4], al
mov dword [esp + 0xc], 0xf
mov dword [esp + 8], str.D:P_A__GA___OW_
mov dword [esp], 0xf
call fcn.0040b010
cmp dword [esi + 0x34], 7
lea ecx, [esi + 0x20]
jbe 0x496b41
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x14]
push 0
push eax
push 1
push ecx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
xor ebx, ebx
test eax, eax
mov dword [esi], 2
je 0x496caf
cmp dword [0x6ceee8], 0
mov eax, dword [esi + 0x14]
mov dword [esi + 0x100], 0xc
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], 0
je 0x496bd1
cmp dword [0x6ceeec], 0
je 0x496bd1
lea eax, [esi + 0x10c]
push eax
push 0x6ceeec
push 0x6ceee8
call fcn.005e3a20
add esp, 0xc
test al, al
je 0x496cb3
mov eax, dword [esi + 0x10c]
mov ebx, 0
test eax, eax
je 0x496caf
cmp word [eax], 0
mov edi, 0
je 0x496cb7
mov dword [esi + 0xb8], 7
mov dword [esi + 0xb4], 0
mov word [esi + 0xa4], 0
sub esp, 0xc
mov al, byte [esi + 0x60]
lea ecx, [esi + 0xa4]
mov byte [esp + 4], al
mov dword [esp + 8], str.acrocef_low
mov dword [esp], 0xb
call fcn.00405590
lea ecx, [esi + 0xa4]
mov dword [esi + 0x148], 0xc
lea eax, [esi + 0x60]
push ecx
push eax
call fcn.005e3ee0
add esp, 8
mov ecx, dword [esi + 0xb8]
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x60]
mov edi, dword [esi + 0x64]
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
cmp ecx, 8
mov dword [esi + 4], eax
jb 0x496c91
mov eax, dword [esi + 0xa4]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x496c87
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x497022
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
xor ecx, ecx
cmp edi, ebx
mov edi, dword [esi + 4]
mov eax, ebx
mov dword [esi], 0
cmove eax, ecx
mov dword [esi + 0xfc], eax
jmp 0x496cb7
xor edi, edi
jmp 0x496cf2
xor edi, edi
jmp 0x496cb7
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi + 0x34]
cmp ecx, 8
jb 0x496cf2
mov eax, dword [esi + 0x20]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x496ce8
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x497013
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [esi + 0x80]
cmp ecx, 8
jb 0x496d30
mov eax, dword [esi + 0x6c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x496d26
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x497004
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
cmp dword [esi], 0
jne 0x496db9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov edx, ecx
mov dword [esi + 8], ebx
mov dword [esi + 4], edi
lea ecx, [eax + 1]
cmp ecx, 1
ja 0x496daf
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x50]
test eax, eax
cmove ecx, eax
movzx eax, byte [edx + 0x401]
shl eax, 0x1e
or eax, 0x80003
cmp dword [esi + 0x4c], 7
jbe 0x496d74
mov edx, dword [esi + 0x38]
jmp 0x496d77
lea edx, [esi + 0x38]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x148], 7
push ecx
push 0x7d0
push 0x1000
push 0x1000
push 1
push 8
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp + 8]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 4]
mov dword [ecx + 8], eax
inc eax
cmp eax, 2
jae 0x496edb
mov dword [esi], 0
test ebx, ebx
je 0x496def
sub edi, ebx
cmp edi, 0x1000
jb 0x496de3
mov eax, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, eax
cmp ebx, 0x20
jae 0x496fe6
add edi, 0x23
jmp 0x496de5
mov eax, ebx
push edi
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [esi + 0x4c]
cmp ecx, 8
jb 0x496e2a
mov eax, dword [esi + 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x496e20
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x496ff5
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x496e3d
push eax
call fcn.005d31b1
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496e55
mov dword [esi + 0x148], 5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x496e6d
mov dword [esi + 0x148], 5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x496e85
mov dword [esi + 0x148], 5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0
jne 0x496eb8
mov ecx, dword [ebp + 8]
mov dword [esi + 0x148], 5
call fcn.004a04a0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x496eb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffffff
lea ecx, [esi + 0xc0]
call fcn.00498400
mov eax, dword [esi + 0x140]
mov dword fs:[0], eax
mov eax, dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x3e6], 0
je 0x496f91
mov byte [esi + 0xc0], 0
mov byte [esi + 0xdc], 1
mov eax, dword [ecx + 0x1c]
cmp dword [ecx + 0x20], 7
jbe 0x496f07
mov ecx, dword [ecx + 0xc]
jmp 0x496f0a
add ecx, 0xc
mov edx, dword [esi + 4]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x148], 7
mov dword [esi + 0x10], edx
lea edx, [esi + 0x6c]
push eax
push ecx
push edx
call fcn.00497650
add esp, 0xc
lea eax, [esi + 0xc0]
mov dword [esi + 0x148], 8
lea ecx, [esi + 0x20]
push eax
lea eax, [esi + 0x6c]
push eax
push ecx
call fcn.004976e0
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x20]
mov dword [esi + 0x148], 9
push eax
call fcn.00473130
lea ecx, [esi + 0x20]
call fcn.00436760
mov ecx, dword [ebp + 8]
mov dword [esi + 0x148], 8
call fcn.004960f0
mov dword [esi], eax
lea ecx, [esi + 0x6c]
call fcn.00473320
mov ebx, dword [esi + 8]
mov edi, dword [esi + 4]
jmp 0x496dbf
mov edi, dword [ecx + 0x3ec]
test edi, edi
je 0x496eeb
mov ecx, edi
mov dword [esi + 0x148], 0xffffffff
call dword [0x64689c]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x148], 7
mov dword [esi + 0x10], eax
call edi
mov cl, 1
mov ebx, dword [esi + 8]
test al, al
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
je 0x496eeb
mov edi, dword [esi + 4]
jmp 0x496dbf
mov dword [esi + 0x148], 3
call fcn.006207e0
mov dword [esi + 0x148], 4
call fcn.006207e0
mov dword [esi + 0x148], 2
call fcn.006207e0
mov dword [esi + 0x148], 1
call fcn.006207e0
mov dword [esi + 0x148], 0
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
mov ecx, dword [esi + 0xb8]
cmp ecx, 8
jb 0x49712d
mov eax, dword [esi + 0xa4]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x497123
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x49714f
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 7
mov word [esi + 0xa4], 0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
lea ecx, [esi + 0x20]
call fcn.00436760
add esp, 0x20
pop ebp
ret