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

Disassembly:
mov eax, 0x549dc0
call fcn.004f8378
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 0x4cf643
or eax, 0xffffffff
jmp 0x4cf8da
mov eax, dword [0x59fe84]
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.0052b9f3
cmp eax, ebx
je 0x4cf683
cmp dword [ebp - 0x18], 3
je 0x4cf68a
cmp dword [ebp - 0x18], 0x100b
je 0x4cf68a
push ebx
call fcn.004d0ba6
pop ecx
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
lea ecx, [esi + 0x10]
mov dword [esi + 0x20], eax
call fcn.005138b9
mov ecx, dword [esi + 0x20]
push 1
pop edi
push edi
call fcn.0052bc86
mov ecx, dword [esi + 0x20]
push esi
call fcn.004d0ca6
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0052bc1f
cmp dword [ebp - 0x18], 0x100b
mov dword [esi + 0x28], eax
mov dword [ebp + 0xc], 0x20000000
jne 0x4cf6da
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.0052c610
cmp dword [ebp - 0x18], 0x100b
mov dword [esi + 0x24], eax
jne 0x4cf722
lea ecx, [ebp + 0xc]
push ecx
push 0x1f
mov ecx, eax
call fcn.0052bdab
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.0052bdcd
mov eax, dword [ebp + 0x1c]
push eax
mov dword [esi + 0xc], eax
call fcn.00513471
pop ecx
mov dword [esi + 8], eax
push dword [esi + 0xc]
push dword [ebp + 0x18]
push eax
call fcn.004f87d0
add esp, 0xc
jmp 0x4cf7b3
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
push eax
push ebx
push esi
push 0x4cf8eb
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 0x4cf849
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 0x4cf806
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 0x4cf888
cmp dword [esi + 4], ebx
je 0x4cf7e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 4]
cmp eax, dword [esi + 0x18]
jbe 0x4cf7e0
push ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.004cf59a
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 4], ebx
mov dword [ebp + 0xc], edi
jmp 0x4cf7e0
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call edi
cmp eax, 0x102
jne 0x4cf87b
mov ecx, esi
call fcn.004cf59a
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 0x4cf888
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 0x4cf8bb
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x4cf8bb
or dword [ebp - 0x14], 0xffffffff
cmp dword [ecx + 0x14], ebx
mov eax, dword [ecx]
je 0x4cf8af
push 0x598884
jmp 0x4cf8b4
push 0x598874
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.00513730
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00513730
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c