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

Disassembly:
push 0x24
mov eax, 0x57619c
call fcn.005611e0
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 0x49cfe8
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 0x49d344
mov eax, dword [edi + 0x2b8]
cmp byte [esi + eax], 0xff
jne 0x49d01a
cmp byte [ebp - 0xd], 0
jne 0x49d334
mov dword [ebp - 0x24], esi
jmp 0x49d334
mov byte [ebp - 0xd], 1
cmp esi, dword [ebp + 0x10]
jl 0x49d334
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x40], eax
jle 0x49d048
mov eax, dword [ebx + eax*4]
cmp esi, dword [eax]
je 0x49d334
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebx + 0x40]
jl 0x49d031
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sar eax, 2
test eax, eax
je 0x49d0c6
cmp eax, 5
jae 0x49d0c6
mov eax, dword [ebp + 0x18]
add eax, ecx
cmp esi, eax
jl 0x49d0c6
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 0x49d344
mov eax, dword [edi + 0x2b8]
mov al, byte [esi + eax]
test al, al
jne 0x49d18e
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 0x49d112
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp esi, eax
jge 0x49d112
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 0x49d32c
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 0x49d32c
mov dword [ecx], 1
jmp 0x49d32c
mov cl, byte [ebp + 0x1c]
test cl, cl
je 0x49d236
cmp al, 1
jb 0x49d2eb
cmp al, 3
jae 0x49d2eb
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 0x49d228
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 0x49d228
mov dword [ecx], 1
mov eax, dword [edi + 0x2b8]
inc byte [eax + esi]
jmp 0x49d32c
cmp al, 1
jb 0x49d2eb
mov eax, dword [edi + 0x2bc]
test eax, eax
je 0x49d2eb
mov ecx, esi
shl ecx, 3
add ecx, eax
call fcn.00442733
test al, al
je 0x49d2e8
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 0x49d299
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
add eax, edx
cmp esi, eax
jge 0x49d299
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 0x49d32c
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 0x49d16d
mov cl, byte [ebp + 0x1c]
cmp byte [edi + 0x381], 0
je 0x49d329
test cl, cl
mov ecx, dword [ebp - 0x18]
jne 0x49d363
mov eax, dword [edi + 0x2b8]
mov al, byte [esi + eax]
cmp al, 1
jb 0x49d363
cmp al, 3
jae 0x49d363
mov edx, dword [ebp + 0x18]
lea eax, [ecx + edx]
cmp esi, eax
jge 0x49d363
cmp esi, edx
jl 0x49d363
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0044e021
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x14]
jge 0x49d344
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [edi + 0x2c0]
jl 0x49cffc
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov dword [edi + 0x2c8], eax
add dword [ebx + 0x40], edx
call fcn.00408f76
mov eax, dword [ebp - 0x14]
call fcn.005611ae
ret 0x18
mov edx, dword [ebp - 0x14]
jmp 0x49d32f