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

Disassembly:
mov eax, 0x61dde0
call fcn.0044c384
sub esp, 0x60
mov eax, dword [ebp + 0x1c]
and dword [ebp - 0x28], 0
push ebx
cmp dword [ebp + 0x18], eax
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
pop esi
mov dword [ebp - 0x38], esi
jge 0x4c2e9b
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x4c2bb9
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
jmp 0x4c2c19
cmp eax, esi
jne 0x4c2bd8
push dword [ebp + 8]
call fcn.005a0460
push eax
call fcn.00465712
mov di, ax
pop ecx
neg di
sbb edi, edi
pop ecx
inc edi
jmp 0x4c2bb1
cmp eax, 2
jne 0x4c2c06
push dword [ebp + 8]
call fcn.005a0460
push eax
call fcn.00465712
mov di, ax
pop ecx
neg di
sbb edi, edi
xor eax, eax
inc edi
pop ecx
test di, di
sete al
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
jmp 0x4c2c19
cmp eax, 3
jne 0x4c2c16
and dword [ebp - 0x1c], 0
mov edi, esi
mov dword [ebp - 0x18], edi
jmp 0x4c2c19
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call fcn.00474268
cmp word [ebp - 0x50], 0x8000
pop ecx
pop ecx
jne 0x4c2c55
cmp word [ebp - 0x4e], 0x8000
jne 0x4c2c55
cmp word [ebp - 0x4c], 0x7fff
jne 0x4c2c55
cmp word [ebp - 0x4a], 0x7fff
jne 0x4c2c55
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call fcn.00476cda
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.005a0460
mov esi, eax
push esi
call fcn.0048bf98
mov ebx, eax
push esi
mov dword [ebp - 0x44], ebx
call fcn.0048bf98
push esi
mov dword [ebp - 0x48], eax
call fcn.0048bf98
push esi
mov dword [ebp - 0x2c], eax
call fcn.0048bf98
push eax
mov dword [ebp - 0x34], eax
call fcn.0048bf7c
add esp, 0x18
mov dword [0x6b89e0], eax
call fcn.005a259d
mov esi, dword [ebp + 0x18]
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp + 0x1c]
jge 0x4c2e6b
and dword [ebp - 4], 0
call fcn.005989f0
mov dword [ebp - 0x5c], eax
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x64]
mov dword [eax], ecx
mov dword [ebp - 0x60], 0x5989d1
cmp esi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
jl 0x4c2cfa
mov eax, dword [ebp + 0x14]
cmp esi, eax
jge 0x4c2cfa
lea esi, [eax - 1]
mov dword [ebp - 0x20], esi
inc esi
and dword [ebp - 0x14], 0
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
jmp 0x4c2e62
lea eax, [ebp - 0x30]
push 0
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x50]
push dword [ebp - 0x14]
push esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.004c2eaa
add esp, 0x2c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00466634
pop ecx
test ax, ax
pop ecx
je 0x4c2dd6
push 0
lea eax, [ebp - 0x58]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.004c31da
add esp, 0x1c
cmp dword [ebp - 0x14], 0
je 0x4c2d5f
inc esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x58]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.004c31da
xor esi, esi
add esp, 0x1c
cmp word [ebp - 0x1c], si
je 0x4c2dc3
cmp word [ebp - 0x38], si
jne 0x4c2da3
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
push ebx
call fcn.0048c076
add esp, 0xc
push ebx
push dword [ebp - 0x34]
push ebx
call fcn.0048c173
add esp, 0xc
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x2c]
call fcn.0048c12e
add esp, 0xc
push 1
push ebx
push dword [ebp + 8]
call fcn.00474709
add esp, 0xc
mov dword [ebp - 0x38], esi
cmp di, si
je 0x4c2dd6
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call fcn.00474dca
pop ecx
pop ecx
cmp dword [ebp + 0x20], 0
jne 0x4c2e0d
cmp dword [ebp - 0x28], 0
jne 0x4c2e0d
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp + 0x1c]
jge 0x4c2e10
call fcn.005a259d
sub eax, dword [ebp - 0x40]
cmp eax, 0x3c
jbe 0x4c2e0d
call fcn.0045c767
push 1
push 0x458
mov dword [ebp - 0x28], eax
call fcn.0045c77c
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
cmp word [ebp - 0x3c], 0
je 0x4c2ce5
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], eax
jmp 0x4c2ced
or dword [ebp - 4], 0xffffffff
jmp 0x4c2ca9
cmp dword [ebp - 0x28], 0
je 0x4c2e7a
push dword [ebp - 0x28]
call fcn.0045c7d7
pop ecx
push dword [ebp - 0x34]
call fcn.0048bff2
push dword [ebp - 0x2c]
call fcn.0048bff2
push ebx
call fcn.0048bff2
push dword [ebp - 0x48]
call fcn.0048bff2
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret