Function at 0x4ea598
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 0x4eacc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c8]
cmp byte [eax + 0x2b8], 0
jne 0x4eacb0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc3bf8]
add edx, 0x12c
cmp eax, edx
jbe 0x4ea612
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc3bf8], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xc3bfc]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0xc3bfc], al
mov edx, dword [0x529cfc]
mov edx, dword [edx]
mov eax, dword [0x52a078]
mov eax, dword [eax]
call fcn.00500f10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4eac74
mov eax, dword [0x529e78]
cmp byte [eax + 3], 0
je 0x4ea657
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c8]
mov dl, 1
call fcn.0049cdac
jmp 0x4eacb0
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.0048f0ec
cmp eax, 0x100
jle 0x4ea693
mov eax, dword [ebp - 0xc]
call fcn.0048eebc
cmp eax, 0x100
jle 0x4ea693
mov byte [ebp - 0x3d], 1
jmp 0x4ea6c7
mov byte [ebp - 0x3d], 0
mov eax, dword [ebp - 0xc]
call fcn.0048f0ec
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fdivr dword [0x4eacd8]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0xc]
call fcn.0048eebc
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fdivr dword [0x4eacd8]
fstp qword [ebp - 0x50]
wait
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x23a
call fcn.00494f5c
mov dword [ebp - 0x18], eax
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x23b
call fcn.00494f5c
mov dword [ebp - 0x20], eax
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x23c
call fcn.00494f5c
mov dword [ebp - 0x1c], eax
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x23d
call fcn.00494f5c
mov dword [ebp - 0x14], eax
mov eax, dword [0x529e78]
cmp byte [eax], 0
je 0x4ea73f
cmp byte [ebp - 0x3d], 0
jne 0x4ea762
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x230
call fcn.00494f5c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x40
jmp 0x4ea783
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x22f
call fcn.00494f5c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x80
mov eax, dword [0x529bec]
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 [0x529bec]
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.004678c8
mov dword [ebp - 0x69], eax
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x30]
xor eax, eax
call fcn.004678c8
mov dword [ebp - 0x65], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.0048ee8c
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x30]
add edx, edx
add edx, dword [ebp - 0x69]
call fcn.0046789c
mov dword [ebp - 0x61], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.0048ee8c
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x30]
add edx, edx
add edx, dword [ebp - 0x65]
call fcn.0046789c
mov dword [ebp - 0x5d], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0xc]
call fcn.0048ee8c
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x61]
jne 0x4ea82a
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.0048ee8c
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x5d]
jne 0x4ea84a
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 0x4ea8a8
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, 0x400
pop edx
sub eax, edx
mov ecx, 0x400
xor edx, edx
call fcn.00417d14
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0xc]
call fcn.0048ee8c
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 8]
pop edx
call fcn.0048ebc0
lea edx, [ebp - 0x69]
mov eax, dword [ebp - 0xc]
call fcn.0048ee8c
jmp 0x4ea905
mov eax, dword [0x529e78]
cmp byte [eax + 1], 0
je 0x4ea8e5
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, 0x400
sub edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004956b8
jmp 0x4ea905
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, 0x400
sub edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0048e884
cmp dword [ebp - 0x10], 0
je 0x4ea936
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
call fcn.0048ee8c
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, 0x400
sub edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0048e884
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc3bfc], 0
je 0x4eabe8
mov eax, dword [0x529bec]
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.00468050
mov edx, dword [ebp - 0x30]
add edx, edx
mov ecx, 0x400
sub ecx, edx
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x529bec]
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.00468050
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x14], 0
je 0x4ea9d8
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
call fcn.0048ee8c
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.0048e884
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc3be4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4eabe8
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc3be4]
mov edx, dword [ebp - 0x38]
call fcn.00419164
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
mov edx, dword [0x529bec]
mov edx, dword [edx]
movzx edx, word [edx + 8]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x4eabdc
mov eax, dword [0x529bec]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x34]
je 0x4eabdc
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0xa]
mov edx, dword [0x529bec]
mov edx, dword [edx]
movzx edx, word [edx + 0xa]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xa
jge 0x4eabdc
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x30], 0
jne 0x4eabdc
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.00403404
mov edx, dword [ebp - 0x30]
add edx, edx
mov ecx, 0x400
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.00403404
sub eax, dword [ebp - 0x65]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 0x12]
sub al, 1
jb 0x4eaad2
sub al, 0x31
je 0x4eaafd
jmp 0x4eab28
cmp dword [ebp - 0x20], 0
je 0x4eab51
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.0048ee8c
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.0048e884
jmp 0x4eab51
cmp dword [ebp - 0x1c], 0
je 0x4eab51
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
call fcn.0048ee8c
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.0048e884
jmp 0x4eab51
cmp dword [ebp - 0x18], 0
je 0x4eab51
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.0048ee8c
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.0048e884
mov eax, dword [0x529bf0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4eabdc
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x94]
mov eax, dword [0x529bf0]
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.00405458
jne 0x4eabd4
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
mov edx, 0x240
call fcn.00494f5c
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x18]
call fcn.0048ee8c
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.0048e884
jmp 0x4eabdc
inc dword [ebp - 0x3c]
dec dword [ebp - 0x58]
jne 0x4eab6d
inc dword [ebp - 0x38]
dec dword [ebp - 0x54]
jne 0x4ea9f8
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x624]
mov byte [eax + 0x2b8], 1
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x628]
mov byte [eax + 0x2b8], 1
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c4]
mov byte [eax + 0x2b8], 1
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c4]
call fcn.00445bc0
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x624]
call fcn.00445bc0
mov edx, dword [ebp - 0x30]
add edx, edx
sub edx, 0x14
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x628]
call fcn.00445bc0
jmp 0x4eacb0
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x624]
mov byte [eax + 0x2b8], 0
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x628]
mov byte [eax + 0x2b8], 0
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c4]
mov byte [eax + 0x2b8], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eacd0
lea eax, [ebp - 0x94]
call fcn.00405030
ret