Function at 0x10031520
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push 0xffffffffffffffff
push 0x101bff0c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], 0xd
mov dword [esp + 0x24], edi
lea eax, [esp + 0x64]
mov ecx, 0x20
mov dword [eax], 0xd
mov dword [eax + 8], edi
add eax, 0x10
sub ecx, 1
jns 0x10031564
mov ebx, dword [esp + 0x288]
mov ecx, dword [ebx + 0x7c]
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
mov dword [esp + 0x44], edi
mov dword [ebx + 0x1c], edi
mov dword [esp + 0x30], ebp
call fcn.10079df0
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xc
je 0x1003198c
cmp ecx, 0xa
jne 0x100318a0
cmp dword [ebx + 0x10], edi
je 0x10031617
call fcn.10107014
add eax, 0x20
push eax
lea ecx, [esp + 0x20]
call fcn.10076210
cmp ebp, edi
jle 0x100315f7
lea esi, [esp + 0x64]
mov edi, ebp
push 0x102314cc
call fcn.10107888
add esp, 4
call fcn.10107014
add eax, 0x20
push eax
mov ecx, esi
call fcn.10076210
add esi, 0x10
sub edi, 1
jne 0x100315d2
push 0x102300dc
call fcn.10107888
add esp, 4
call fcn.10107014
add eax, 0x20
push eax
call fcn.10107e5a
add esp, 4
xor edi, edi
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edx, [esp + 0x64]
push edx
push ebx
mov eax, ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 1
call fcn.10031af0
cmp dword [ebx + 0x14], edi
je 0x1003181d
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x150]
call edx
mov edi, eax
test edi, edi
je 0x1003181d
push 0x20
call fcn.100f5c37
mov ebp, eax
add esp, 4
mov dword [esp + 0x30], ebp
xor eax, eax
mov dword [esp + 0x280], eax
cmp ebp, eax
je 0x100316f8
mov eax, dword [esp + 0x1c]
cmp eax, 0xa
je 0x1003169c
push 0xa
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov ebx, dword [esp + 0x24]
xor esi, esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], esi
mov dword [esp + 0x14], 0xffffffff
cmp ebx, esi
je 0x100316cf
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100316c0
sub eax, edx
mov dword [esp + 0x14], eax
mov esi, eax
push ebp
call fcn.100558d0
mov eax, dword [ebp + 0x1c]
test ebx, ebx
je 0x100316eb
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push eax
call fcn.1010c900
add esp, 0xc
mov ebx, dword [esp + 0x288]
mov dword [esp + 0x14], ebp
jmp 0x100316fc
mov dword [esp + 0x14], eax
or esi, 0xffffffff
mov dword [esp + 0x280], esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, edi
call fcn.10055680
test eax, eax
je 0x10031726
mov ebp, dword [eax + 4]
test ebp, ebp
jne 0x100317a4
push 0x20
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x280], 1
test eax, eax
je 0x10031758
fldz
mov dword [eax], 0
fst qword [eax + 8]
mov ebp, eax
fst qword [eax + 0x10]
fstp qword [eax + 0x18]
jmp 0x1003175a
xor ebp, ebp
mov dword [esp + 0x280], esi
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 4]
jl 0x10031777
mov ebx, edi
call fcn.10055570
mov ebx, dword [esp + 0x288]
push 0xc
call fcn.100f5c37
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push edi
mov dword [esi], edx
mov dword [esi + 4], ebp
call fcn.10055770
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + eax*4]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [edx + eax*4], esi
inc dword [edi + 8]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp dword [esp + 0x4c], 0
je 0x100317c1
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
sbb eax, dword [esp + 0x40]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
fild qword [esp + 0x34]
mov ecx, dword [ebp]
fild qword [esp + 0x5c]
fdivp st(1)
fmul qword [0x1026bda8]
test ecx, ecx
jne 0x100317f5
fst qword [ebp + 0x10]
jmp 0x1003180c
fcom qword [ebp + 0x10]
fnstsw ax
test ah, 5
jp 0x10031802
fst qword [ebp + 0x10]
fcom qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x1003180f
fst qword [ebp + 0x18]
fadd qword [ebp + 8]
inc ecx
mov dword [ebp], ecx
fstp qword [ebp + 8]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.10076130
test ebp, ebp
jle 0x1003183f
lea esi, [esp + 0x64]
mov edi, ebp
mov ecx, esi
call fcn.10076130
add esi, 0x10
sub edi, 1
jne 0x10031830
inc dword [ebx + 0x1c]
xor edi, edi
cmp dword [ebx + 0x1c], 0x4e20
mov dword [esp + 0x18], edi
jl 0x1003185e
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebx + 0x1c], edi
mov eax, dword [ebx + 0x84]
cmp eax, edi
je 0x10031969
mov ecx, dword [ebx + 0x1c]
sub ecx, dword [esp + 0x2c]
cmp ecx, 0xa
jle 0x10031969
mov edx, dword [ebx + 0x88]
push edx
call eax
mov ebp, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x1003198c
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x1003196d
cmp ebp, 0x21
jge 0x100318cf
mov edx, ebp
shl edx, 4
lea eax, [esp + edx + 0x64]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
inc ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x18], ebp
jmp 0x1003196d
mov eax, dword [ebx + 0x7c]
cmp eax, edi
je 0x1003190a
mov esi, dword [eax + 4]
cmp dword [esi + 0x10], 0xd
je 0x1003190a
mov eax, dword [esi + 0x10]
cmp eax, 8
je 0x100318fe
push 8
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
jmp 0x1003190d
or eax, 0xffffffff
push str.Too_many_args_in_content_stream
mov edx, eax
call fcn.1001d950
add esp, 4
cmp dword [ebx + 0x10], edi
je 0x1003195e
push str.throwing_away_arg:
call fcn.10107888
add esp, 4
call fcn.10107014
add eax, 0x20
push eax
lea ecx, [esp + 0x20]
call fcn.10076210
push 0x102300dc
call fcn.10107888
add esp, 4
call fcn.10107014
add eax, 0x20
push eax
call fcn.10107e5a
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.10076130
jmp 0x1003196d
mov ebp, dword [esp + 0x18]
push edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.10079df0
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xc
jne 0x100315a8
lea ecx, [esp + 0x1c]
call fcn.10076130
cmp ebp, edi
jle 0x10031a6f
mov eax, dword [ebx + 0x7c]
cmp eax, edi
je 0x100319d8
mov esi, dword [eax + 4]
cmp dword [esi + 0x10], 0xd
je 0x100319d8
mov eax, dword [esi + 0x10]
cmp eax, 8
je 0x100319cc
push 8
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
jmp 0x100319db
or eax, 0xffffffff
push str.Leftover_args_in_content_stream
mov edx, eax
call fcn.1001d950
add esp, 4
cmp dword [ebx + 0x10], edi
je 0x10031a55
push ebp
push str._d_leftovers:
call fcn.10107888
add esp, 8
cmp ebp, edi
jle 0x10031a35
lea esi, [esp + 0x64]
mov edi, ebp
jmp 0x10031a10
push 0x102314cc
call fcn.10107888
add esp, 4
call fcn.10107014
add eax, 0x20
push eax
mov ecx, esi
call fcn.10076210
add esi, 0x10
sub edi, 1
jne 0x10031a10
push 0x102300dc
call fcn.10107888
add esp, 4
call fcn.10107014
add eax, 0x20
push eax
call fcn.10107e5a
add esp, 4
xor edi, edi
cmp ebp, edi
jle 0x10031a6f
lea esi, [esp + 0x64]
mov edi, ebp
nop
mov ecx, esi
call fcn.10076130
add esi, 0x10
sub edi, 1
jne 0x10031a60
cmp dword [esp + 0x28c], 0
je 0x10031a89
cmp dword [ebx + 0x1c], 0
jle 0x10031a89
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret 8