Function at 0x4b1e22
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x274
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
push ecx
push str.__s___exe__s
mov esi, 0x104
lea edi, [esp + 0x84]
call fcn.004af0d0
mov edx, dword [ebp + 0x14]
add esp, 0xc
push 0x8000
push edx
mov eax, edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004c9460
cmp dword [esp + 0x44], 0xffffffff
jne 0x4b1b6e
mov edx, dword [esp + 0x40]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [edi], 2
call esi
mov eax, dword [esp + 0x44]
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4b1b63
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
xor esi, esi
push esi
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call edx
test al, al
jne 0x4b1e99
mov al, byte [ebp + 0x18]
neg al
sbb eax, eax
and eax, 0xfade37e0
add eax, 0x5265c00
mov dword [esp + 0x64], eax
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx]
mov edi, eax
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
jne 0x4b1c83
mov ecx, dword [esp + 0x3c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b1c83
mov eax, dword [esp + 0x44]
push 0
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [esp + 0x48], 0
setne al
test al, al
jne 0x4b1c83
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [esp + 0x48], 0
jne 0x4b1c83
push 0xc8
push ecx
mov ecx, dword [esp + 0x44]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x7c]
push eax
mov ecx, ebx
call edx
cmp dword [eax], 1
je 0x4b1c83
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [esp + 0x64]
ja 0x4b1f3a
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
test al, al
je 0x4b1bd8
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
je 0x4b1cd6
mov ecx, dword [esp + 0x3c]
push 0
push ecx
call edi
test eax, eax
je 0x4b1cd6
mov eax, dword [esp + 0x44]
push 0
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [esp + 0x48], 0
setne al
test al, al
je 0x4b1f99
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
jne 0x4b1e89
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea esp, [esp]
mov ecx, dword [esp + 0x3c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b1d31
mov eax, dword [esp + 0x44]
push 0
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [esp + 0x48], 0
setne al
test al, al
je 0x4b1e89
mov eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x64]
push ecx
push 1
lea edx, [esp + 0x47]
push edx
push eax
mov byte [esp + 0x4f], 0
call edi
cmp dword [esp + 0x60], 1
jne 0x4b1f4c
cmp byte [esp + 0x3b], 0x80
jb 0x4b1dbe
mov eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x5c]
push ecx
push 2
lea edx, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x5c], 0
call edi
movzx ecx, word [esp + 0x48]
add ecx, 1
push ecx
lea esi, [esp + 0x6c]
call fcn.00480af0
movzx eax, word [esp + 0x48]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
push 0
lea edx, [esp + 0x60]
push edx
add eax, eax
push eax
push esi
push ecx
call edi
movzx eax, word [esp + 0x48]
add eax, eax
cmp dword [esp + 0x5c], eax
jne 0x4b1f4c
mov word [eax + esi], 0
movzx eax, byte [esp + 0x3b]
cmp eax, 0x83
ja case.0x4b1dd5.3
movzx edx, byte [eax + 0x4b20b0]
jmp dword [edx*4 + 0x4b2088]
mov edx, dword [esp + 0x44]
fld1
push 0
fstp qword [esp + 0x4c]
lea eax, [esp + 0x58]
push eax
push 8
lea ecx, [esp + 0x54]
push ecx
push edx
call edi
cmp dword [esp + 0x54], 8
jne 0x4b1f4c
mov eax, dword [ebx]
fld qword [esp + 0x48]
mov edx, dword [eax + 0x24]
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call edx
jmp case.0x4b1dd5.3
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
jmp case.0x4b1dd5.3
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
call edx
jmp case.0x4b1dd5.3
test esi, esi
mov eax, esi
jne 0x4b1e38
mov eax, 0x6bc0cc
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x1c]
mov ecx, ebx
call eax
jmp case.0x4b1dd5.3
test esi, esi
mov eax, esi
jne 0x4b1e4f
mov eax, 0x6bc0cc
push 0
jmp 0x4b1e6f
test esi, esi
mov eax, esi
jne 0x4b1e5e
mov eax, 0x6bc0cc
push 1
jmp 0x4b1e6f
test esi, esi
mov eax, esi
jne 0x4b1e6d
mov eax, 0x6bc0cc
push 2
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x20]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
je 0x4b1cf0
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
je 0x4b1bc0
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
je 0x4b1f4c
mov ecx, dword [esp + 0x3c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4b2039
mov ecx, dword [esp + 0x40]
push 0
lea edx, [esp + 0x5c]
push edx
push 1
lea eax, [esp + 0x47]
push eax
push ecx
mov byte [esp + 0x4f], 0xff
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 0x18], 0
jne 0x4b2039
mov edx, dword [esp + 0x3c]
xor edi, edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4b2039
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xc8
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
cmp edi, 0x19
mov eax, dword [esp + 0x3c]
jge 0x4b202b
push 0
push eax
add edi, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4b1f02
jmp 0x4b2039
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4b1f4c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [ebp + 8]
push esi
mov dword [ebx], 2
call fcn.0069c8fa
mov ecx, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4b1f8e
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x3c]
push eax
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [ebp + 8]
push esi
mov dword [ebx], 2
call fcn.0069c8fa
mov ecx, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4b1f8e
push 0x1388
push eax
call edi
mov eax, dword [esp + 0x3c]
push eax
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x58]
push ecx
push ebx
push edx
push eax
call edi
cmp dword [esp + 0x54], ebx
jne 0x4b1f4c
cmp byte [esp + 0x3b], 1
mov ebx, dword [ebp + 8]
push esi
jne 0x4b1f50
mov dword [ebx], 0
jmp 0x4b1f56
mov ebx, dword [ebp + 8]
mov dword [ebx], 1
push esi
jmp 0x4b1f56
cmp eax, 0xffffffff
je 0x4b2039
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [ebp + 8]
push esi
mov dword [edi], 1
call fcn.0069c8fa
mov ecx, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4b207b
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x3c]
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14