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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x54d000]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x58dc78], 1
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
jne 0x4658f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4658ff
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [ebx + 0xfc], eax
ja 0x465b90
xor eax, eax
mov byte [ebp - 8], 0
mov word [ebp - 7], ax
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx + 0x3c4]
mov edi, dword [ecx + 0x3e4]
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x3e0]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], edi
push eax
add ecx, 0x660
call fcn.004634a0
cmp dword [ebp - 0x20], 0x10
jb 0x465954
push dword [ebp - 0x34]
call fcn.004d9d65
add esp, 4
mov edx, dword [ebx + 0x64]
lea esi, [ebx + 0xf8]
mov ecx, dword [edx + 0x3c]
mov eax, dword [ecx + 0x5c4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x5e4]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x604]
mov ecx, dword [ecx + 0x624]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
add eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
jg 0x465b90
mov ecx, dword [ebx + 0x134]
mov eax, dword [ebx + 0x130]
mov al, byte [eax + ecx]
cmp al, 0x81
jb 0x4659ad
cmp al, 0xff
jbe 0x4659bd
cmp al, 0xe0
jb 0x465a67
cmp al, 0xff
ja 0x465a67
mov edx, dword [ebx + 0x130]
movzx eax, byte [edx + ecx]
inc ecx
mov byte [ebp - 8], al
mov dword [ebx + 0x134], ecx
movzx eax, byte [ecx + edx]
mov byte [ebp - 7], al
lea eax, [ecx + 1]
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x134], eax
push ecx
mov ecx, dword [ebx + 0x60]
lea eax, [ebx + 0xf4]
push edi
push dword [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.004b2fd0
mov eax, dword [esi]
add eax, edi
cmp eax, dword [ebp - 0x1c]
jg 0x465b90
mov eax, dword [ebx + 0x64]
mov ecx, ebx
mov edx, dword [ebx]
mov eax, dword [eax + 0x3c]
push dword [eax + 0x6a4]
call dword [edx + 0xe0]
test eax, eax
je 0x465a2c
lea edi, [eax + 0x120]
jmp 0x465a2e
xor edi, edi
mov eax, dword [esi]
mov edx, dword [ebx + 0xf4]
mov ecx, dword [ebx + 0xb4]
push 1
push eax
push edx
mov esi, dword [ecx + 0x120]
add ecx, 0x120
push edi
mov edi, dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push eax
push edx
call dword [esi + 0x48]
mov eax, dword [ebp - 0x10]
add dword [ebx + 0xf4], eax
jmp 0x465b22
mov eax, dword [ebx + 0x130]
mov al, byte [eax + ecx]
cmp al, 0x1c
jne 0x465aab
lea eax, [ecx + 1]
mov ecx, dword [ebx + 0x130]
mov dword [ebx + 0x134], eax
mov cl, byte [eax + ecx]
inc eax
mov dword [ebx + 0x134], eax
test cl, cl
jne 0x465b28
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + 0x5c4]
mov dword [ebx + 0xf4], eax
jmp 0x465b28
mov byte [ebp - 8], al
lea eax, [ecx + 1]
mov dword [ebx + 0x134], eax
mov ecx, ebx
mov eax, dword [edx + 0x3c]
mov edx, dword [ebx]
push dword [eax + 0x6a4]
call dword [edx + 0xe0]
test eax, eax
je 0x465ad8
add eax, 0x120
mov dword [ebp - 0xc], eax
jmp 0x465adf
mov dword [ebp - 0xc], 0
mov ecx, dword [esi]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebx + 0xb4]
push 1
mov esi, dword [esi + 0xf4]
push ecx
push esi
push dword [ebp - 0xc]
cdq
push dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebx + 0x120]
mov edi, eax
sar edi, 1
push edi
push ecx
push esi
lea ecx, [ebx + 0x120]
call dword [edx + 0x48]
mov ebx, dword [ebp - 0x18]
add dword [ebx + 0xf4], edi
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 0xf8]
mov eax, dword [ebx + 0x134]
cmp eax, dword [ebx + 0x138]
jge 0x465b3f
mov eax, dword [esi]
add eax, edi
cmp eax, dword [ebp - 0x1c]
jle 0x465b59
push 1
mov ecx, ebx
call fcn.00465bb0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret
call fcn.00496a60
cmp dword [eax + 0x68], 0
je 0x465b69
call fcn.004bb1a0
cmp dword [0x58dc78], 1
jne 0x465b7a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x465b80
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [ebx + 0xdc]
add eax, ecx
mov dword [ebx + 0xfc], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret