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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x56]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x74]
dec edx
cmp eax, edx
jg 0x4648f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 7], 2
jne 0x4648e5
fld qword [0x48fea0]
fcomp dword [0x464e44]
fnstsw ax
sahf
jb 0x4648e5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x49], 0
je 0x464e3f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 1
je 0x464e3f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
cmp eax, 0x32
ja 0x464965
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x99]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x9d]
jge 0x464965
fld qword [0x48fea0]
fcomp dword [0x464e44]
fnstsw ax
sahf
jae 0x464e3f
mov eax, dword [0x48c3c4]
cmp dword [eax], 1
je 0x464e3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x10], 0
jne 0x464e3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 7], 2
jne 0x464e3f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x99], 0
jle 0x464e3f
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x74]
dec eax
test ax, ax
jb 0x464df3
inc eax
mov word [ebp - 0x34], ax
mov word [ebp - 0xe], 0
mov byte [ebp - 0x31], 0
mov word [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x62]
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x72]
dec eax
test ax, ax
jb 0x464dab
inc eax
mov word [ebp - 0x36], ax
mov word [ebp - 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov ax, word [eax + edx]
mov word [ebp - 0x1e], ax
cmp word [ebp - 0x1e], 0
jl 0x464afe
mov ax, word [ebp - 0x20]
cmp ax, word [ebp - 0x1e]
jle 0x464a0b
mov ax, word [ebp - 0x1e]
mov word [ebp - 0x20], ax
cmp byte [ebp - 0x31], 0
jne 0x464aac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
mov eax, dword [ebp - 4]
add eax, 0x58
mov ecx, 2
call fcn.004028dc
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
lea eax, [ebp - 0x10]
mov ecx, 2
call fcn.004028dc
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
add dword [ebp - 0x2c], 2
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov eax, dword [eax + edx + 3]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov eax, dword [eax + edx + 7]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x31], 1
inc word [ebp - 0x18]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov word [eax + edx], 0xffff
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov byte [eax + edx + 2], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x66]
mov edx, dword [ebp - 4]
sub dword [edx + 0x99], eax
cmp word [ebp - 0x1e], 0xffff
je 0x464b19
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x72]
dec edx
cmp eax, edx
jne 0x464d9d
cmp byte [ebp - 0x31], 0
je 0x464d88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x1c]
lea edx, [eax + edx]
lea eax, [ebp - 0x18]
mov ecx, 2
call fcn.004028dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x1c]
lea edx, [eax + edx + 2]
lea eax, [ebp - 0x20]
mov ecx, 2
call fcn.004028dc
movzx eax, word [ebp - 0x18]
mov edx, dword [ebp - 4]
imul dword [edx + 0x66]
add dword [ebp - 0x28], eax
mov ax, word [ebp - 0x18]
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x72]
jne 0x464c6d
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x62]
movsx edx, word [ebp - 0x20]
sub eax, edx
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x79]
imul edx
mov dword [ebp - 0x24], eax
movsx eax, word [ebp - 0x20]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x79]
imul edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.0042df50
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd4], 0
je 0x464c49
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x464bd8
add eax, 3
sar eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x24]
and eax, 0x80000003
jns 0x464bee
dec eax
or eax, 0xfffffffc
inc eax
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
movzx ecx, word [ebp - 0x14]
call fcn.0042e27c
cmp word [ebp - 0x16], 0
je 0x464c49
push ebp
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
add edx, eax
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x95]
lea eax, [ecx + eax]
movzx ecx, word [ebp - 0x16]
call fcn.0046484c
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.0042df50
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x2c], eax
jmp 0x464d88
movzx eax, word [ebp - 0x18]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x64]
imul edx
mov dword [ebp - 0x24], eax
movsx eax, word [ebp - 0x20]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x79]
imul edx
mov dword [ebp - 0x30], eax
mov ax, word [ebp - 0x20]
inc eax
mov edx, dword [ebp - 4]
mov dx, word [edx + 0x62]
sub dx, ax
jb 0x464d88
inc edx
mov word [ebp - 0x38], dx
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.0042df50
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd4], 0
je 0x464d51
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x464ce0
add eax, 3
sar eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x24]
and eax, 0x80000003
jns 0x464cf6
dec eax
or eax, 0xfffffffc
inc eax
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
movzx ecx, word [ebp - 0x14]
call fcn.0042e27c
cmp word [ebp - 0x16], 0
je 0x464d51
push ebp
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
add edx, eax
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x95]
invalid
invalid