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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eed36
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.10084470
mov eax, dword [0x101302a0]
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.100545d0
cmp dword [ebx], 0
je 0x100549c0
cmp dword [ebx + 4], 0
je 0x100549c0
cmp dword [ebx + 8], 0
je 0x100549c0
cmp dword [ebx + 0xc], 0
je 0x100549c0
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x101c], 0
push 0
push eax
call fcn.100bf410
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 0x1005483d
cmp dword [ebp - 0x101c], 0
jbe 0x1005483d
cmp dword [ebx], 0
je 0x100549ae
cmp dword [ebx + 4], 0
je 0x100549ae
mov eax, dword [ebx + 8]
test eax, eax
je 0x100549ae
cmp dword [ebx + 0xc], 0
je 0x100549ae
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 0x100549ae
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 0x100549e0
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.100c5f67
mov ecx, 0x7fffffff
mov dword [ebp - 0x102c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x100549e0
lea esi, [edi + eax]
test esi, esi
js 0x100549e0
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 0x100547eb
mov ecx, dword [ebp - 0x1018]
push esi
call fcn.10019470
mov eax, dword [ebp - 0x1018]
mov edx, dword [eax]
cmp ebx, edi
ja 0x100547f8
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.10006660
mov edi, dword [ebp - 0x1018]
add esp, 0x10
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x100549e0
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 0x100546e6
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x10054985
call fcn.10005810
test eax, eax
je 0x100549ea
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 0x1005488e
movzx eax, cx
lea ecx, [ebp - 0x1014]
push eax
call fcn.10053410
jmp 0x1005493d
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 0x100548ba
push 0xa
lea ecx, [ebp - 0x1014]
call fcn.10019470
mov eax, dword [ebp - 0x1014]
cmp esi, edi
ja 0x100548fd
lea ecx, [esi + eax]
test ecx, ecx
jne 0x100548d7
call fcn.100c2ac2
mov dword [eax], 0x16
call fcn.100c29e9
jmp 0x10054910
cmp dword [eax - 8], 0xa
jae 0x100548ef
call fcn.100c2ac2
mov dword [eax], 0x22
call fcn.100c29e9
jmp 0x10054910
push 0xa
push ecx
push eax
call fcn.100bee90
add esp, 0xc
jmp 0x10054910
push 0xa
push str._system32_
push dword [eax - 8]
push eax
call fcn.10006660
add esp, 0x10
mov eax, dword [ebp - 0x1014]
cmp dword [eax - 8], 0xa
jl 0x100549e0
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.10055240
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 0x1005497b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x100549ae
mov ebx, dword [ebp - 0x1028]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1030]
cmp eax, dword [ebp + 0xc]
ja 0x100549ae
push 0x14
test esi, esi
je 0x100549b5
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100546e6
mov eax, 1
jmp 0x100549c2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100546e6
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.10084321
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.10005530
push 0x80004005
call fcn.10005530
int3