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

Disassembly:
push ebp
sub esp, 0x128
lea ebp, [esp - 4]
mov eax, dword [0x434018]
xor eax, ebp
mov dword [ebp + 0x128], eax
push 0x24
mov eax, 0x4207a1
call fcn.0041de82
mov eax, dword [ebp + 0x138]
mov edi, dword [ebp + 0x134]
mov esi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.mfc90.dll_Ordinal_316]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x31d4], ebx
je 0x413f4b
push str.WARNING__Animation_Script_overrun_
mov ecx, esi
call fcn.004120f6
or dword [esi + 0x31e4], 0xffffffff
jmp 0x4140d8
cmp edi, ebx
je 0x414060
cmp dword [esi + 0x31e0], ebx
je 0x414056
lea ecx, [ebp - 0x30]
call sub.mfc90.dll_Ordinal_404
lea ecx, [ebp - 0x14]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
push edi
lea eax, [ebp - 0x10]
push str.Load_script_file__s
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
push ebx
push 0x8040
push edi
lea ecx, [ebp - 0x30]
call sub.mfc90.dll_Ordinal_5520
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x30]
call sub.mfc90.dll_Ordinal_3717
mov eax, dword [ebp + 0x18]
inc eax
cmp dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x413fd6
push edi
lea eax, [ebp - 0x10]
push str.Error_opening_script_file__s
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
jmp 0x41401a
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_2698]
push dword [ebp - 0x1c]
mov edi, eax
push edi
lea ecx, [ebp - 0x30]
call sub.mfc90.dll_Ordinal_5753
lea ecx, [ebp - 0x30]
call sub.mfc90.dll_Ordinal_1555
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov byte [edi + eax - 1], bl
call dword [sym.imp.mfc90.dll_Ordinal_5835]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_6682]
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x31dc]
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call fcn.004120f6
lea ecx, [ebp - 0x14]
mov dword [esi + 0x31e0], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.mfc90.dll_Ordinal_663
push 0x423da0
lea ecx, [ebp - 0x10]
jmp 0x414077
push 0x423da0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
push dword [ebp - 0x1c]
lea ecx, [esi + 0x31dc]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, esi
call fcn.004120f6
lea eax, [esi + 0x31dc]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
test eax, eax
jle 0x4140c9
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_1303]
mov edi, eax
push edi
lea ecx, [esi + 0x3188]
call fcn.00403177
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
mov dword [esi + 0x31e4], eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.0041de66
add ebp, 0x12c
leave
ret 8