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

Disassembly:
mov eax, 0x61be04
call fcn.0044c384
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call fcn.005989f0
mov dword [ebp - 0x28], eax
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
mov dword [eax], ecx
mov dword [ebp - 0x2c], 0x5989d1
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
cmp eax, edi
je 0x464276
mov eax, dword [eax + 0x14]
cmp eax, edi
je 0x464276
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call eax
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x46428b
movsx eax, word [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
movsx ecx, word [ebp - 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp word [esi + 0x98], di
je 0x4643f9
mov eax, dword [esi + 0x3c]
cmp dword [esi + 0x8c], eax
jle 0x4642dc
mov edx, dword [esi + 0x9c]
sub eax, edx
cmp ecx, eax
jle 0x4642cd
mov eax, dword [esi + 0xc0]
jmp 0x4642d9
cmp ecx, edx
jge 0x4642dc
mov eax, dword [esi + 0xc0]
neg eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x38]
cmp dword [esi + 0x88], eax
jle 0x464310
mov ecx, dword [esi + 0x9c]
mov edx, dword [ebx]
sub eax, ecx
cmp edx, eax
jle 0x4642fd
mov eax, dword [esi + 0xbc]
jmp 0x464309
cmp edx, ecx
jge 0x464310
mov eax, dword [esi + 0xbc]
neg eax
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x464320
cmp dword [ebp - 0x14], edi
jne 0x464320
mov dword [esi + 0xa0], edi
jmp 0x4643f9
cmp dword [esi + 0xa0], 0
lea edi, [esi + 0xa0]
jne 0x464336
call fcn.005a259d
mov dword [edi], eax
call fcn.005a259d
mov edx, eax
sub edx, dword [edi]
mov dword [ebp + 8], edx
call fcn.0045c6ce
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x4643f9
mov eax, dword [esi + 0x94]
cmp dword [ebp + 0x14], 0
mov edi, dword [esi + 0x90]
mov dword [ebp + 8], eax
je 0x4643bc
push esi
call fcn.00464478
push esi
mov ebx, eax
call fcn.0046441f
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
jle 0x46438a
cmp ax, word [esi + 0xda]
jl 0x4643a9
cmp dword [ebp - 0x14], ecx
jge 0x464391
cmp ax, cx
jg 0x4643a9
cmp dword [ebp - 0x18], ecx
jle 0x4643a2
cmp bx, word [esi + 0xd8]
jl 0x4643a9
cmp dword [ebp - 0x18], ecx
jge 0x4643b9
cmp bx, cx
jle 0x4643b9
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [ebp + 0x14]
add esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x94]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [esi + 0x90]
push eax
push esi
call fcn.0046492d
push esi
call fcn.00464134
add esp, 0x10
cmp edi, dword [esi + 0x90]
jne 0x4643f2
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x94]
je 0x4643f9
mov dword [ebp - 0x24], 1
mov eax, dword [esi + 0x90]
pop edi
add dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x94]
pop esi
add dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x24]
mov dword fs:[0], ecx
pop ebx
leave
ret