Function at 0x10002530
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053f18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1006c740]
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 - 0x48], esi
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push 0
movdqu xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1000258b
or eax, 0xffffffff
jmp 0x100027f6
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov edi, dword [0x10059048]
lea ebx, [ebx]
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100025cd
call edi
cmp eax, 0x3e5
je 0x100025cd
call edi
cmp eax, 0xea
jne 0x100027bb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x100027bb
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100025a0
push eax
call fcn.10034c5d
mov edi, eax
add esp, 4
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x100027bb
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100027b2
mov ecx, dword [esi + 0x48]
xor edi, edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], edi
test ecx, ecx
je 0x1000268c
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
push edi
push dword [ebp - 0x1c]
mov eax, dword [eax + 4]
push dword [ebp - 0x4c]
call eax
test eax, eax
je 0x1000268c
push 0x1006e560
push dword [ebp - 0x28]
call fcn.10036359
mov edi, eax
add esp, 8
test edi, edi
je 0x1000268c
mov ecx, dword [esi + 0x48]
lea edx, [ebp - 0x28]
push edx
push edi
push dword [ebp - 0x1c]
mov eax, dword [ecx]
push dword [ebp - 0x4c]
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x44], eax
push dword [ebp - 0x4c]
call fcn.10036354
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x100027ae
cmp dword [ebp - 0x28], 0x14
jb 0x100027b2
cmp dword [edi + 4], 0
je 0x10002735
add esi, 0x28
push esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0xc]
push eax
mov dword [ebp - 4], 0
lea ecx, [ecx + 0x40]
call fcn.10002a80
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
test ecx, ecx
je 0x10002716
mov eax, dword [ecx + 4]
mov edx, dword [edi + 0x10]
cmp dword [eax], edx
jbe 0x10002707
push edx
lea eax, [edi + 0x14]
push eax
push dword [ecx]
call fcn.10037d40
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov eax, dword [edi + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
jmp 0x1000270d
mov dword [eax], 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [0x10059108]
mov esi, dword [ebp - 0x48]
push edi
call fcn.10036354
add esp, 4
jmp 0x10002594
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100027a0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov edx, dword [ecx]
push eax
push dword [edi]
lea eax, [edi + 0x14]
push dword [edi + 0x10]
push eax
push esi
call dword [edx + 8]
cmp dword [edi], 0
je 0x1000277b
push dword [edi + 8]
mov ecx, esi
push 1
push dword [edi + 0xc]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.10002030
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100027a0
push eax
call fcn.10036354
mov eax, dword [ebp - 0x24]
add esp, 4
cmp dword [ebp - 0x44], 0
mov ecx, 0x8123
cmovne eax, ecx
mov dword [ebp - 0x24], eax
push edi
call fcn.10036354
add esp, 4
jmp 0x10002594
test edi, edi
je 0x100027bb
push edi
call fcn.10036354
add esp, 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100027c8
mov eax, dword [ecx]
push esi
call dword [eax + 4]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi + 4]
mov esi, dword [0x10059100]
call esi
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x30]
mov dword [eax + 4], 0xffffffff
call esi
xor eax, eax
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.100359a8
mov esp, ebp
pop ebp
ret