Function at 0x1005a1e0
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f79a6
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.10089e90
mov eax, dword [0x1013b7e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1028], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x1024], esi
call fcn.1005a170
cmp dword [ebx], 0
je 0x1005a560
cmp dword [ebx + 4], 0
je 0x1005a560
cmp dword [ebx + 8], 0
je 0x1005a560
cmp dword [ebx + 0xc], 0
je 0x1005a560
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x101c], 0
push 0
push eax
call fcn.100c56b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1030], eax
push 0
push 0
lea eax, [ebp - 0x101c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1005a3dd
cmp dword [ebp - 0x101c], 0
jbe 0x1005a3dd
cmp dword [ebx], 0
je 0x1005a54e
cmp dword [ebx + 4], 0
je 0x1005a54e
mov eax, dword [ebx + 8]
test eax, eax
je 0x1005a54e
cmp dword [ebx + 0xc], 0
je 0x1005a54e
push 0
lea ecx, [ebp - 0x101c]
push ecx
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005a54e
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
lea ebx, [ebp - 0x1010]
mov eax, dword [edi]
sub ebx, eax
mov edi, dword [eax - 0xc]
mov eax, dword [ebp - 0x101c]
test eax, eax
js 0x1005a580
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.100cc207
mov ecx, SysReAllocString
mov dword [ebp - 0x102c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x1005a580
lea esi, [edi + eax]
test esi, esi
js 0x1005a580
mov edx, dword [ebp - 0x1018]
mov ecx, 1
mov edx, dword [edx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x1005a38b
mov ecx, dword [ebp - 0x1018]
push esi
call fcn.1001e830
mov eax, dword [ebp - 0x1018]
mov edx, dword [eax]
cmp ebx, edi
ja 0x1005a398
lea eax, [edx + ebx]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x102c]
push eax
push dword [ebp - 0x1020]
push eax
lea eax, [edi + edx]
push eax
call fcn.100071f0
mov edi, dword [ebp - 0x1018]
add esp, 0x10
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x1005a580
mov ebx, dword [ebp - 0x1028]
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x1024]
jmp 0x1005a286
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x1005a525
call fcn.100063a0
test eax, eax
je 0x1005a58a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
mov ecx, str._system32_
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x1005a42e
movzx eax, cx
lea ecx, [ebp - 0x1014]
push eax
call fcn.10058fb0
jmp 0x1005a4dd
mov edi, dword [eax - 0xc]
mov esi, ecx
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0xa
sub esi, eax
or ecx, edx
jge 0x1005a45a
push 0xa
lea ecx, [ebp - 0x1014]
call fcn.1001e830
mov eax, dword [ebp - 0x1014]
cmp esi, edi
ja 0x1005a49d
lea ecx, [esi + eax]
test ecx, ecx
jne 0x1005a477
call fcn.100c8d62
mov dword [eax], 0x16
call fcn.100c8c89
jmp 0x1005a4b0
cmp dword [eax - 8], 0xa
jae 0x1005a48f
call fcn.100c8d62
mov dword [eax], 0x22
call fcn.100c8c89
jmp 0x1005a4b0
push 0xa
push ecx
push eax
call fcn.100c5130
add esp, 0xc
jmp 0x1005a4b0
push 0xa
push str._system32_
push dword [eax - 8]
push eax
call fcn.100071f0
add esp, 0x10
mov eax, dword [ebp - 0x1014]
cmp dword [eax - 8], 0xa
jl 0x1005a580
mov edi, dword [ebp - 0x1018]
mov esi, dword [ebp - 0x1024]
mov dword [eax - 0xc], 0xa
mov eax, dword [ebp - 0x1014]
mov byte [eax + 0xa], 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.1005ade0
mov edx, dword [ebp - 0x1014]
add esp, 8
mov bl, al
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1005a51b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1005a54e
mov ebx, dword [ebp - 0x1028]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1030]
cmp eax, dword [ebp + 0xc]
ja 0x1005a54e
push 0x14
test esi, esi
je 0x1005a555
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1005a286
mov eax, 1
jmp 0x1005a562
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005a286
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10089d41
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.100060c0
push 0x80004005
call fcn.100060c0
int3