Function at 0x40d420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a4be
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x210
mov eax, dword [0x44d014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x200]
mov edx, esi
mov dword [ebp - 0x1d4], esi
call fcn.0040ce70
push str.AcquireForRendering
lea ecx, [ebp - 0x200]
mov dword [ebp - 4], 0
call fcn.0040ec70
test eax, eax
jne 0x40d54c
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.thisPtr
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1e8]
xorps xmm0, xmm0
push dword [ebp - 0x28]
movlpd qword [ebp - 0x1e8], xmm0
push eax
call fcn.00422540
add esp, 0xc
mov dword [ebp - 0x1dc], 0
lea eax, [ebp - 0x1dc]
mov ecx, edi
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e8]
push eax
call fcn.0040cf80
mov esi, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x18]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [esi + 0x18]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
jmp 0x40e4b4
push str.ReleaseFromRendering
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40d5db
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.thisPtr
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1e8]
xorps xmm0, xmm0
push dword [ebp - 0x28]
movlpd qword [ebp - 0x1e8], xmm0
push eax
call fcn.00422540
add esp, 0xc
mov dword [ebp - 0x1d4], 0
lea eax, [ebp - 0x1d4]
mov ecx, edi
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e8]
push eax
call fcn.0040cf80
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp 0x40e4b4
push str.AcquireForPresentation
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40d66a
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.thisPtr
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1e8]
xorps xmm0, xmm0
push dword [ebp - 0x28]
movlpd qword [ebp - 0x1e8], xmm0
push eax
call fcn.00422540
add esp, 0xc
mov dword [ebp - 0x1d4], 0
lea eax, [ebp - 0x1d4]
mov ecx, edi
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e8]
push eax
call fcn.0040cf80
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
jmp 0x40e4b4
push str.ReleaseFromPresentation
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40d791
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.thisPtr
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1e8]
xorps xmm0, xmm0
push dword [ebp - 0x28]
movlpd qword [ebp - 0x1e8], xmm0
push eax
call fcn.00422540
add esp, 0xc
mov dword [ebp - 0x1d4], 0
lea eax, [ebp - 0x1d4]
mov ecx, edi
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e8]
push eax
call fcn.0040cf80
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x1d4]
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov edx, dword [edi + 0x78]
test edx, edx
je 0x40e4b4
mov esi, dword [esi + 0x18]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40d74c
lock inc dword [eax + 4]
mov edi, dword [edx + 0x34]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], ecx
test edi, edi
je 0x40e4b4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40e4b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40e4b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x40e4b4
push str.OasisPresentationSource
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40d968
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.EventType
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041d8b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x208]
mov edx, str.Destruction
dec ecx
mov dword [ebp - 0x1d4], 0xb
cmp dword [ebp - 0x204], 0x10
mov dword [ebp - 0x208], ecx
cmovae eax, dword [ebp - 0x218]
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x204], 0x10
mov eax, dword [ebp - 0x208]
cmovae ecx, dword [ebp - 0x218]
cmp eax, 0xb
cmova eax, dword [ebp - 0x1d4]
sub eax, 4
mov dword [ebp - 0x1dc], eax
jb 0x40d85d
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40d862
mov eax, dword [ebp - 0x1dc]
add ecx, 4
add edx, 4
sub eax, 4
mov dword [ebp - 0x1dc], eax
jae 0x40d840
cmp eax, 0xfffffffc
je 0x40d8a2
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40d89b
cmp dword [ebp - 0x1dc], 0xfffffffd
je 0x40d8a2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40d89b
cmp dword [ebp - 0x1dc], 0xfffffffe
je 0x40d8a2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40d89b
cmp dword [ebp - 0x1dc], 0xffffffff
je 0x40d8a2
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40d8a2
sbb eax, eax
or eax, 1
jmp 0x40d8a4
xor eax, eax
test eax, eax
jne 0x40d917
cmp dword [ebp - 0x208], 0xb
jb 0x40d917
ja 0x40d917
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.thisPtr
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1e8]
xorps xmm0, xmm0
push dword [ebp - 0x28]
movlpd qword [ebp - 0x1e8], xmm0
push eax
call fcn.00422540
mov eax, dword [ebp - 0x1e8]
add esp, 0xc
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x1e4], ecx
lea ecx, [edi + 0x60]
push eax
call fcn.0040eac0
mov eax, dword [ebp - 0x204]
cmp eax, 0x10
jb 0x40e4b4
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x218]
mov edx, eax
cmp ecx, 0x1000
jb 0x40d959
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x1d4], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x40e516
mov eax, dword [ebp - 0x1d4]
push ecx
push eax
call fcn.00421145
add esp, 8
jmp 0x40e4b4
push str.LsrThread_BeginLsrProcessing
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40dd95
or esi, 0xffffffff
cmp dword [edi + 0x78], eax
je 0x40da87
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x40d997
lock inc dword [eax + 4]
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x80], 0
jne 0x40d9cd
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40da87
jmp 0x40da66
cmp byte [eax + 0x88], 0
je 0x40d9ee
mov dword [eax + 0x80], 4
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40da87
jmp 0x40da66
lea esi, [edi + 0x24]
mov byte [eax + 0x88], 1
push esi
mov dword [ebp - 0x1e4], esi
call fcn.00420b85
add esp, 4
test eax, eax
jne 0x40e510
mov byte [ebp - 4], 3
mov edx, dword [edi + 0x58]
cmp edx, dword [edi + 0x5c]
je 0x40da3f
mov ecx, dword [ebp - 0x1dc]
mov dword [edx], eax
mov dword [edx + 4], eax
test ecx, ecx
je 0x40da2e
lock inc dword [ecx + 4]
mov eax, dword [ebp - 0x21c]
mov dword [edx], eax
mov dword [edx + 4], ecx
add dword [edi + 0x58], 8
jmp 0x40da4c
lea ecx, [ebp - 0x20]
push ecx
push edx
lea ecx, [edi + 0x54]
call fcn.0040f5d0
push esi
call fcn.00420b96
mov byte [ebp - 4], 0
add esp, 4
mov ecx, dword [ebp - 0x1dc]
test ecx, ecx
je 0x40da87
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x40da87
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x1dc]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x40da87
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa0
call fcn.00420ec2
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x1e4], esi
lea edx, [esi + 0x10]
mov ecx, dword [ebp - 0x1d4]
add esp, 4
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj2_struct_LateStageReprojectionEvent_.0
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x1d4]
mov dword [edx + 4], ecx
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov byte [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov dword [edx + 0x48], 0
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
mov dword [edx + 0x54], 0
mov dword [edx + 0x58], 0
mov dword [edx + 0x5c], 0
mov dword [edx + 0x60], 0
mov dword [edx + 0x64], 0
mov dword [edx + 0x68], 0
mov dword [edx + 0x6c], 0
mov dword [edx + 0x70], 0
mov dword [edx + 0x74], 0
mov dword [edx + 0x78], 0
mov eax, dword [eax + 0xc]
mov dword [edx + 0x7c], eax
mov dword [edx + 0x80], 0
mov dword [edx + 0x84], 0
mov byte [edx + 0x88], 0
mov ecx, dword [edi + 0x7c]
mov dword [edi + 0x78], edx
mov dword [ebp - 0x21c], ecx
mov dword [edi + 0x7c], esi
test ecx, ecx
je 0x40dbf7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x40dbf7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x21c]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x40dbf7
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0xb8], str.SourcePtr
push 6
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xa4], str.NewSourceLatched
push eax
push dword [ebp - 0x1d4]
mov ecx, edi
mov dword [ebp - 0x90], str.TimeUntilVblankMs
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0x7c], str.TimeUntilPhotonsMiddleMs
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x68], str.PredictionSampleTimeToPhotonsVisibleMs
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x54], str.MispredictionMs
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041d550
push dword [ebp - 0xb0]
lea eax, [ebp - 0x1e8]
xorps xmm0, xmm0
push dword [ebp - 0xb4]
movlpd qword [ebp - 0x1e8], xmm0
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
mov ecx, dword [ebp - 0x1e8]
mov edx, dword [ebp - 0x1e4]
mov byte [ebp - 0x1d5], 0
push dword [ebp - 0x9c]
mov dword [eax + 8], ecx
push dword [ebp - 0xa0]
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x1d5]
push eax
call fcn.00422540
mov ecx, dword [edi + 0x78]
add esp, 0xc
mov al, byte [ebp - 0x1d5]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x88]
mov byte [ecx + 0x38], al
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x8c]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x74]
movss dword [eax + 0x74], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x78]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x60]
movss dword [eax + 0x78], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x64]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x4c]
movss dword [eax + 0x68], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x50]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
movss dword [eax + 0x6c], xmm0
jmp 0x40e4b4
push str.LsrThread_LatchedInput
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40dfdb
cmp dword [edi + 0x78], eax
je 0x40e4b4
push ecx
push 2
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], str.TimeUntilTopPhotonsMs
xorps xmm0, xmm0
mov dword [ebp - 0x2c], str.TimeUntilBottomPhotonsMs
push eax
push esi
mov ecx, edi
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x38]
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0
push dword [ebp - 0x3c]
push eax
call fcn.00422540
add esp, 0xc
mov dword [ebp - 0x1d4], 0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00422540
movss xmm0, dword [ebp - 0x1d4]
add esp, 0xc
addss xmm0, dword [ebp - 0x1dc]
mov eax, dword [edi + 0x78]
mulss xmm0, dword [0x448c10]
movss dword [eax + 0x64], xmm0
cmp byte [edi + 0x20], 0
jne 0x40e4b4
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.PresentId
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x28]
push eax
call fcn.00422540
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], eax
lea eax, [edi + 0x70]
mov dword [ebp - 0x1dc], eax
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0040f520
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0xd], 0
jne 0x40e4b4
mov eax, dword [ebp - 0x1d4]
cmp eax, dword [esi + 0x10]
jb 0x40e4b4
cmp esi, dword [edi + 0x70]
je 0x40e4b4
mov eax, dword [edi + 0x78]
mov ecx, edi
mov dword [ebp - 0x1d4], 0
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x1d4]
push eax
call fcn.0040cf80
mov eax, dword [ebp - 0x1d4]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40df03
lock inc dword [eax + 4]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
or esi, 0xffffffff
mov edi, dword [edx + 0x2c]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], ecx
test edi, edi
je 0x40df38
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40df38
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x40df38
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40df46
lock inc dword [eax + 4]
mov eax, dword [edi + 0x14]
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x21c], eax
cmp byte [eax + 0x1c], 0
je 0x40df92
mov dword [eax + 0x20], 3
test edi, edi
je 0x40e4b4
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40e4b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40e4b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x40e4b4
mov ecx, dword [ebp - 0x1dc]
push eax
call fcn.0040e930
mov eax, dword [ebp - 0x21c]
mov byte [eax + 0x1c], 1
test edi, edi
je 0x40e4b4
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40e4b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40e4b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x40e4b4
push str.LsrThread_UnaccountedForVsyncsBetweenStatGathering
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40e048
cmp dword [edi + 0x78], eax
je 0x40e4b4
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.unaccountedForVsyncsBetweenStatGathering
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x28]
push eax
call fcn.00422540
mov ecx, dword [edi + 0x78]
add esp, 0xc
mov eax, dword [ebp - 0x1d4]
add dword [ecx + 0x84], eax
jmp 0x40e4b4
push str.MissedPresentation
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40e0bc
cmp dword [edi + 0x78], eax
je 0x40e4b4
push ecx
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.reason
push eax
xorps xmm0, xmm0
mov ecx, edi
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.0041d550
push dword [ebp - 0x24]
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x28]
push eax
call fcn.00422540
add esp, 0xc
cmp dword [ebp - 0x1d4], 0
jne 0x40e4b4
mov eax, dword [edi + 0x78]
inc dword [eax + 0x84]
jmp 0x40e4b4
push str.OnTimePresentationTiming
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
je 0x40e0e8
push str.LatePresentationTiming
lea ecx, [ebp - 0x200]
call fcn.0040ec70
test eax, eax
jne 0x40e4b4
cmp dword [edi + 0x78], 0
je 0x40e4b4
xorps xmm0, xmm0
mov dword [ebp - 0x1d0], str.cpuRenderFrameStartToHeadPoseCallbackStartInMs
push ecx
push 0xe
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x1bc], str.headPoseCallbackDurationInMs
push eax
push esi
mov ecx, edi
mov dword [ebp - 0x1a8], str.headPoseCallbackEndToInputLatchInMs
movups xmmword [ebp - 0x1cc], xmm0
mov dword [ebp - 0x194], str.inputLatchToGpuSubmissionInMs
movups xmmword [ebp - 0x1b8], xmm0
mov dword [ebp - 0x180], str.gpuSubmissionToGpuStartInMs
movups xmmword [ebp - 0x1a4], xmm0
mov dword [ebp - 0x16c], str.gpuStartToGpuStopInMs
movups xmmword [ebp - 0x190], xmm0
mov dword [ebp - 0x158], str.gpuStopToCopyStartInMs
movups xmmword [ebp - 0x17c], xmm0
mov dword [ebp - 0x144], str.copyStartToCopyStopInMs
movups xmmword [ebp - 0x168], xmm0
mov dword [ebp - 0x130], str.copyStopToVsyncInMs
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x11c], str.frameSubmittedOnSchedule
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x108], str.startLatchToCpuRenderFrameStartInMs
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0xf4], str.threadWakeupToCpuRenderFrameStartInMs
movups xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0xe0], str.totalWakeupErrorMs
movups xmmword [ebp - 0x104], xmm0
mov dword [ebp - 0xcc], str.wakeupErrorInMs
movups xmmword [ebp - 0xf0], xmm0
movups xmmword [ebp - 0xdc], xmm0
movups xmmword [ebp - 0xc8], xmm0
call fcn.0041d550
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x1cc]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x1b4]
movss dword [eax + 0x40], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x1b8]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x1a0]
movss dword [eax + 0x44], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x1a4]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x18c]
movss dword [eax + 0x48], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x190]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x178]
movss dword [eax + 0x4c], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x17c]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x164]
movss dword [eax + 0x50], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x168]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x150]
movss dword [eax + 0x54], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x154]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x13c]
movss dword [eax + 0x58], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x140]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
push dword [ebp - 0x128]
movss dword [eax + 0x5c], xmm0
lea eax, [ebp - 0x1d4]
push dword [ebp - 0x12c]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov byte [ebp - 0x1d5], 0
push dword [ebp - 0x114]
movss dword [eax + 0x60], xmm0
lea eax, [ebp - 0x1d5]
push dword [ebp - 0x118]
push eax
call fcn.00422540
mov eax, dword [ebp - 0x104]
add esp, 0xc
mov dword [ebp - 0x1d4], 0
test eax, eax
jne 0x40e416
push dword [ebp - 0xec]
push dword [ebp - 0xf0]
jmp 0x40e41d
push dword [ebp - 0x100]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
movss xmm0, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 0
movss dword [eax + 0x3c], xmm0
mov eax, dword [ebp - 0xdc]
test eax, eax
jne 0x40e45e
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
jmp 0x40e465
push dword [ebp - 0xd8]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.00422540
mov eax, dword [edi + 0x78]
add esp, 0xc
cmp byte [ebp - 0x1d5], 0
movss xmm0, dword [ebp - 0x1d4]
movss dword [eax + 0x70], xmm0
mov ecx, dword [edi + 0x78]
je 0x40e49c
mov dword [ecx + 0x80], 1
jmp 0x40e4b4
mov eax, 1
cmp eax, dword [ecx + 0x84]
sbb eax, eax
neg eax
add eax, 2
mov dword [ecx + 0x80], eax
mov ecx, dword [ebp - 0x1ec]
cmp ecx, 8
jb 0x40e4f0
mov edx, dword [ebp - 0x200]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e4e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e516
push ecx
push edx
call fcn.00421145
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420eb4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push eax
call fcn.004206e2
call fcn.00429439
int3