Function at 0x5910a760
Capabilities:
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x5915addb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e4
mov eax, dword [esp + 0x1f4]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
cmp eax, ebx
mov dword [esp + 0xc], ebp
jg 0x5910a797
xor eax, eax
jmp 0x5910aa77
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xf1]
mov byte [esp + 0xf0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x591b1f00], ebx
jne 0x5910a865
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x60]
mov esi, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
mov dword [0x591b1f00], esi
push eax
mov dword [esp + 0x60], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x6c], 2
je 0x5910a865
mov dword [0x591b1f04], esi
xor edi, edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xf0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xf0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x204]
mov ecx, edx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x5910aa71
jmp 0x5910a879
cmp dword [0x591b1f04], ebx
jne 0x5910a7f7
mov edi, dword [str..PipeOCULAR_]
jmp 0x5910a7f9
mov ebp, dword [esp + 0x14]
call fcn.590da210
push eax
push ebx
push 0x1000
push 0x1000
push 0xff
push 6
lea eax, [esp + 0x108]
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x5910aa71
push 0x18
call fcn.5913d2d0
add esp, 4
cmp eax, ebx
je 0x5910a8da
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0x1e
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov esi, eax
jmp 0x5910a8dc
xor esi, esi
cmp esi, ebx
je 0x5910aa0b
push 0x640
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], esi
call fcn.5913d2d0
mov edi, eax
mov ecx, 0x190
xor eax, eax
mov dword [esp + 0x3c], edi
rep stosd dword es:[edi], eax
push 0x640
call fcn.5913d2d0
mov edi, eax
mov ecx, 0x190
xor eax, eax
mov dword [esp + 0x44], edi
rep stosd dword es:[edi], eax
push 0x14
call fcn.5913d2d0
xor ecx, ecx
push 0x14
mov dword [eax], ecx
mov dword [esp + 0x50], eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
call fcn.5913d2d0
xor edx, edx
add esp, 0x10
mov dword [eax], edx
mov dword [esp + 0x44], eax
mov dword [eax + 4], edx
push 1
mov dword [eax + 8], edx
lea ecx, [esp + 0x54]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
lea eax, [ebp + 0x54]
push eax
call fcn.590b48a0
lea esi, [ebp + 0x44]
push 0xffffffffffffffff
mov dword [esp + 0x200], ebx
mov ebp, dword [esi + 4]
lea ecx, [ebp + 1]
push ecx
mov ecx, esi
call fcn.5910bf60
mov edx, dword [esi]
lea edi, [ebp + ebp*2]
shl edi, 4
add edi, edx
mov ecx, 0xc
lea esi, [esp + 0x20]
mov dword [esp + 0x1fc], 0xffffffff
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x50]
call fcn.590b4900
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp eax, ebx
je 0x5910a9e0
cmp dword [esi + 4], ebx
je 0x5910a9e0
mov edx, dword [esi + 0x74]
push ebx
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push ebp
mov ecx, esi
call fcn.5910b5b0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x204]
inc esi
inc eax
mov dword [esp + 0x10], esi
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x5910a875
jmp 0x5910aa71
cmp edi, 0xffffffff
je 0x5910aa1b
cmp edi, ebx
je 0x5910aa1b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x5910aa71
mov eax, dword [esi]
mov ecx, eax
cmp ecx, ebx
je 0x5910aa2d
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x5910aa27
cmp eax, ebx
je 0x5910aa42
mov edi, dword [eax]
push eax
call fcn.5913d2f9
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x5910aa31
mov eax, dword [esi + 8]
mov dword [esi + 0xc], ebx
cmp eax, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
je 0x5910aa62
mov edi, dword [eax]
push eax
call fcn.5913d2f9
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x5910aa51
push esi
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
call fcn.5913d2f9
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov ecx, dword [esp + 0x1ec]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1f0
ret 4