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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x4dbf59
cmp byte [esi + 0x22a], 0x32
jb 0x4dbf59
cmp byte [esi + 0x22a], 0
je 0x4dbf49
mov eax, 4
sub eax, edi
call fcn.00403484
test eax, eax
jne 0x4dbf49
xor eax, eax
mov dword [esi + 0x380], eax
mov eax, dword [esi + 0x278]
cmp eax, dword [ebp - 4]
jne 0x4dbcd0
lea eax, [edi + edi*4]
add eax, 0xa
imul edx, eax, 0x3e8
mov eax, esi
call fcn.00667df0
mov bl, 1
jmp 0x4dbf59
mov eax, 2
call fcn.00403484
test eax, eax
jne 0x4dbf32
movzx eax, word [esi + 0x34]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x34]
add edx, 2
cmp eax, edx
ja 0x4dbf45
mov eax, 3
call fcn.00403484
test eax, eax
jne 0x4dbf11
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x34]
add eax, 0x14
lea edx, [edi + edi*4]
add eax, edx
call fcn.00403484
movzx edx, word [esi + 0x34]
mov ecx, dword [select]
add edx, dword [ecx + 0x6460]
cmp eax, edx
jle 0x4dbee2
cmp byte [esi + 0x264], 0
jne 0x4dbec0
movzx eax, word [esi + 0x34]
mov edx, dword [select]
cmp eax, dword [edx + 0x645c]
jge 0x4dbec0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
mov eax, dword [eax + 8]
mov edx, dword [select]
cmp eax, dword [edx + 0x650c]
jge 0x4dbec0
movzx eax, word [esi + 0x122]
mov edx, dword [select]
mov ecx, dword [edx + 0x6508]
cdq
idiv ecx
mov ebx, eax
cmp ebx, 2
jg 0x4dbd9b
mov ebx, 2
jmp 0x4dbd9d
add ebx, ebx
mov eax, dword [esi + 0x278]
cmp eax, dword [ebp - 4]
je 0x4dbea0
mov eax, ebx
call fcn.00403484
test eax, eax
jne 0x4dbea0
mov eax, esi
call fcn.00667e74
cmp dword [esi + 0x278], 0
je 0x4dbde2
movzx eax, word [esi + 0x11e]
mov ecx, 0xa
xor edx, edx
div ecx
mov word [esi + 0x11e], ax
mov eax, dword [ebp - 4]
mov dword [esi + 0x278], eax
mov byte [esi + 0xbbd], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x34]
add eax, eax
call fcn.00403484
mov edx, edi
add edx, edx
add edx, edx
lea edx, [edx + edx*4]
add eax, edx
add eax, 0x14
imul eax, eax, 0x3c
imul ebx, eax, 0x3e8
call sub.kernel32.dll_GetTickCount_1
add ebx, eax
mov dword [esi + 0x27c], ebx
mov eax, edi
mov byte [esi + 0x289], al
cmp dword [esi + 0x280], 0
jne 0x4dbe40
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x280], eax
mov eax, esi
call fcn.00667e24
imul edx, edi, 0xc8
mov eax, 0x5dc
sub eax, edx
cmp eax, dword [esi + 0xb48]
jae 0x4dbe62
mov dword [esi + 0xb48], eax
mov eax, 0x7d0
sub eax, edx
cmp eax, dword [esi + 0xb60]
jae 0x4dbe84
imul eax, edi, 0xc8
mov edx, 0x7d0
sub edx, eax
mov dword [esi + 0xb60], edx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
mov edx, esi
call fcn.0041fa48
jmp 0x4dbf45
mov eax, 0xe
call fcn.00403484
test eax, eax
jne 0x4dbf45
mov word [esi + 0x11e], 0
jmp 0x4dbf45
cmp byte [esi + 0x264], 1
jne 0x4dbf45
mov eax, 0x14
call fcn.00403484
test eax, eax
jne 0x4dbf45
mov word [esi + 0x11e], 0
jmp 0x4dbf45
cmp byte [esi + 0x264], 1
je 0x4dbf45
mov eax, 0x14
call fcn.00403484
test eax, eax
jne 0x4dbf45
mov eax, 0x14
call fcn.00403484
mov edx, eax
add edx, 0xa
mov eax, esi
call fcn.00667e3c
jmp 0x4dbf45
cmp byte [esi + 0x264], 1
je 0x4dbf45
mov eax, 0x14
call fcn.00403484
mov edx, eax
add edx, 0xa
mov eax, esi
call fcn.00667e3c
jmp 0x4dbf45
lea eax, [edi + edi*4]
add eax, 0xa
imul edx, eax, 0x3e8
mov eax, esi
call fcn.00667df0
mov bl, 1
jmp 0x4dbf59
mov eax, 2
call fcn.00403484
test eax, eax
jne 0x4dbf59
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc