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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101b51a0
push 0x101263e0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [0x101c1b88]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x28], eax
mov edx, 1
test edx, edx
je 0x10145334
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x10145221
cmp dword [ebp - 0x20], 0
je 0x1014532d
cmp dword [ebp + 0x18], 0
jbe 0x1014532d
cmp dword [ebp - 0x3c], 0
jbe 0x1014530b
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x101452c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x101452c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x101452a3
push 1
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x20], eax
jmp 0x101452b2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x10145334
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x40]
mov edx, dword [ebp + 0x18]
sub edx, eax
mov dword [ebp + 0x18], edx
cmp dword [ebp - 0x20], 0
je 0x10145309
cmp dword [ebp - 0x3c], 0
jbe 0x10145309
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x14], 0
je 0x101452e6
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp + 0x10]
jne 0x101452f7
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
jmp 0x10145340
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x3c]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
jmp 0x1014532b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x18], 0x32
jbe 0x10145324
mov edx, dword [ebp + 0x18]
sub edx, 0x32
mov dword [ebp + 0x18], edx
jmp 0x10145326
jmp 0x10145334
jmp 0x10145194
jmp 0x1014532f
jmp 0x10145334
jmp 0x10145194
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret