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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0xff
push edi
mov edi, ecx
cmp esi, 0xffffffff
je 0x48e72e
mov dword [edi + 0x164], esi
mov dword [edi + 0x168], ebx
cmp dword [0x592ad4], 1
jne 0x48e6d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x48e6d9
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, 0xfffffe0c
mov dword [edi + 0x16c], eax
mov eax, dword [esi*4 + 0x53e58c]
push esi
mov dword [edi + 0x170], eax
lea eax, [ebp - 0x108]
push str.scene_thumb_02d.akb
push eax
call fcn.0048e970
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
add esp, 0xc
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0
push 0
push dword [edi + 0xd0]
push ecx
mov ecx, edi
call dword [eax + 0xd8]
jmp 0x48e7db
cmp dword [0x592ad4], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x48e747
call ebx
jmp 0x48e749
call esi
sub eax, dword [edi + 0x16c]
cmp eax, 0x3e8
jle 0x48e929
add eax, 0xfffffc18
imul ecx, eax, 0xff
mov eax, 0x10624dd3
imul ecx
mov ecx, 0xff
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [edi + 0x168]
mov dword [ebp - 0x10c], eax
inc eax
cdq
idiv dword [edi + 0x170]
mov dword [ebp - 0x114], ecx
mov eax, edx
mov dword [ebp - 0x110], eax
cmp ecx, 0xff
jne 0x48e7d9
mov dword [edi + 0x168], eax
cmp dword [0x592ad4], 1
jne 0x48e7c9
call ebx
mov ebx, dword [ebp - 0x110]
mov dword [edi + 0x16c], eax
jmp 0x48e7db
call esi
mov ebx, dword [ebp - 0x110]
mov dword [edi + 0x16c], eax
jmp 0x48e7db
mov ebx, eax
mov edx, dword [edi + 0xc8]
mov ecx, dword [edi + 0xd8]
push 1
add ecx, 0x130
lea eax, [edx + 0x130]
neg edx
push 0
push 0x416
mov esi, dword [ecx]
sbb edx, edx
and edx, eax
push edx
push 0x96
push 0x106
push 0
push 0
call dword [esi + 0x48]
imul eax, dword [ebp - 0x10c], 0x102
mov edx, dword [edi + 0xd0]
mov ecx, dword [edi + 0xd8]
push 1
push 0
push eax
mov esi, dword [ecx + 0x130]
lea eax, [edx + 0x130]
add ecx, 0x130
neg edx
sbb edx, edx
and edx, eax
push edx
push 0x92
push 0x102
push 2
push 2
call dword [esi + 0x48]
cmp dword [ebp - 0x10c], ebx
je 0x48e8aa
mov eax, dword [ebp - 0x114]
mov edx, dword [edi + 0xd0]
mov ecx, dword [edi + 0xd8]
push 0
movzx eax, al
add ecx, 0x130
push eax
imul eax, ebx, 0x102
push 0
mov esi, dword [ecx]
push eax
lea eax, [edx + 0x130]
neg edx
sbb edx, edx
and edx, eax
push edx
push 0x92
push 0x102
push 2
push 2
call dword [esi + 0x58]
mov ecx, dword [edi + 0xd8]
xor ebx, ebx
mov esi, dword [edi + 0xc8]
add ecx, 0x130
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x164]
mov eax, dword [ecx]
lea edx, [esi + 0x130]
je 0x48e8d8
push 0x96
jmp 0x48e8dd
push 0x12c
push 0x416
test esi, esi
cmove edx, ebx
push edx
push 0x96
push 0x106
push 0
push 0
call dword [eax + 0x4c]
mov ecx, dword [edi + 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0xd8]
mov edx, dword [ecx]
test eax, eax
je 0x48e926
call dword [edx + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
call dword [edx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4