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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x88], 0
push 0x60
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.005cbc50
add esp, 0xc
mov dword [ebp - 0x88], 0x64
mov dword [ebp - 0x1c], 0x12
mov dword [ebp - 0x120], 0x76
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x11c]
lea ecx, [eax + eax + 2]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x94]
lea ecx, [eax + edx + 2]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x88]
push edx
push 0x1000400
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x6bbc50]
mov edx, dword [ecx]
mov eax, dword [0x6bbc50]
push eax
mov ecx, dword [edx + 0x14]
call ecx
push 0x7c
push 0
lea edx, [ebp - 0x118]
push edx
call fcn.005cbc50
add esp, 0xc
mov dword [ebp - 0x118], 0x7c
push 0
push 1
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [0x6bbc50]
mov edx, dword [ecx]
mov eax, dword [0x6bbc50]
push eax
mov ecx, dword [edx + 0x64]
call ecx
test eax, eax
je 0x46b50b
jmp 0x46b84e
mov edx, dword [ebp - 0x108]
sar edx, 2
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
imul eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xf4]
lea edx, [ecx + eax*4 + 4]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], 0
jmp 0x46b561
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x94]
jge 0x46b641
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x124], 0
jmp 0x46b597
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
cmp eax, dword [ebp - 0x11c]
jge 0x46b61a
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46b5c1
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x18]
mov dword [ecx - 4], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x90]
shl ecx, 2
mov edx, dword [ebp - 0x8c]
sub edx, ecx
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x90]
lea edx, [ecx*4 - 8]
mov eax, dword [ebp - 0x8c]
sub eax, edx
mov dword [ebp - 0x8c], eax
jmp 0x46b588
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x98]
lea eax, [edx + ecx*4 + 8]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*4]
mov dword [ebp + 0x10], eax
jmp 0x46b558
movsx ecx, word [0x6bc0ac]
test ecx, ecx
je 0x46b655
mov dword [ebp - 0x18], 0xffffff
jmp 0x46b65c
mov dword [ebp - 0x18], 1
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x46b680
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x128], edx
jmp 0x46b68c
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x128], eax
mov edx, dword [0x6bc0a8]
add edx, 0x3e8
cmp edx, dword [ebp - 0x128]
ja 0x46b6fd
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x46b6c4
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x12c], edx
jmp 0x46b6d0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [0x6bc0a8], edx
mov ax, word [0x6bc0ac]
add ax, 1
mov word [0x6bc0ac], ax
movsx ecx, word [0x6bc0ac]
and ecx, 1
mov word [0x6bc0ac], cx
mov eax, dword [ebp - 0x90]
add eax, 2
imul eax, dword [ebp - 0x94]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x14]
lea ecx, [edx + eax*4]
mov eax, dword [ebp - 0x90]
sub eax, 2
imul eax, dword [ebp - 0x11c]
cdq
sub eax, edx
sar eax, 1
shl eax, 2
sub ecx, eax
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x18]
mov dword [edx - 4], eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x90]
shl edx, 2
mov eax, dword [ebp - 0x8c]
sub eax, edx
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
push 0
mov edx, dword [0x6bbc50]
mov eax, dword [edx]
mov ecx, dword [0x6bbc50]
push ecx
mov edx, dword [eax + 0x80]
call edx
test eax, eax
je 0x46b793
jmp 0x46b84e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax - 1]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x120]
sub eax, dword [ebp - 0x11c]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax - 1]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 8], 0
jge 0x46b7cc
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], 0
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
cmp ecx, 0x280
jle 0x46b7eb
mov edx, 0x280
sub edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0
jge 0x46b801
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], 0
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0xc]
cmp ecx, 0x1e0
jle 0x46b820
mov edx, 0x1e0
sub edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
push 0x11
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x6bbc50]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x6ba8fc]
mov edx, dword [ecx + 0xc]
mov eax, dword [0x6ba8fc]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x1c]
call eax
mov esp, ebp
pop ebp
ret