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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x24]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
lea eax, [ebp - 0x24]
mov edx, dword [0x4965c8]
call fcn.00405a24
xor eax, eax
push ebp
push 0x4c3450
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
mov dword [ebx + 0x338], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x33c], eax
cmp dword [ebp - 0x24], 0x1b
jne 0x4c300b
mov byte [ebx + 0x2c], 0
mov byte [ebx + 0x2d], 0
cmp byte [ebx + 0x2c], 0
jne 0x4c33ed
mov eax, dword [ebp - 0x24]
cmp eax, 0x14
jg 0x4c3032
je 0x4c303e
add eax, 0xfffffffa
sub eax, 2
jb 0x4c303e
dec eax
sub eax, 3
jb 0x4c303e
dec eax
je 0x4c303e
jmp 0x4c305e
sub eax, 0x1b
je 0x4c303e
sub eax, 0x1377
jne 0x4c305e
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x28], eax
test al, 2
je 0x4c3057
mov byte [ebx + 0x214], 1
jmp 0x4c305e
mov byte [ebx + 0x214], 0
cmp dword [ebp - 0x24], 0x17
mov eax, dword [0x531548]
cmp ebx, dword [eax]
jne 0x4c331f
cmp dword [ebp - 0x24], 0xbc3
jne 0x4c3092
mov eax, dword [0x531348]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.004b7048
test al, al
je 0x4c3434
cmp dword [ebp - 0x24], 0xbc5
jne 0x4c30cb
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x531548]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x531548]
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [0x531348]
mov eax, dword [eax]
call fcn.004b6e94
test al, al
je 0x4c3434
cmp dword [ebp - 0x24], 0xbdb
jne 0x4c3104
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x531548]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x531548]
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [0x531348]
mov eax, dword [eax]
call fcn.004b6e94
test al, al
je 0x4c3434
mov eax, dword [ebp - 0x24]
add eax, 0xfffff443
cmp eax, 0x21
ja case.0x4c311b.3005
mov al, byte [eax + 0x4c3122]
jmp dword [eax*4 + 0x4c3144]
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
sub dword [ebp - 0x24], 0xbb8
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 0x1392
jmp case.0x4c311b.3005
cmp dword [ebx + 0x20], 0
je 0x4c31de
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebx + 0x118], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x11c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + 0x120], eax
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 5
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 8
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 0x25
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 0x19
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 0x23
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 0x24
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 0x1a
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov dword [ebp - 0x24], 4
jmp case.0x4c311b.3005
lea eax, [ebx + 0x348]
lea edx, [ebp - 0x24]
mov ecx, dword [0x4965c8]
call fcn.00405b44
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebx + 0x354], eax
sub dword [ebp - 0x24], 0xbb8
mov eax, dword [ebx + 8]
mov dword [ebx + 0x32c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x330], eax
xor eax, eax
mov al, byte [ebx + 0x10]
mov dword [ebx + 0x334], eax
mov eax, dword [ebp - 0x24]
sub eax, 0x11
je 0x4c3376
sub eax, 0xe
jne 0x4c33c5
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x264], eax
movzx eax, word [ebx + 0x3c]
lea eax, [eax + eax*4]
mov edx, 0xc8
sub edx, eax
mov dword [ebp - 0x28], edx
fild dword [ebp - 0x28]
call fcn.00403340
cmp eax, 0x50
jle 0x4c335f
mov dword [ebx + 0x30c], eax
jmp 0x4c3369
mov dword [ebx + 0x30c], 0x50
call fcn.00407464
mov dword [ebx + 0x258], eax
jmp 0x4c33d7
mov al, byte [ebp - 0x18]
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c33d7
mov eax, dword [ebp - 4]
mov esi, eax
lea edi, [ebx + 0x1c0]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1c0], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x1d4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x1d8], eax
mov edx, 0x24
mov eax, dword [ebp - 4]
call fcn.00402e08
jmp 0x4c33d7
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov al, byte [ebp - 0x18]
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x238], eax
mov eax, ebx
mov si, 0xffff
call fcn.00404294
jmp 0x4c340a
mov eax, dword [ebp - 0x24]
cmp eax, 0x21
jne 0x4c340a
mov dword [ebx + 0x238], eax
mov eax, ebx
mov si, 0xffff
call fcn.00404294
mov byte [ebx + 0x2d], 1
mov eax, dword [ebp - 0x24]
cmp eax, 0x20
je 0x4c3417
cmp eax, 0x22
jne 0x4c3429
mov byte [ebx + 0x2c], 1
mov eax, dword [0x531348]
mov eax, dword [eax]
mov edx, ebx
call fcn.004b7ac8
mov eax, ebx
mov si, 0xfff9
call fcn.00404294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3457
lea eax, [ebp - 0x24]
mov edx, dword [0x4965c8]
call fcn.004058e0
ret