Function at 0x49c1d9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
mov eax, 0x57894a
call fcn.0056357c
mov edi, ecx
or dword [ebp - 0x24], 0xffffffff
xor ebx, ebx
mov edx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov ecx, 0x96
mov eax, dword [edi + 0x608]
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x49c21f
cmp eax, dword [edi + 0x2c0]
cmovb ecx, eax
mov dword [ebp - 0x18], ecx
cmp dword [edi + 0x2c0], ebx
mov esi, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
jle 0x49c57b
mov eax, dword [edi + 0x2b8]
cmp byte [esi + eax], 0xff
jne 0x49c251
cmp byte [ebp - 0xd], 0
jne 0x49c56b
mov dword [ebp - 0x24], esi
jmp 0x49c56b
mov byte [ebp - 0xd], 1
cmp esi, dword [ebp + 0x10]
jl 0x49c56b
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x40], eax
jle 0x49c27f
mov eax, dword [ebx + eax*4]
cmp esi, dword [eax]
je 0x49c56b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebx + 0x40]
jl 0x49c268
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sar eax, 2
test eax, eax
je 0x49c2fd
cmp eax, 5
jae 0x49c2fd
mov eax, dword [ebp + 0x18]
add eax, ecx
cmp esi, eax
jl 0x49c2fd
mov eax, dword [ebx + 0x40]
add eax, edx
mov ecx, dword [ebx + eax*4]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
and dword [eax + 8], 0
inc edx
mov eax, dword [edi + 0x2b8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
inc byte [ecx + eax]
lea ecx, [edx + 4]
mov eax, dword [ebp - 0x2c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call dword [sym.imp.MSVCR120.dll_memmove]
sub dword [ebp - 0x2c], 4
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x14]
jge 0x49c57b
mov eax, dword [edi + 0x2b8]
mov al, byte [esi + eax]
test al, al
jne 0x49c3c5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x224]
lea ecx, [eax*2 + 0x7d0]
mov eax, 0x2710
cmp ecx, eax
cmova ecx, eax
cmp byte [edi + 0x381], 0
je 0x49c349
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp esi, eax
jge 0x49c349
cmp esi, dword [ebp + 0x18]
mov eax, 0x3e8
cmovge ecx, eax
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax], esi
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
and dword [eax + 8], 0
inc edx
mov eax, dword [edi + 0x2b8]
mov dword [ebp - 0x14], edx
mov byte [esi + eax], 1
mov eax, dword [edi + 0x2bc]
test eax, eax
je 0x49c563
mov edx, dword [edi + 0x2bc]
mov eax, esi
shl eax, 3
mov dword [eax + edx + 4], ecx
mov ecx, dword [edi + 0x2bc]
add ecx, eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
jne 0x49c563
mov dword [ecx], 1
jmp 0x49c563
mov cl, byte [ebp + 0x1c]
test cl, cl
je 0x49c46d
cmp al, 1
jb 0x49c522
cmp al, 3
jae 0x49c522
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax], esi
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
and dword [eax + 8], 0
inc edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x224]
lea ecx, [eax*2 + 0x1f4]
mov eax, 0x2710
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x2bc]
test eax, eax
je 0x49c45f
mov edx, dword [edi + 0x2bc]
mov eax, esi
shl eax, 3
mov dword [eax + edx + 4], ecx
mov ecx, dword [edi + 0x2bc]
add ecx, eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
jne 0x49c45f
mov dword [ecx], 1
mov eax, dword [edi + 0x2b8]
inc byte [eax + esi]
jmp 0x49c563
cmp al, 1
jb 0x49c522
mov eax, dword [edi + 0x2bc]
test eax, eax
je 0x49c522
mov ecx, esi
shl ecx, 3
add ecx, eax
call fcn.00441a43
test al, al
je 0x49c51f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x224]
lea ecx, [eax*2 + 0x7d0]
mov eax, 0x2710
cmp ecx, eax
cmova ecx, eax
cmp byte [edi + 0x381], 0
je 0x49c4d0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
add eax, edx
cmp esi, eax
jge 0x49c4d0
cmp esi, edx
mov eax, 0x1f4
cmovge ecx, eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 0x14]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax], esi
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x40]
add eax, edx
mov eax, dword [ebx + eax*4]
and dword [eax + 8], 0
inc edx
mov eax, dword [edi + 0x2bc]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x49c563
mov edx, esi
shl edx, 3
mov dword [edx + eax + 4], ecx
mov eax, dword [edi + 0x2bc]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x49c3a4
mov cl, byte [ebp + 0x1c]
cmp byte [edi + 0x381], 0
je 0x49c560
test cl, cl
mov ecx, dword [ebp - 0x18]
jne 0x49c59a
mov eax, dword [edi + 0x2b8]
mov al, byte [esi + eax]
cmp al, 1
jb 0x49c59a
cmp al, 3
jae 0x49c59a
mov edx, dword [ebp + 0x18]
lea eax, [ecx + edx]
cmp esi, eax
jge 0x49c59a
cmp esi, edx
jl 0x49c59a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044d3b4
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x14]
jge 0x49c57b
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [edi + 0x2c0]
jl 0x49c233
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov dword [edi + 0x2c8], eax
add dword [ebx + 0x40], edx
call fcn.00408df6
mov eax, dword [ebp - 0x14]
call fcn.0056354a
ret 0x18
mov edx, dword [ebp - 0x14]
jmp 0x49c566