Function at 0x10004520
Capabilities:
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 + 0x40]
mov dword [esp + 0x2c], 0
push 0
push eax
mov ebx, edx
mov dword [esp + 0x38], 0
mov edi, ecx
call fcn.1000f990
add esp, 0xc
lea eax, [esp + 0x30]
xorps xmm0, xmm0
movq qword [esp + 0x30], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.10056210
mulsd xmm0, qword [0x1006a3c0]
lea ecx, [esp + 0x28]
mov eax, dword [ebx]
push ecx
push ebx
divsd xmm0, qword [0x1006f440]
mov esi, dword [eax + 0xa0]
mov ecx, esi
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x20], xmm0
call dword [0x100572e4]
call esi
cmp dword [esp + 0x28], 0
jne 0x100045da
push 1
push str.DirectX10::GrabBackBuffer_D3D11__:_GetImmediateContext_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
jmp 0x10004b19
mov eax, dword [edi]
lea ecx, [esp + 0xa0]
push ecx
push edi
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x100572e4]
call esi
test eax, eax
jns 0x1000460e
push eax
push str.DirectX10::GrabBackBuffer_D3D11__:_GetDesc_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
jmp 0x10004b19
mov esi, dword [edi]
lea eax, [esp + 0x2c]
push eax
push 0x10066634
push 0
mov esi, dword [esi + 0x24]
mov ecx, esi
push edi
call dword [0x100572e4]
call esi
test eax, eax
jns 0x10004646
push eax
push str.DirectX10::GrabBackBuffer_D3D11__:_GetBuffer_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
jmp 0x10004b19
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x68]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x100572e4]
call esi
mov edx, dword [esp + 0x68]
push 2
push dword [esp + 0x70]
call fcn.1000cfc0
cmp dword [0x1006f09c], 0
mov ecx, dword [esp + 0x7c]
je 0x1000468b
test eax, eax
jne 0x1000468b
cmp ecx, dword [0x1006f0b0]
je 0x10004876
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_D3D11__:__ux_u__format_d__SampleCount_u__BufferCount_u__BufferUsage0x_X
push 0xc8
call fcn.10009530
mov eax, dword [esp + 0x9c]
add esp, 0x20
mov dword [0x1006f0b0], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.10003980
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100572e4]
call esi
dec eax
mov dword [esp + 0x50], 1
cmp dword [0x1006f0b0], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 1
jbe 0x10004773
mov eax, 0x1006f0a8
mov dword [esp + 0x58], 0
xor edi, edi
mov dword [esp + 0xc], eax
nop dword [eax + eax]
mov esi, dword [ebx]
push eax
push 0
lea eax, [esp + 0x44]
mov esi, dword [esi + 0x14]
mov ecx, esi
push eax
push ebx
call dword [0x100572e4]
call esi
test eax, eax
js 0x100049d4
mov eax, dword [esp + 0xc]
inc edi
add eax, 4
mov dword [esp + 0xc], eax
cmp eax, 0x1006f0b0
jl 0x10004740
mov eax, 0x1006f09c
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x58], 3
xor edi, edi
mov dword [esp + 0x60], 0x20000
mov dword [esp + 0xc], eax
mov esi, dword [ebx]
push eax
push 0
lea eax, [esp + 0x44]
mov esi, dword [esi + 0x14]
mov ecx, esi
push eax
push ebx
call dword [0x100572e4]
call esi
test eax, eax
js 0x10004b04
mov eax, dword [esp + 0xc]
inc edi
add eax, 4
mov dword [esp + 0xc], eax
cmp eax, 0x1006f0a4
jl 0x10004796
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100572e4]
call esi
sub eax, dword [esp + 0x10]
push eax
push str.DirectX11::CreateTextures10__:__u_own_references
push 0x64
mov dword [0x1006f4e0], eax
call fcn.10009530
mov edx, dword [ebx + 4]
add esp, 0xc
sub edx, dword [ebx]
cmp edx, 0x4b0
jbe 0x10004817
push edx
push str.DirectX10::CreateTextures11__:_unexpected_vtable_size__u
push 0xc8
call fcn.10009530
add esp, 0xc
mov edx, 0x4b0
push fcn.10003980
mov ecx, ebx
call fcn.10005b20
add esp, 4
call fcn.100059a0
test eax, eax
je 0x10004b19
cmp dword [0x1006ec50], 0
jle 0x10004876
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 5
je 0x10004867
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]
lea eax, [ecx + 2]
and eax, 0x80000001
jns 0x1000488b
dec eax
or eax, 0xfffffffe
inc eax
mov eax, dword [eax*4 + 0x1006f09c]
mov dword [esp + 0x10], eax
lea eax, [ecx + 1]
and eax, 0x80000001
jns 0x100048a5
dec eax
or eax, 0xfffffffe
inc eax
mov ebx, dword [eax*4 + 0x1006f09c]
mov edi, dword [esp + 0x2c]
call fcn.10005830
cmp dword [esp + 0x7c], 1
movsd qword [esp + 0x30], xmm0
jbe 0x10004918
push dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x1006f0a4]
push 0
add eax, 2
mov esi, dword [ecx]
push edi
push 0
and eax, 0x80000001
jns 0x100048e5
dec eax
or eax, 0xfffffffe
inc eax
push dword [eax*4 + 0x1006f0a8]
mov esi, dword [esi + 0xe4]
push ecx
mov ecx, esi
call dword [0x100572e4]
call esi
mov eax, dword [0x1006f0a4]
add eax, 2
and eax, 0x80000001
jns 0x10004911
dec eax
or eax, 0xfffffffe
inc eax
mov edi, dword [eax*4 + 0x1006f0a8]
mov eax, dword [esp + 0x28]
push edi
push dword [esp + 0x14]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xbc]
mov ecx, esi
call dword [0x100572e4]
call esi
call fcn.10005830
subsd xmm0, qword [esp + 0x30]
addsd xmm0, qword [0x1006a3b8]
movsd qword [esp + 0x10], xmm0
call fcn.10005830
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x94]
push ecx
push 0
push 1
mov esi, dword [eax]
push 0
push ebx
push eax
mov esi, dword [esi + 0x38]
mov ecx, esi
movsd qword [esp + 0x48], xmm0
call dword [0x100572e4]
call esi
mov esi, eax
call fcn.10005830
subsd xmm0, qword [esp + 0x30]
addsd xmm0, qword [0x1006a3b8]
movsd qword [esp + 0x30], xmm0
test esi, esi
js 0x100049de
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x94]
call fcn.10003d20
mov eax, dword [esp + 0x28]
addsd xmm0, qword [0x1006a3b8]
push 0
push ebx
mov ecx, dword [eax]
push eax
movsd qword [esp + 0x24], xmm0
mov esi, dword [ecx + 0x3c]
mov ecx, esi
call dword [0x100572e4]
call esi
jmp 0x100049f1
mov ecx, str.DirectX10::CreateTextures11__:_CreateTexture2D_Multisample__i_failed__hr_X
jmp 0x10004b09
push esi
push str.DirectX10::GrabBackBuffer_D3D11__:_Map_failed__hr_X
push 0xc8
call fcn.10009530
add esp, 0xc
mov eax, dword [0x1006f0a4]
add eax, 3
and eax, 0x80000001
jns 0x10004a05
dec eax
or eax, 0xfffffffe
inc eax
cmp dword [0x1006ec50], 0
mov dword [0x1006f0a4], eax
jle 0x10004b5c
mov eax, dword [0x1006ec58]
test eax, eax
je 0x10004b5c
cmp dword [eax + 0x1000e], 0x64
jg 0x10004b5c
call fcn.10005830
subsd xmm0, qword [esp + 0x20]
add dword [0x1006f450], 1
mov edx, str.DirectX10::GrabBackBuffer_D3D11__:_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_D3D11__:_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 + 0x30]
mov edx, str.DirectX10::GrabBackBuffer_D3D11__:_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 + 0x18]
mov edx, str.DirectX10::GrabBackBuffer_D3D11__:_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 0x10004b5c
mov ecx, str.DirectX10::CreateTextures11__:_CreateTexture2D__i_failed__hr_X
push eax
push edi
push ecx
push 0xc8
call fcn.10009530
add esp, 0x10
cmp dword [0x1006ec50], 0
jle 0x10004b5c
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 3
je 0x10004b4d
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 + 0x2c]
test ecx, ecx
je 0x10004b74
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100572e4]
call esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10004b8c
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