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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2dc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
cmp dword [edi + 0x10], esi
jbe 0x1000f334
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x1000ed42
test byte [0x1001c03c], 1
jne 0x1000f068
mov dword [ebx], sym._d3d9_device_QueryInterface_12
mov dword [ebx + 4], 0x100238c4
mov dword [ebx + 0x14], esi
mov dword [ebx + 8], 1
test byte [ebp + 0x20], 2
je 0x1000f000
call sym._wined3d_mutex_lock_0
lea eax, [esi*4]
mov dword [ebp - 0x2ac], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
call sym._wined3d_output_get_adapter
mov dword [esp + 0x1c], 7
mov ecx, eax
mov dword [ebp - 0x2a8], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x24], eax
lea eax, [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], 0x100237ac
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._wined3d_device_create
mov edx, eax
test eax, eax
js 0x1000f098
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_get_immediate_context
lea edx, [ebp - 0x170]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call sym._wined3d_get_device_caps
lea edx, [ebp - 0x170]
lea eax, [ebp - 0x2a0]
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._d3d9_caps_from_wined3dcaps
mov eax, dword [ebp - 0x1fc]
test dword [ebp + 0x20], 0x200
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebx + 0x60], eax
mov eax, 1
cmovne eax, dword [ebp - 0x1b8]
mov dword [esp + 8], 5
mov dword [ebp - 0x2b0], eax
lea eax, [ebx + 0x70]
mov dword [ebp - 0x2bc], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_stateblock_create
mov edx, eax
test eax, eax
js 0x1000f030
mov eax, dword [ebx + 0x70]
mov dword [esp], eax
call sym._wined3d_stateblock_get_state
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 2
test byte [ebp + 0x20], 4
jne 0x1000f2b8
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x1000ef02
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x1000f100
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_acquire_focus_window
mov edx, eax
test eax, eax
js 0x1000f110
mov eax, dword [ebp - 0x2b0]
shl eax, 6
mov dword [ebp - 0x2c0], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2b8], eax
mov esi, eax
test eax, eax
je 0x1000f383
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2a8], 0
mov ecx, dword [ebp + 0x24]
and edx, 0x800
mov dword [ebp - 0x2b4], edx
test eax, eax
je 0x1000f13b
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x2ac]
jmp 0x1000ef9f
mov eax, dword [esi + 0x34]
mov edx, eax
or eax, 0x10000
or edx, 0x50000
cmp dword [ebp - 0x2b4], 0
cmovne eax, edx
add dword [ebp - 0x2a8], 1
add ebx, 4
add esi, 0x40
add ecx, 0x38
mov dword [esi - 0xc], eax
mov eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x2b0], eax
je 0x1000f138
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2ac], ecx
mov edx, dword [eax + ebx]
mov eax, dword [edi + 0x14]
mov dword [esp], eax
mov eax, esi
call sym._wined3d_swapchain_desc_from_d3d9
mov ecx, dword [ebp - 0x2ac]
test eax, eax
jne 0x1000ef60
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_release_focus_window
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_decref
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
call sym._wined3d_mutex_unlock_0
lea esp, [ebp - 0xc]
mov edx, 0x8876086c
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
fnstcw word [ebp - 0x170]
movzx eax, word [ebp - 0x170]
and ax, 0xf0c0
or eax, 0x3f
mov word [ebp - 0x170], ax
fldcw word [ebp - 0x170]
jmp 0x1000ed63
test byte [0x1001c03c], 2
jne 0x1000f0c0
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_decref
call sym._wined3d_mutex_unlock_0
mov edx, dword [ebp - 0x2a8]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Ignoring_display_mode._n
mov dword [esp + 8], str.device_init
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000ed42
test byte [0x1001c03c], 4
jne 0x1000f278
mov dword [ebp - 0x2a8], edx
call sym._wined3d_mutex_unlock_0
mov edx, dword [ebp - 0x2a8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
mov dword [ebp - 0x2a8], eax
mov dword [esp + 0xc], str.Failed_to_create_the_primary_stateblock__hr__lx._n
mov dword [esp + 8], str.device_init
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x2a8]
jmp 0x1000f03d
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x1c], eax
jmp 0x1000eee6
test byte [0x1001c03c], 2
je 0x1000f03d
mov dword [esp + 0x10], eax
mov dword [ebp - 0x2a8], eax
mov dword [esp + 0xc], str.Failed_to_acquire_focus_window__hr__lx._n
jmp 0x1000f0d2
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 0x34]
call sym._wined3dswapinterval_from_d3d
lea edx, [ebp - 0x2a4]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2b8]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call sym._d3d9_swapchain_create
mov edx, eax
test eax, eax
js 0x1000f2d0
mov eax, dword [ebp - 0x2a4]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._wined3d_swapchain_incref
mov eax, dword [ebp - 0x2a4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov esi, dword [ebp - 0x2b8]
xor eax, eax
sub esp, 4
mov edx, dword [esi + 0x2c]
mov dword [esp + 4], 7
test edx, edx
setne al
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x70]
mov dword [esp], eax
call sym._wined3d_stateblock_set_render_state
mov edx, dword [ebp - 0x2bc]
lea eax, [ebx + 0x10]
call sym._device_reset_viewport_state.isra.0
mov eax, ebx
call sym._d3d9_device_get_swapchains
test eax, eax
js 0x1000f33e
mov edx, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [ebp + 0x24]
add edx, esi
test ecx, ecx
je 0x1000f223
mov dword [ebp + 8], ebx
mov ebx, eax
mov dword [ebp + 0xc], edi
mov edi, esi
mov esi, edx
mov esi, esi
lea edi, [edi]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 4], edi
add edi, 0x40
mov dword [esp], ebx
add ebx, 0x38
mov dword [esp + 8], ecx
call sym._present_parameters_from_wined3d_swapchain_desc
cmp esi, edi
jne 0x1000f200
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call sym._wined3d_mutex_unlock_0
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
call sym._wined3d_mutex_lock_0
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._wined3d_device_context_get_rendertarget_view
mov dword [esp], eax
call sym._wined3d_rendertarget_view_get_sub_resource_parent
mov dword [ebx + 0x40], eax
call sym._wined3d_mutex_unlock_0
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 4]
mov dword [ebx + 0x18], edi
xor edx, edx
sub esp, 4
jmp 0x1000f059
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_wined3d_device__hr__lx._n
mov dword [esp + 8], str.device_init
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 2
mov dword [ebp - 0x2a8], eax
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x2a8]
jmp 0x1000f0a5
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_set_multithreaded
jmp 0x1000eed1
test byte [0x1001c03c], 4
jne 0x1000f2fe
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2a8], edx
mov dword [esp], eax
call sym._wined3d_device_release_focus_window
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000f043
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_swapchain__hr__lx._n
mov dword [esp + 8], str.device_init
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 2
mov dword [ebp - 0x2a8], eax
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x2a8]
jmp 0x1000f2d9
mov edx, 0x8876086c
jmp 0x1000f059
mov eax, dword [ebp - 0x2a4]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._wined3d_swapchain_decref
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_release_focus_window
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_decref
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
call sym._wined3d_mutex_unlock_0
mov edx, 0x8007000e
jmp 0x1000f059
test byte [0x1001c03c], 2
jne 0x1000f3b1
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_release_focus_window
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._wined3d_device_decref
call sym._wined3d_mutex_unlock_0
mov edx, 0x8007000e
jmp 0x1000f059
mov dword [esp + 0xc], str.Failed_to_allocate_wined3d_parameters._n
mov dword [esp + 8], str.device_init
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000f38c