Function at 0x933c90
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x933f23
cmp dword [ebp + 0xc], 0
je 0x933f23
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x933f23
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x933f23
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x933f23
mov dword [eax], 0
mov eax, dword [0x967ba0]
mov dword [ebp + 8], 0
mov dword [ebx], 0
test eax, eax
je 0x933d96
dec eax
mov dword [ebx], eax
mov ecx, dword [eax*4 + 0x967aa0]
mov edx, dword [esi]
mov dword [0x967ba0], eax
cmp ecx, edx
jbe 0x933d08
mov ecx, edx
jmp 0x933d0a
mov dword [esi], ecx
shl eax, 0xb
push ecx
add eax, 0x947aa0
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00933640
mov eax, dword [0x967ba0]
mov ecx, dword [eax*4 + 0x967aa0]
mov edx, dword [esi]
add esp, 0xc
cmp ecx, edx
jbe 0x933d6a
sub ecx, edx
mov dword [eax*4 + 0x967aa0], ecx
push ecx
mov ecx, dword [esi]
shl eax, 0xb
lea edx, [eax + ecx + 0x947aa0]
push edx
lea eax, [eax + 0x947aa0]
push eax
call fcn.00933640
add esp, 0xc
inc dword [0x967ba0]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov byte [eax + edi + 0x204], 1
mov dword [eax*4 + 0x967aa0], ecx
mov dword [0x967ba0], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x104]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
cmp esi, dword [edi]
ja 0x933f1d
jmp 0x933dc3
mov ebx, dword [ebp + 0x14]
mov eax, 1
cmp byte [edi + esi + 0x204], al
jne 0x933e0d
lea eax, [esi + esi*4 + 0x91]
lea ecx, [edi + eax*4]
push ecx
push 0
mov edx, esi
shl edx, 0xb
push 0x800
add edx, 0x947aa0
mov dword [esi*4 + 0x967aa0], 0
mov eax, dword [edi + esi*4 + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [edi + esi + 0x204], 2
mov dword [ebx], esi
cmp byte [edi + esi + 0x204], 2
jne 0x933edd
test eax, eax
je 0x933edd
mov eax, dword [edi + esi*4 + 4]
push 0
lea ecx, [esi + esi*4 + 0x91]
lea edx, [ebp - 4]
lea ebx, [edi + ecx*4]
push edx
push ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x933edd
mov ecx, dword [ebp - 4]
add dword [esi*4 + 0x967aa0], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [esi*4 + 0x967aa0]
mov ecx, dword [edx]
cmp eax, ecx
jb 0x933eb3
mov ebx, esi
shl ebx, 0xb
lea eax, [ebx + 0x947aa0]
push ecx
push eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00933640
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub dword [esi*4 + 0x967aa0], ecx
mov ecx, dword [esi*4 + 0x967aa0]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebx + edx + 0x947aa0]
push eax
push ecx
call fcn.00933640
mov ebx, dword [ebp - 8]
add esp, 0x18
mov dword [ebp + 8], 1
mov eax, dword [esi*4 + 0x967aa0]
push ebx
push 0
mov edx, 0x800
sub edx, eax
push edx
mov ecx, esi
shl ecx, 0xb
lea edx, [ecx + eax + 0x947aa0]
mov eax, dword [edi + esi*4 + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x6d
je 0x933f2c
call ebx
cmp eax, 0x3e5
je 0x933ef5
call ebx
cmp dword [ebp + 8], 0
jne 0x933d8a
mov ecx, dword [edi]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x104]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
cmp esi, dword [edi]
jbe 0x933dc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp dword [esi*4 + 0x967aa0], ecx
je 0x933f40
lea edx, [esi + 1]
mov dword [0x967ba0], edx
cmp dword [0x967ba0], ecx
jne 0x933f51
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
lea edx, [esi + esi*4]
lea eax, [edi + edx*4]
mov dword [eax + 0x24c], ecx
mov dword [eax + 0x250], ecx
mov eax, dword [edi + esi*4 + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [edi + esi*4 + 4]
lea ecx, [esi + esi*4 + 0x91]
lea edx, [edi + ecx*4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret