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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d597b
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x41c], esi
cmp dword [0x565e28], 1
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4616ef
call ebx
jmp 0x4616f1
call edi
cmp dword [esi + 0x1d04], eax
jae 0x4617d7
mov ecx, dword [esi + 0x1d08]
xor eax, eax
cmp ecx, 1
setne al
mov dword [esi + 0x1d08], eax
mov eax, dword [esi + 0x47c]
imul edx, eax, 0xb
mov dword [ebp - 0x418], edx
cmp ecx, 1
je 0x461730
cmp eax, 0x21
jge 0x461758
push 1
push 0xffffffffffffffff
jmp 0x461734
push 1
push 0
mov ecx, dword [esi + 0x1cfc]
mov eax, dword [ebp - 0x418]
add ecx, 0x108
push 0x16
push 2
push 6
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 0xd0]
call fcn.00475d70
cmp dword [eax + 0x68], 0
je 0x4617bd
mov eax, dword [vtable.CCriticalSection.0]
mov ecx, 0x565b7c
mov dword [ebp - vtable.CCriticalSection.0], 0x565b7c
call dword [eax + 4]
mov dword [ebp - 4], 1
call fcn.00475d70
mov ecx, eax
mov dword [ebp - 0x418], eax
call fcn.00477790
test eax, eax
jne 0x4617a2
mov ecx, dword [ebp - 0x418]
call fcn.00477860
mov dword [ebp - 4], 2
mov ecx, 0x565b7c
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [0x565e28], 1
jne 0x4617ca
call ebx
jmp 0x4617cc
call edi
add eax, 0x12c
mov dword [esi + 0x1d04], eax
cmp dword [esi + 0x4c0], 1
lea eax, [ebp - 0x410]
mov dword [esi + 0x1d44], eax
mov dword [esi + 0x1d48], 0x400
jne 0x4618e3
mov eax, dword [esi + 0x47c]
cmp eax, 0x21
jge 0x4618e3
imul ecx, eax, 0xb
mov eax, 0x16a
push ecx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 8]
push eax
lea ecx, [esi + 0x4b0]
call fcn.00429f50
mov eax, dword [esi + 0x47c]
lea ebx, [esi + 0x78]
mov edi, 0x20
lea ecx, [esi + 0x1cd4]
sub edi, eax
add ebx, eax
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x4cc
mov edx, edi
mov ecx, esi
call fcn.0042a2e0
mov edi, eax
lea ecx, [edi + 2]
mov word [esi + edi], 0
push ecx
push esi
push ebx
call fcn.004bebc0
add esp, 0xc
mov ebx, dword [ebp - 0x41c]
lea ecx, [ebx + 0x1cd4]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
add dword [ebx + 0x47c], edi
push 1
call fcn.004622d0
lea ecx, [ebx + 0x4b0]
call fcn.00429eb0
mov esi, dword [sym.imp.USER32.dll_WINNLSEnableIME]
push 0
push 0
call esi
push 1
push 0
call esi
mov eax, 0x20
lea ecx, [ebx + 0x4b0]
sub eax, dword [ebx + 0x47c]
mov dword [ebx + 0x1d40], eax
lea eax, [ebx + 0x1d0c]
push eax
call fcn.00429df0
mov eax, dword [ebx]
mov ecx, ebx
push 0xe
call dword [eax + 0xc4]
jmp 0x46191d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
mov edi, eax
mov eax, dword [esi + 0x478]
cmp edi, eax
je 0x46191d
cmp eax, 0xffffffff
je 0x461908
push 0
push eax
mov ecx, esi
call fcn.00461c30
mov dword [esi + 0x478], edi
cmp edi, 0xffffffff
je 0x46191d
push 1
push edi
mov ecx, esi
call fcn.00461c30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret