Function at 0x4c65fc
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 0x4c6d2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x660]
cmp byte [eax + 0x270], 0
jne 0x4c6d14
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x6259c]
add edx, 0x12c
cmp eax, edx
jbe 0x4c6676
call sub.kernel32.dll_GetTickCount_1
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 [0x5329f0]
mov edx, dword [edx]
mov eax, dword [0x532d5c]
mov eax, dword [eax]
call fcn.004aef94
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c6cd8
mov eax, dword [0x532b6c]
cmp byte [eax + 3], 0
je 0x4c66bb
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x660]
mov dl, 1
call fcn.004903fc
jmp 0x4c6d14
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.004855a4
cmp eax, 0x100
jle 0x4c66f7
mov eax, dword [ebp - 0xc]
call fcn.00485374
cmp eax, 0x100
jle 0x4c66f7
mov byte [ebp - 0x3d], 1
jmp 0x4c672b
mov byte [ebp - 0x3d], 0
mov eax, dword [ebp - 0xc]
call fcn.004855a4
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fdivr dword [0x4c6d3c]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0xc]
call fcn.00485374
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fdivr dword [0x4c6d3c]
fstp qword [ebp - 0x50]
wait
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23a
call fcn.0048b5ac
mov dword [ebp - 0x18], eax
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23b
call fcn.0048b5ac
mov dword [ebp - 0x20], eax
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23c
call fcn.0048b5ac
mov dword [ebp - 0x1c], eax
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x23d
call fcn.0048b5ac
mov dword [ebp - 0x14], eax
mov eax, dword [0x532b6c]
cmp byte [eax], 0
je 0x4c67a3
cmp byte [ebp - 0x3d], 0
jne 0x4c67c6
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x230
call fcn.0048b5ac
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x40
jmp 0x4c67e7
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x22f
call fcn.0048b5ac
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x80
mov eax, dword [0x5328dc]
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 [0x5328dc]
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.0047c9c0
mov dword [ebp - 0x69], eax
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x30]
xor eax, eax
call fcn.0047c9c0
mov dword [ebp - 0x65], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00485344
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x30]
add edx, edx
add edx, dword [ebp - 0x69]
call fcn.0047c994
mov dword [ebp - 0x61], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00485344
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x30]
add edx, edx
add edx, dword [ebp - 0x65]
call fcn.0047c994
mov dword [ebp - 0x5d], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.00485344
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x61]
jne 0x4c688e
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.00485344
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x5d]
jne 0x4c68ae
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 0x4c690c
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.004172f0
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0xc]
call fcn.00485344
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 8]
pop edx
call fcn.00485078
lea edx, [ebp - 0x69]
mov eax, dword [ebp - 0xc]
call fcn.00485344
jmp 0x4c6969
mov eax, dword [0x532b6c]
cmp byte [eax + 1], 0
je 0x4c6949
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.0048d64c
jmp 0x4c6969
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.00484d3c
cmp dword [ebp - 0x10], 0
je 0x4c699a
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
call fcn.00485344
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.00484d3c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x625a0], 0
je 0x4c6c4c
mov eax, dword [0x5328dc]
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.0047d150
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 [0x5328dc]
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.0047d150
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x14], 0
je 0x4c6a3c
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
call fcn.00485344
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.00484d3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x62588]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c6c4c
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.00418724
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
mov edx, dword [0x5328dc]
mov edx, dword [edx]
movzx edx, word [edx + 8]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x4c6c40
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x34]
je 0x4c6c40
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0xa]
mov edx, dword [0x5328dc]
mov edx, dword [edx]
movzx edx, word [edx + 0xa]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x4c6c40
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x30], 0
jne 0x4c6c40
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 + 0x12]
sub al, 1
jb 0x4c6b36
sub al, 0x31
je 0x4c6b61
jmp 0x4c6b8c
cmp dword [ebp - 0x20], 0
je 0x4c6bb5
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.00485344
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.00484d3c
jmp 0x4c6bb5
cmp dword [ebp - 0x1c], 0
je 0x4c6bb5
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
call fcn.00485344
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.00484d3c
jmp 0x4c6bb5
cmp dword [ebp - 0x18], 0
je 0x4c6bb5
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.00485344
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.00484d3c
mov eax, dword [0x5328e0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4c6c40
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x94]
mov eax, dword [0x5328e0]
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 + 0x44]
call fcn.00404a90
jne 0x4c6c38
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x240
call fcn.0048b5ac
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.00485344
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.00484d3c
jmp 0x4c6c40
inc dword [ebp - 0x3c]
dec dword [ebp - 0x58]
jne 0x4c6bd1
inc dword [ebp - 0x38]
dec dword [ebp - 0x54]
jne 0x4c6a5c
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
mov byte [eax + 0x270], 1
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c0]
mov byte [eax + 0x270], 1
mov eax, dword [0x532f8c]
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 [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x65c]
call fcn.0043ec3c
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
call fcn.0043ec3c
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c0]
call fcn.0043ec3c
jmp 0x4c6d14
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
mov byte [eax + 0x270], 0
mov eax, dword [0x532f8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c0]
mov byte [eax + 0x270], 0
mov eax, dword [0x532f8c]
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 0x4c6d34
lea eax, [ebp - 0x94]
call fcn.00404684
ret