Function at 0x10003e30
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x1006d004]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
push 0x2c
lea eax, [esp + 0x44]
mov dword [esp + 0x38], 0
push 0
push eax
mov edi, edx
mov ebx, ecx
call fcn.1000f990
add esp, 0xc
lea eax, [esp + 0x38]
xorps xmm0, xmm0
movq qword [esp + 0x38], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
call fcn.10056210
cmp dword [0x1006f090], 0
mulsd xmm0, qword [0x1006a3c0]
mov esi, dword [ebx]
divsd xmm0, qword [0x1006f440]
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x20], xmm0
je 0x10003eba
mov esi, dword [esi + 0x28]
jmp 0x10003ebd
mov esi, dword [esi + 0x30]
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
push ebx
call dword [0x100572e4]
call esi
test eax, eax
jns 0x10003eec
push eax
push str.DirectX10::GrabBackBuffer_D3D10__:_GetDesc_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
jmp 0x100044ab
mov esi, dword [ebx]
lea eax, [esp + 0x34]
push eax
push 0x10066654
push 0
mov esi, dword [esi + 0x24]
mov ecx, esi
push ebx
call dword [0x100572e4]
call esi
test eax, eax
jns 0x10003f24
push eax
push str.DirectX10::GrabBackBuffer_D3D10__:_GetBuffer_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
jmp 0x100044ab
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x74]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x100572e4]
call esi
mov edx, dword [esp + 0x74]
push 2
push dword [esp + 0x7c]
call fcn.1000cfc0
cmp dword [0x1006f09c], 0
mov ecx, dword [esp + 0x88]
je 0x10003f6c
test eax, eax
jne 0x10003f6c
cmp ecx, dword [0x1006f0b0]
je 0x10004163
push dword [esp + 0xc4]
push dword [esp + 0xcc]
push ecx
push dword [esp + 0xbc]
push dword [esp + 0xb4]
push dword [esp + 0xb4]
push str.DirectX10::GrabBackBuffer_D3D10__:__ux_u__format_d__SampleCount_u__BufferCount_u__BufferUsage0x_X
push 0xc8
call fcn.10009530
mov eax, dword [esp + 0xa8]
add esp, 0x20
mov dword [0x1006f0b0], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], eax
call fcn.10003980
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100572e4]
call esi
dec eax
mov dword [esp + 0x54], 1
cmp dword [0x1006f0b0], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 1
jbe 0x10004056
mov eax, 0x1006f0a8
mov dword [esp + 0x5c], 0
xor ebx, ebx
mov dword [esp + 0xc], eax
nop
mov esi, dword [edi]
push eax
push 0
lea eax, [esp + 0x48]
mov esi, dword [esi + 0x124]
mov ecx, esi
push eax
push edi
call dword [0x100572e4]
call esi
test eax, eax
js 0x10004366
mov eax, dword [esp + 0xc]
inc ebx
add eax, 4
mov dword [esp + 0xc], eax
cmp eax, 0x1006f0b0
jl 0x10004020
mov eax, 0x1006f09c
mov dword [esp + 0x50], 0x1c
mov dword [esp + 0x5c], 3
xor ebx, ebx
mov dword [esp + 0x64], 0x20000
mov dword [esp + 0xc], eax
nop dword [eax]
mov esi, dword [edi]
push eax
push 0
lea eax, [esp + 0x48]
mov esi, dword [esi + 0x124]
mov ecx, esi
push eax
push edi
call dword [0x100572e4]
call esi
test eax, eax
js 0x10004496
mov eax, dword [esp + 0xc]
inc ebx
add eax, 4
mov dword [esp + 0xc], eax
cmp eax, 0x1006f0a4
jl 0x10004080
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100572e4]
call esi
sub eax, dword [esp + 0x10]
push eax
push str.DirectX10::CreateTextures10__:__u_own_references
push 0x64
mov dword [0x1006f4e0], eax
call fcn.10009530
mov edx, dword [edi + 4]
add esp, 0xc
sub edx, dword [edi]
cmp edx, 0x4b0
jbe 0x10004104
push edx
push str.DirectX10::CreateTextures10__:_unexpected_vtable_size__u
push 0xc8
call fcn.10009530
add esp, 0xc
mov edx, 0x4b0
push fcn.10003980
mov ecx, edi
call fcn.10005b20
add esp, 4
call fcn.100059a0
test eax, eax
je 0x100044ab
cmp dword [0x1006ec50], 0
jle 0x10004163
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 5
je 0x10004154
mov eax, dword [0x1006ec58]
push 5
mov eax, dword [eax + 0x2b276]
push eax
push str.SetDirectXHookStatus__u_____u
push 0x64
call fcn.10009530
add esp, 0x10
mov eax, dword [0x1006ec58]
mov dword [eax + 0x2b276], 5
mov ecx, dword [0x1006f0a4]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], esi
lea eax, [ecx + 2]
and eax, 0x80000001
jns 0x10004180
dec eax
or eax, 0xfffffffe
inc eax
mov eax, dword [eax*4 + 0x1006f09c]
mov dword [esp + 0xc], eax
lea eax, [ecx + 1]
and eax, 0x80000001
jns 0x1000419a
dec eax
or eax, 0xfffffffe
inc eax
mov ebx, dword [eax*4 + 0x1006f09c]
xorps xmm0, xmm0
lea eax, [esp + 0x38]
movq qword [esp + 0x38], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
call fcn.10056210
cmp dword [esp + 0x88], 1
mulsd xmm0, qword [0x1006a3c0]
divsd xmm0, qword [0x1006f440]
movsd qword [esp + 0x18], xmm0
jbe 0x1000423a
push dword [esp + 0x84]
mov eax, dword [0x1006f0a4]
mov esi, dword [edi]
add eax, 2
push 0
push dword [esp + 0x18]
push 0
and eax, 0x80000001
jns 0x10004207
dec eax
or eax, 0xfffffffe
inc eax
push dword [eax*4 + 0x1006f0a8]
mov esi, dword [esi + 0x98]
mov ecx, esi
push edi
call dword [0x100572e4]
call esi
mov eax, dword [0x1006f0a4]
add eax, 2
and eax, 0x80000001
jns 0x10004233
dec eax
or eax, 0xfffffffe
inc eax
mov esi, dword [eax*4 + 0x1006f0a8]
mov eax, dword [edi]
push esi
push dword [esp + 0x10]
mov esi, dword [eax + 0x84]
mov ecx, esi
push edi
call dword [0x100572e4]
call esi
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
call fcn.10056210
mulsd xmm0, qword [0x1006a3c0]
lea eax, [esp + 0x38]
push eax
xorps xmm1, xmm1
movq qword [esp + 0x3c], xmm1
divsd xmm0, qword [0x1006f440]
subsd xmm0, qword [esp + 0x1c]
addsd xmm0, qword [0x1006a3b8]
movsd qword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
call fcn.10056210
mulsd xmm0, qword [0x1006a3c0]
lea eax, [esp + 0x6c]
mov esi, dword [ebx]
push eax
push 0
push 1
divsd xmm0, qword [0x1006f440]
mov esi, dword [esi + 0x28]
mov ecx, esi
push 0
push ebx
movsd qword [esp + 0x2c], xmm0
call dword [0x100572e4]
call esi
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x38]
movq qword [esp + 0x38], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
call fcn.10056210
mulsd xmm0, qword [0x1006a3c0]
divsd xmm0, qword [0x1006f440]
subsd xmm0, qword [esp + 0x18]
addsd xmm0, qword [0x1006a3b8]
movsd qword [esp + 0x18], xmm0
test esi, esi
js 0x10004370
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x6c]
call fcn.10003d20
mov eax, dword [ebx]
addsd xmm0, qword [0x1006a3b8]
push 0
push ebx
mov esi, dword [eax + 0x2c]
mov ecx, esi
movsd qword [esp + 0x28], xmm0
call dword [0x100572e4]
call esi
jmp 0x10004383
mov ecx, 0x10065088
jmp 0x1000449b
push esi
push str.DirectX10::GrabBackBuffer_D3D10__:_Map_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
mov eax, dword [0x1006f0a4]
add eax, 3
and eax, 0x80000001
jns 0x10004397
dec eax
or eax, 0xfffffffe
inc eax
cmp dword [0x1006ec50], 0
mov dword [0x1006f0a4], eax
jle 0x100044ee
mov eax, dword [0x1006ec58]
test eax, eax
je 0x100044ee
cmp dword [eax + 0x1000e], 0x64
jg 0x100044ee
call fcn.10005830
subsd xmm0, qword [esp + 0x28]
add dword [0x1006f450], 1
mov edx, str.DirectX10::GrabBackBuffer_D3D10__:_total_time_1.0f___1.1ffps
mov ecx, 0x1006f448
adc dword [0x1006f454], 0
addsd xmm0, qword [0x1006f458]
movsd qword [0x1006f458], xmm0
call fcn.100058a0
movsd xmm0, qword [esp + 0x10]
mov edx, str.DirectX10::GrabBackBuffer_D3D10__:_copy_surface_time_1.0f
addsd xmm0, qword [0x1006f470]
add dword [0x1006f468], 1
mov ecx, 0x1006f460
adc dword [0x1006f46c], 0
movsd qword [0x1006f470], xmm0
call fcn.100058a0
movsd xmm0, qword [esp + 0x18]
mov edx, str.DirectX10::GrabBackBuffer_D3D10__:_lock_time_1.0f
addsd xmm0, qword [0x1006f488]
add dword [0x1006f480], 1
mov ecx, 0x1006f478
adc dword [0x1006f484], 0
movsd qword [0x1006f488], xmm0
call fcn.100058a0
movsd xmm0, qword [esp + 0x20]
mov edx, str.DirectX10::GrabBackBuffer_D3D10__:_memcpy_time_1.0f
addsd xmm0, qword [0x1006f4a0]
add dword [0x1006f498], 1
mov ecx, 0x1006f490
adc dword [0x1006f49c], 0
movsd qword [0x1006f4a0], xmm0
call fcn.100058a0
jmp 0x100044ee
mov ecx, str.DirectX10::CreateTextures10__:_CreateTexture2D__i_failed__hr_X
push eax
push ebx
push ecx
push 0xc8
call fcn.10009530
add esp, 0x10
cmp dword [0x1006ec50], 0
jle 0x100044ee
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 3
je 0x100044df
mov eax, dword [0x1006ec58]
push 3
mov eax, dword [eax + 0x2b276]
push eax
push str.SetDirectXHookStatus__u_____u
push 0x64
call fcn.10009530
add esp, 0x10
mov eax, dword [0x1006ec58]
mov dword [eax + 0x2b276], 3
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10004506
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100572e4]
call esi
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000dfef
mov esp, ebp
pop ebp
ret