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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov edi, dword [ebp + 8]
mov dword [esp + 0x34], 0
lea ebx, [edi + 0x14c]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
test byte [edi + 0x20], 0x20
jne 0x10007937
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x44], 2
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
push 0
push 0
push 1
push eax
call dword [ecx + 0xc]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x74], eax
and eax, 0xfffcffff
mov dword [edi + 0x20], eax
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
push esi
call dword [eax + 0xc]
mov edx, dword [edi + 0x60]
mov ecx, dword [edx]
test eax, eax
js 0x10006ffe
lea eax, [esp + 0x34]
lea edi, [esp + 0x78]
push eax
push edi
push esi
push edx
call dword [ecx + 0x20]
mov esi, eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jns 0x10007042
jmp 0x10007013
lea eax, [esp + 0x34]
lea edi, [esp + 0x78]
push eax
push edi
push esi
push edx
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jns 0x10007042
test byte [0x10019018], 4
je 0x10007042
sub esp, 0x14
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Failed_to_create_source_object__hr__lx._n
mov dword [esp + 8], str.media_engine_load_handler_Invoke
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
mov eax, dword [esp + 0x34]
test eax, eax
mov edi, dword [ebp + 8]
je 0x100078e7
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
mov esi, dword [0x1000ae70]
push edx
push esi
push eax
call dword [ecx]
test eax, eax
js 0x10007131
lea ecx, [edi - 0xc]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
call dbg.media_engine_release_video_frame_resources
lea esi, [edi + 0x6c]
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x1000709a
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x70]
test eax, eax
je 0x100070a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pxor xmm0, xmm0
movq qword [esi + 0x10], xmm0
pxor xmm0, xmm0
movdqu xmmword [esi], xmm0
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [eax + 0x20]
test eax, eax
js 0x10007256
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x84]
test eax, eax
jns 0x10007114
test byte [0x10019018], 4
je 0x10007114
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_stream_count__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
mov dword [esp + 0x70], ebx
cmp dword [esp + 0x38], 0
je 0x1000725d
xor esi, esi
mov dword [esp + 8], 0
xor ebx, ebx
jmp 0x1000715f
mov esi, eax
jmp 0x100078dd
mov edi, dword [ebp + 8]
nop dword [eax + eax]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [esp + 0x38]
jae 0x10007267
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x90]
test esi, esi
je 0x10007178
cmp dword [esp + 8], 0
jne 0x10007154
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
call dword [ecx + 0x88]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push eax
call dword [ecx + 0x88]
test eax, eax
js 0x1000714a
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
call dword [ecx + 0x20]
test esi, esi
jne 0x1000720e
mov edi, dword [0x1000ae90]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
xor edx, dword [esp + 0x40]
xor ecx, dword [esp + 0x48]
mov edi, dword [edi + 4]
or ecx, edx
xor edi, dword [esp + 0x44]
xor eax, dword [esp + 0x4c]
or eax, edi
or eax, ecx
jne 0x1000720e
mov eax, dword [esp + 0x10]
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x8c]
jmp 0x10007140
mov eax, dword [str.vids]
movdqu xmm0, xmmword [eax]
pcmpeqb xmm0, xmmword [esp + 0x40]
pmovmskb eax, xmm0
cmp eax, 0xffff
jne 0x10007138
cmp dword [esp + 8], 0
mov edi, dword [ebp + 8]
jne 0x10007140
mov dword [esp + 8], 0
test byte [edi + 0x20], 1
jne 0x10007140
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jmp 0x100071f5
mov esi, eax
jmp 0x100078d3
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 0xc], 0x8000ffff
mov edx, dword [esp + 8]
mov eax, edx
or eax, esi
je 0x100078c1
xor ebx, ebx
test esi, esi
setne bl
xor eax, eax
test edx, edx
setne al
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x6c], ecx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esp + 0x18]
mov dword [edi + 0x70], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, 0xffffe7ff
and eax, dword [edi + 0x20]
mov ecx, dword [esp + 0xc]
shl ecx, 0xc
shl ebx, 0xb
or ebx, ecx
or ebx, eax
mov dword [edi + 0x20], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
mov ebx, dword [0x1000aed8]
push edx
push ebx
push eax
call dword [ecx + 0x20]
fild qword [esp + 0x60]
fstp qword [esp + 0x80]
test eax, eax
js 0x100072fa
movsd xmm0, qword [esp + 0x80]
divsd xmm0, qword [0x100091f8]
jmp 0x10007302
movsd xmm0, qword [0x100091f0]
movsd qword [edi + 0x3c], xmm0
lea eax, [esp + 0x14]
push eax
call sym._MFCreateTopology_4
mov dword [esp + 0xc], eax
test eax, eax
mov ebx, esi
js 0x100073b3
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
test byte [edi + 0x20], 8
mov esi, dword [esp + 8]
je 0x1000735c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [0x1000aea8]
push 1
push edx
push eax
call dword [ecx + 0x54]
test ebx, ebx
je 0x10007595
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push 1
call sym._MFCreateTopologyNode_8
test eax, eax
js 0x100073bc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [0x1000aeec]
push dword [esp + 0x30]
push edx
push eax
call dword [ecx + 0x6c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [0x1000aee8]
push esi
push edx
push eax
call dword [ecx + 0x6c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [0x1000aef0]
push ebx
push edx
push eax
call dword [ecx + 0x6c]
jmp 0x100073eb
mov esi, dword [esp + 8]
jmp 0x1000789f
test byte [0x10019018], 4
je 0x100073eb
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_audio_source_node__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
mov dword [esp + 0x24], 0
lea eax, [esp + 0x28]
push eax
call sym._MFCreateAudioRendererActivate_4
test eax, eax
js 0x100074b0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
mov esi, dword [0x1000aeac]
push edx
push esi
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x10007433
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [0x1000aea0]
push dword [esp + 0x40]
push edx
push eax
call dword [ecx + 0x54]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
mov esi, dword [0x1000aeb0]
push edx
push esi
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x10007461
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [0x1000ae9c]
push dword [esp + 0x10]
push edx
push eax
call dword [ecx + 0x54]
lea eax, [esp + 0x24]
push eax
push 0
call sym._MFCreateTopologyNode_8
mov dword [esp + 0xc], eax
test eax, eax
mov esi, dword [esp + 8]
js 0x1000749d
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push dword [esp + 0x28]
push eax
call dword [ecx + 0x84]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [0x1000aee4]
push 0
push edx
push eax
call dword [ecx + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0xc], 0
jns 0x100074eb
jmp 0x100074b8
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
test byte [0x10019018], 4
je 0x100074eb
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_audio_renderer_node__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000757d
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1000757d
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x88]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push dword [esp + 0x24]
push eax
call dword [ecx + 0x88]
mov ecx, dword [edi + 0x90]
mov edx, dword [edi + 0x94]
push dword [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x34]
call dbg.media_engine_create_effects
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jns 0x10007579
test byte [0x10019018], 4
je 0x10007579
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_audio_effect_nodes__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10007587
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10007595
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x6c], ebx
test esi, esi
je 0x100075fb
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x1000786d
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 1
call sym._MFCreateTopologyNode_8
test eax, eax
js 0x10007604
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [0x1000aeec]
push dword [esp + 0x30]
push edx
push eax
call dword [ecx + 0x6c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [0x1000aee8]
push esi
push edx
push eax
call dword [ecx + 0x6c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [0x1000aef0]
push dword [esp + 8]
push edx
push eax
call dword [ecx + 0x6c]
jmp 0x10007633
mov ebx, dword [esp + 0xc]
jmp 0x1000786d
test byte [0x10019018], 4
je 0x10007633
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_video_source_node__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
mov dword [esp + 0x20], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
mov esi, dword [0x1000aec8]
push edx
push esi
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x1000773a
mov eax, dword [0x1000ae98]
movupd xmm0, xmmword [eax]
movapd xmmword [esp + 0x40], xmm0
push dword [esp + 0x3c]
call sym._MFMapDXGIFormatToDX9Format_4
mov dword [esp + 0x40], eax
test eax, eax
je 0x1000776c
lea eax, [esp + 0x10]
push eax
call sym._MFCreateMediaType_4
test eax, eax
js 0x100077aa
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [str.vids]
mov esi, dword [0x1000aed0]
push edx
push esi
push eax
call dword [ecx + 0x60]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
mov esi, dword [0x1000aed4]
push edx
push esi
push eax
call dword [ecx + 0x60]
lea eax, [edi + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x18]
call sym._MFCreateSampleGrabberSinkActivate_12
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
js 0x100077ac
lea eax, [esp + 0x20]
push eax
push 0
call sym._MFCreateTopologyNode_8
mov ebx, eax
test eax, eax
mov esi, dword [esp + 8]
js 0x1000771c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push dword [esp + 0x28]
push eax
call dword [ecx + 0x84]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [0x1000aee4]
push 0
push edx
push eax
call dword [ecx + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x3c]
mov dword [edi + 0xc4], eax
test ebx, ebx
jns 0x100077df
jmp 0x100077b0
mov ebx, 0x80004005
test byte [0x10019018], 4
je 0x100077ac
sub esp, 0x10
mov dword [esp + 0xc], str.Output_format_was_not_specified._n
mov dword [esp + 8], str.media_engine_create_video_renderer
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x10
jmp 0x100077ac
mov ebx, 0x80004005
test byte [0x10019018], 4
mov esi, dword [esp + 8]
je 0x100077b0
mov eax, dword [esp + 0x3c]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unrecognized_output_format__x._n
mov dword [esp + 8], str.media_engine_create_video_renderer
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
jmp 0x100077b0
mov ebx, eax
mov esi, dword [esp + 8]
test byte [0x10019018], 4
je 0x100077df
sub esp, 0x14
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Failed_to_create_video_grabber_node__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x1c]
je 0x1000783d
test eax, eax
je 0x1000783d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x88]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push dword [esp + 0x20]
push eax
call dword [ecx + 0x88]
mov ecx, dword [edi + 0x84]
mov edx, dword [edi + 0x88]
push dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dbg.media_engine_create_effects
add esp, 0xc
mov ebx, eax
test eax, eax
js 0x1000794a
mov eax, dword [esp + 0x1c]
jmp 0x10007841
test ebx, ebx
js 0x10007851
lea ecx, [edi + 0xb4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x90]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000785f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000786d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [0x1000aedc]
push 1
push edx
push eax
call dword [ecx + 0x54]
mov dword [esp + 0xc], ebx
test ebx, ebx
js 0x1000789b
mov eax, dword [edi + 0x58]
mov ecx, dword [eax]
push dword [esp + 0x14]
push 1
push eax
call dword [ecx + 0x1c]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100078ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x100078b7
mov eax, dword [esi]
push esi
call dword [eax + 8]
test ebx, ebx
je 0x100078c1
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
js 0x10007918
mov dword [edi + 0x44], 1
test dword [esp + 0x74], 0x20000
je 0x10007937
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x74]
mov edx, dword [eax]
mov esi, dword [0x1000ae3c]
push ecx
push esi
push eax
call dword [edx + 0x24]
mov word [edi + 0x74], 0
jmp 0x10007937
mov dword [edi + 0x44], 3
mov dword [edi + 0x48], 4
mov dword [edi + 0x4c], esi
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
push esi
push 4
push 5
push eax
call dword [ecx + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
test byte [0x10019018], 4
je 0x10007851
sub esp, 0x14
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Failed_to_create_video_effect_nodes__hr__lx._n
mov dword [esp + 8], str.media_engine_create_topology
mov dword [esp], 2
call dbg.wine_dbg_log
add esp, 0x14
jmp 0x10007851