Function at 0x4c2771
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate thread

Disassembly:
mov eax, 0x53abe8
call fcn.004ea774
sub esp, 0x444
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], esi
cmp dword [esi + 0x14], ebx
mov dword [ebp - 0x10], esp
je 0x4c279b
or eax, 0xffffffff
jmp 0x4c2a32
mov eax, dword [0x58c61c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.0051de80
cmp eax, ebx
je 0x4c27db
cmp dword [ebp - 0x18], 3
je 0x4c27e2
cmp dword [ebp - 0x18], 0x100b
je 0x4c27e2
push ebx
call fcn.004c3ce7
pop ecx
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
lea ecx, [esi + 0x10]
mov dword [esi + 0x20], eax
call fcn.00505c61
mov ecx, dword [esi + 0x20]
push 1
pop edi
push edi
call fcn.0051e113
mov ecx, dword [esi + 0x20]
push esi
call fcn.004c3dec
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0051e0ac
cmp dword [ebp - 0x18], 0x100b
mov dword [esi + 0x28], eax
mov dword [ebp + 0xc], 0x20000000
jne 0x4c2832
mov dword [ebp + 0xc], 0x2080f000
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push ebx
push edi
push ebx
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call fcn.0051ea9d
cmp dword [ebp - 0x18], 0x100b
mov dword [esi + 0x24], eax
jne 0x4c287a
lea ecx, [ebp + 0xc]
push ecx
push 0x1f
mov ecx, eax
call fcn.0051e238
or byte [ebp + 0xd], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x24]
mov dword [ebp + 0x14], eax
push ebx
lea eax, [ebp + 0x14]
push 4
push eax
push 0x1f
call fcn.0051e25a
mov eax, dword [ebp + 0x1c]
push eax
mov dword [esi + 0xc], eax
call fcn.00505819
pop ecx
mov dword [esi + 8], eax
push dword [esi + 0xc]
push dword [ebp + 0x18]
push eax
call fcn.004eabd0
add esp, 0xc
jmp 0x4c290b
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
push eax
push ebx
push esi
push 0x4c2a43
push ebx
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x20], ebx
mov dword [esi + 0x14], eax
mov dword [ebp + 0xc], ebx
je 0x4c29a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 4], eax
push edi
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4c295e
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0xa
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4c29e0
cmp dword [esi + 4], ebx
je 0x4c2938
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 4]
cmp eax, dword [esi + 0x18]
jbe 0x4c2938
push ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.004c26f2
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 4], ebx
mov dword [ebp + 0xc], edi
jmp 0x4c2938
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call edi
cmp eax, 0x102
jne 0x4c29d3
mov ecx, esi
call fcn.004c26f2
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0xffffffffffffffff
push dword [esi + 0x14]
call edi
mov dword [ebp + 0xc], 1
jmp 0x4c29e0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], ebx
je 0x4c2a13
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x4c2a13
or dword [ebp - 0x14], 0xffffffff
cmp dword [ecx + 0x14], ebx
mov eax, dword [ecx]
je 0x4c2a07
push 0x58502c
jmp 0x4c2a0c
push 0x58501c
push 7
push 4
call dword [eax + 0x14]
mov dword [esi + 0x14], ebx
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00505ad8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00505ad8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c