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

Disassembly:
mov eax, 0x1130
call fcn.0046f7e0
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x112c], eax
mov eax, dword [esp + 0x1134]
mov edx, dword [esp + 0x1140]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1140]
mov dword [esp + 0x18], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 1
call fcn.00494210
mov eax, dword [esi + 8]
xor ebx, ebx
push eax
mov byte [esi + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
test eax, eax
je 0x4944dc
mov edx, dword [0x4f9bc0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f9bc0
call eax
add eax, 0x10
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov dword [esp + 0x28], eax
push edi
mov ecx, dword [esi + 0x18]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x148]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4944f5
cmp dword [esp + 0x14], ebx
jbe 0x494448
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0x144]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494498
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x494498
lea ecx, [esp + 0x38]
push 0xfde9
lea edx, [esp + 0x13c]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + eax + 0x140], bl
call fcn.0040c580
mov edx, dword [esp + 0x34]
cmp edx, ebx
jne 0x4943e9
xor eax, eax
jmp 0x4943ff
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4943f0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0040dcc0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x49441f
push eax
call fcn.0046db16
add esp, 4
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x494460
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x494460
push ecx
push eax
call fcn.0046f02d
add esp, 8
cmp eax, ebx
je 0x494460
sub eax, dword [esp + 0x10]
sar eax, 1
jns 0x494498
jmp 0x494460
cmp byte [esp + 0x1154], bl
je 0x494458
call fcn.00494d60
jmp 0x494460
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x114c]
cmp edi, 0xffffffff
je 0x49447e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x2c]
cmp eax, edi
jg 0x494500
cmp ebp, 0x102
je 0x494336
mov edx, dword [esi + 0x18]
lea ecx, [esi + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004937a0
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
cmp ecx, ebx
je 0x4944b8
lea edx, [esp + 8]
push edx
call fcn.0040b0f0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4944d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1134]
pop esi
pop ebx
xor ecx, esp
call fcn.0046da8a
add esp, 0x1130
ret 0x14
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
jmp 0x494492
or eax, 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esp + 0x18], eax
jmp 0x494498