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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [0x6249dc]
mov ecx, dword [0x6249d8]
push eax
push ecx
mov ecx, 0x6249d8
call fcn.0046e840
lea edx, [esp + 0x13]
lea ecx, [esp + 0x34]
push edx
call fcn.00405d90
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov ebx, eax
lea edx, [eax + ecx]
cmp eax, edx
mov dword [esp + 0x18], edx
jge 0x46b8f6
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x38]
lea eax, [edi + ecx]
mov dword [esp + 0x68], eax
cmp edi, dword [esp + 0x68]
jge 0x46b8eb
push edi
push ebx
mov ecx, ebp
call fcn.0046c910
test eax, eax
mov dword [esp + 0x60], eax
je 0x46b8d2
mov cl, byte [eax + 0x2c]
test cl, cl
jne 0x46b8d2
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ecx, edx
cmp ecx, esi
je 0x46b877
cmp dword [edx], eax
je 0x46b877
add edx, 4
cmp edx, esi
jne 0x46b86c
cmp edx, esi
jne 0x46b8d6
cmp esi, dword [esp + 0x3c]
je 0x46b898
test esi, esi
je 0x46b88f
mov dword [esi], eax
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x60]
add esi, 4
mov dword [esp + 0x38], esi
jmp 0x46b8ad
lea ecx, [esp + 0x60]
push 1
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.00485120
mov eax, dword [esp + 0x60]
mov ecx, eax
call fcn.004838b0
mov edx, dword [esp + 0x60]
mov byte [edx + 0x31], 1
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
je 0x46b8d2
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
jl 0x46b846
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
inc ebx
cmp ebx, edx
jl 0x46b83c
jmp 0x46b8fa
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
cmp edi, esi
mov dword [esp + 0x18], edi
je 0x46ba67
mov ebx, dword [edi]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.0046e740
mov ecx, ebx
call fcn.004772d0
mov ebp, eax
mov esi, dword [ebp]
mov eax, dword [ebp + 4]
cmp esi, eax
je 0x46b9de
mov edx, dword [esi]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x44]
mov eax, dword [edx + 0x1ec]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x70], eax
call fcn.005d3390
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], eax
call fcn.005d8060
mov edx, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [edx]
je 0x46b97e
mov ecx, dword [esp + 0x68]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jge 0x46b9bb
lea edx, [esp + 0x1c]
lea eax, [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0
call fcn.004b87c0
push eax
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push eax
call fcn.00414580
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x68]
lea edi, [eax + 0x14]
push ecx
mov ecx, ebx
call fcn.004784a0
fstp dword [edi]
mov eax, dword [ebp + 4]
add esi, 4
cmp esi, eax
jne 0x46b936
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x50]
push edx
mov dword [esp + 0x50], ebx
call fcn.0046fc60
mov ecx, dword [0x6249dc]
mov eax, dword [0x6249e0]
cmp ecx, eax
je 0x46ba1e
test ecx, ecx
je 0x46ba13
lea eax, [esp + 0x4c]
push eax
call fcn.0046f540
mov ecx, dword [0x6249dc]
add ecx, 0x10
mov dword [0x6249dc], ecx
jmp 0x46ba30
lea edx, [esp + 0x4c]
push 1
push edx
push ecx
mov ecx, 0x6249d8
call fcn.0046eb20
lea ecx, [esp + 0x50]
call fcn.0046e7e0
lea ecx, [esp + 0x50]
call fcn.00449290
lea ecx, [esp + 0x40]
call fcn.0046e7e0
lea ecx, [esp + 0x40]
call fcn.00449290
mov eax, dword [esp + 0x38]
add edi, 4
cmp edi, eax
mov dword [esp + 0x18], edi
jne 0x46b90a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 2
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00414610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc