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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c3881
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x660]
cmp byte [eax + 0x270], 0
jne 0x4c3868
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x6259c]
add edx, 0x12c
cmp eax, edx
jbe 0x4c31ca
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x6259c], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x625a0]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x625a0], al
mov edx, dword [0x52b97c]
mov edx, dword [edx]
mov eax, dword [0x52ba54]
mov eax, dword [eax]
call fcn.004abe44
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c382c
mov eax, dword [0x52baf4]
cmp byte [eax + 3], 0
je 0x4c320f
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x660]
mov dl, 1
call fcn.0048dd48
jmp 0x4c3868
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x3ff00000
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x3ff00000
mov eax, dword [ebp - 0xc]
call fcn.00484f18
cmp eax, 0x100
jle 0x4c324b
mov eax, dword [ebp - 0xc]
call fcn.00484ce8
cmp eax, 0x100
jle 0x4c324b
mov byte [ebp - 0x3d], 1
jmp 0x4c327f
mov byte [ebp - 0x3d], 0
mov eax, dword [ebp - 0xc]
call fcn.00484f18
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fdivr dword [0x4c3890]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0xc]
call fcn.00484ce8
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fdivr dword [0x4c3890]
fstp qword [ebp - 0x50]
wait
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23a
call fcn.0048af20
mov dword [ebp - 0x18], eax
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23b
call fcn.0048af20
mov dword [ebp - 0x20], eax
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23c
call fcn.0048af20
mov dword [ebp - 0x1c], eax
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23d
call fcn.0048af20
mov dword [ebp - 0x14], eax
mov eax, dword [0x52baf4]
cmp byte [eax], 0
je 0x4c32f7
cmp byte [ebp - 0x3d], 0
jne 0x4c331a
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x230
call fcn.0048af20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x40
jmp 0x4c333b
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x22f
call fcn.0048af20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x80
mov eax, dword [0x52b860]
mov eax, dword [eax]
movzx eax, word [eax + 8]
shl eax, 4
lea eax, [eax + eax*2]
shr eax, 5
mov dword [ebp - 0x28], eax
mov eax, dword [0x52b860]
mov eax, dword [eax]
movzx eax, word [eax + 0xa]
shl eax, 5
shr eax, 5
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
xor eax, eax
call fcn.0047c61c
mov dword [ebp - 0x69], eax
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x30]
xor eax, eax
call fcn.0047c61c
mov dword [ebp - 0x65], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00484cb8
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x30]
add edx, edx
add edx, dword [ebp - 0x69]
call fcn.0047c5f0
mov dword [ebp - 0x61], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00484cb8
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x30]
add edx, edx
add edx, dword [ebp - 0x65]
call fcn.0047c5f0
mov dword [ebp - 0x5d], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00484cb8
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x61]
jne 0x4c33e2
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 0x61]
sub edx, eax
mov dword [ebp - 0x69], edx
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00484cb8
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x5d]
jne 0x4c3402
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 0x5d]
sub edx, eax
mov dword [ebp - 0x65], edx
cmp byte [ebp - 0x3d], 0
jne 0x4c3460
mov eax, dword [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
mov eax, 0x320
pop edx
sub eax, edx
mov ecx, 0x320
xor edx, edx
call fcn.00417300
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0xc]
call fcn.00484cb8
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 8]
pop edx
call fcn.004849ec
lea edx, [ebp - 0x69]
mov eax, dword [ebp - 0xc]
call fcn.00484cb8
jmp 0x4c34bd
mov eax, dword [0x52baf4]
cmp byte [eax + 1], 0
je 0x4c349d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x69]
push eax
mov eax, dword [ebp - 0x65]
push eax
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push 0
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, 0x320
sub edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0050e4d8
jmp 0x4c34bd
lea eax, [ebp - 0x69]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, 0x320
sub edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004846b0
cmp dword [ebp - 0x10], 0
je 0x4c34ee
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
call fcn.00484cb8
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, 0x320
sub edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004846b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x625a0], 0
je 0x4c37a0
mov eax, dword [0x52b860]
mov eax, dword [eax]
movzx eax, word [eax + 8]
shl eax, 4
lea eax, [eax + eax*2]
shr eax, 5
sub eax, dword [ebp - 0x69]
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [ebp - 0x48]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.0047cb14
mov edx, dword [ebp - 0x30]
add edx, edx
mov ecx, 0x320
sub ecx, edx
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x52b860]
mov eax, dword [eax]
movzx eax, word [eax + 0xa]
shl eax, 5
shr eax, 5
sub eax, dword [ebp - 0x65]
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [ebp - 0x50]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.0047cb14
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x14], 0
je 0x4c3590
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
call fcn.00484cb8
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004846b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x62588]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c37a0
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x62588]
mov edx, dword [ebp - 0x38]
call fcn.00418734
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
mov edx, dword [0x52b860]
mov edx, dword [edx]
movzx edx, word [edx + 8]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x4c3794
mov eax, dword [0x52b860]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x34]
je 0x4c3794
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0xa]
mov edx, dword [0x52b860]
mov edx, dword [edx]
movzx edx, word [edx + 0xa]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x4c3794
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2c], 0
jne 0x4c3794
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
shl eax, 4
lea eax, [eax + eax*2]
shr eax, 5
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [ebp - 0x48]
call fcn.00402bf8
mov edx, dword [ebp - 0x30]
add edx, edx
mov ecx, 0x320
sub ecx, edx
add eax, ecx
sub eax, dword [ebp - 0x69]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0xa]
shl eax, 5
shr eax, 5
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [ebp - 0x50]
call fcn.00402bf8
sub eax, dword [ebp - 0x65]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 0xe]
sub al, 1
jb 0x4c368a
sub al, 0x31
je 0x4c36b5
jmp 0x4c36e0
cmp dword [ebp - 0x20], 0
je 0x4c3709
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.00484cb8
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004846b0
jmp 0x4c3709
cmp dword [ebp - 0x1c], 0
je 0x4c3709
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
call fcn.00484cb8
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004846b0
jmp 0x4c3709
cmp dword [ebp - 0x18], 0
je 0x4c3709
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.00484cb8
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004846b0
mov eax, dword [0x52b868]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4c3794
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x94]
mov eax, dword [0x52b868]
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x40]
call fcn.00404a90
jne 0x4c378c
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x240
call fcn.0048af20
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.00484cb8
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004846b0
jmp 0x4c3794
inc dword [ebp - 0x3c]
dec dword [ebp - 0x58]
jne 0x4c3725
inc dword [ebp - 0x38]
dec dword [ebp - 0x54]
jne 0x4c35b0
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
mov byte [eax + 0x270], 1
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c0]
mov byte [eax + 0x270], 1
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x65c]
mov byte [eax + 0x270], 1
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x65c]
call fcn.0043e89c
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
call fcn.0043e89c
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c0]
call fcn.0043e89c
jmp 0x4c3868
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
mov byte [eax + 0x270], 0
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c0]
mov byte [eax + 0x270], 0
mov eax, dword [0x52bf20]
mov eax, dword [eax]
mov eax, dword [eax + 0x65c]
mov byte [eax + 0x270], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3888
lea eax, [ebp - 0x94]
call fcn.00404684
ret