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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b22d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0xad162c]
mov esi, dword [eax]
cmp esi, eax
je 0x4c7548
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
imul ecx, dword [esi + 0x20], 0x3e8
sub eax, dword [esi + 0x1c]
cmp eax, ecx
jb 0x4c733d
call ebx
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
call fcn.0051f250
xor ecx, ecx
mov dword [ebp - 0x3c], vtable.CRandomManager.0
xor ebx, ebx
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], eax
mov edi, dword [esi + 0x24]
cmp edi, dword [esi + 0x28]
je 0x4c72fb
nop dword [eax]
mov dword [ebp - 0x18], eax
inc eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], eax
cmp ebx, ecx
je 0x4c72d5
movq xmm0, qword [ebp - 0x1c]
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
add ebx, 0xc
mov dword [ebp - 0x30], ebx
jmp 0x4c72eb
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00416ef0
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
add edi, 0x18
cmp edi, dword [esi + 0x28]
jne 0x4c72b0
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
jmp 0x4c72fd
xor edi, edi
test eax, eax
je 0x4c7321
cmp edi, ebx
je 0x4c7321
call fcn.00526930
cdq
idiv dword [ebp - 0x38]
mov eax, edi
cmp edx, dword [eax + 4]
jl 0x4c731a
cmp edx, dword [eax + 8]
jl 0x4c736a
add eax, 0xc
cmp eax, ebx
jne 0x4c7310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x3c], vtable.CRandomManager.0
call fcn.00416cb0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4c7526
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4c7363
cmp esi, dword [eax + 8]
jne 0x4c7363
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4c7353
mov esi, eax
jmp 0x4c753c
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + 4]
call fcn.004bd1b0
mov ebx, eax
test ebx, ebx
js 0x4c7321
cmp ebx, 0x1194
jge 0x4c7321
mov edx, dword [ebx*4 + 0x20a514c]
or eax, 0xffffffff
mov dword [ebp - 0x28], edx
mov word [edx + 0x224], ax
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 8]
mov word [edx + 0x144], cx
movzx eax, word [eax + 0xc]
mov word [edx + 0x166], cx
mov word [edx + 0x162], cx
mov byte [edx + 0x160], cl
mov ecx, dword [ebp - 0x20]
mov word [edx + 0x146], ax
mov word [edx + 0x168], ax
mov word [edx + 0x164], ax
mov byte [edx + 0x161], al
mov al, byte [ecx + 0x10]
mov byte [edx + 0x148], al
mov al, byte [ecx + 4]
mov ecx, ebx
mov byte [edx + 0x149], al
mov edx, dword [esi + 0x14]
call fcn.004bb250
test al, al
jne 0x4c745b
mov ecx, ebx
call fcn.0051f250
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4c7337
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x4c744c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7564
push ecx
push edi
call fcn.00529f3f
add esp, 8
jmp 0x4c7337
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], ebx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
movsx ecx, word [eax + 0x146]
movzx ebx, byte [eax + 0x149]
mov dword [ebp - 0x20], ecx
movsx ecx, word [eax + 0x144]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
push eax
mov ecx, 0x9f436c
mov dword [ebp - 0x28], ebx
call fcn.00405650
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0xd], 0
jne 0x4c74b5
cmp ebx, dword [eax + 0x10]
jl 0x4c74b5
cmp eax, dword [0x9f436c]
je 0x4c74b5
add eax, 0x6c
jmp 0x4c74ba
mov eax, str.NoName
push dword [ebp - 0x20]
push dword [ebp - 0x40]
push eax
push dword [esi + 0x14]
push str._Monster_Move__SpawnMonster___d____s___d___d_
push 0
call fcn.005262e0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4c7337
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x4c7517
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7564
push ecx
push edi
call fcn.00529f3f
add esp, 8
jmp 0x4c7337
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4c753c
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4c7530
cmp esi, dword [0xad162c]
jne 0x4c7260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
call fcn.0052d95f
int3