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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e79bd
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x58bd90]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], esi
mov dword [esp + 0x98], 1
mov eax, dword [ebx + 0x510]
cmp eax, esi
je 0x492ee4
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x50fb4c
push eax
mov eax, dword [ecx]
call eax
cmp eax, esi
jl 0x492ee4
mov dword [esp + 0x18], vtable.CArray_class_CMediaType__class_CMediaType_const__.0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x98], 2
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00482bc0
add esp, 4
cmp eax, esi
jl 0x492fa5
cmp dword [esp + 0x20], esi
jle 0x492fa5
mov eax, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0xc], eax
mov eax, dword [eax + 0x40]
mov ecx, 0x12
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x492bce
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
mov dword [esp + 0x70], esi
test esi, esi
jne 0x492bb6
mov edi, dword [esp + 0x68]
mov dword [esp + 0x6c], eax
jmp 0x492be2
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x44]
push edx
push ecx
push esi
call fcn.0045b4a0
add esp, 0xc
jmp 0x492bd2
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
test edi, edi
je 0x492be2
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x98], 3
lea ecx, [esp + 0x2c]
push 0x554a88
push ecx
call fcn.004052b0
add esp, 8
test eax, eax
je 0x492e97
lea edx, [esp + 0x3c]
push 0x554d98
push edx
call fcn.004052b0
add esp, 8
test eax, eax
je 0x492e97
lea eax, [esp + 0x58]
push 0x554f38
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x492e97
call fcn.0041d9cc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x492c52
push 0x80004005
call fcn.004016a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x98], 5
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x10]
push 0x52dc78
push edx
call fcn.00402950
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
lea ecx, [ebx + 0x170]
call fcn.004258fd
movzx ecx, word [esi + 2]
push ecx
lea edx, [esp + 0x10]
push 0x52dc80
push edx
call fcn.00402950
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
lea ecx, [ebx + 0x1e4]
call fcn.004258fd
mov ecx, dword [esi + 8]
push ecx
lea edx, [esp + 0x10]
push 0x52dc88
push edx
call fcn.00402950
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
lea ecx, [ebx + 0x258]
call fcn.004258fd
mov eax, dword [ebx + 0x510]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x492e27
mov ecx, dword [esp + 0x80]
push ecx
lea edx, [esp + 0x10]
push 0x52dc90
push edx
call fcn.00402950
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
lea ecx, [ebx + 0x2cc]
call fcn.004258fd
mov ecx, dword [esp + 0x7c]
push ecx
lea edx, [esp + 0x10]
push 0x52dc98
push edx
call fcn.00402950
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x492dcf
mov eax, dword [esp + 0x7c]
imul eax, eax, 0x3e8
xor edx, edx
div ecx
mov edi, eax
call fcn.0041d9cc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x492d6e
push 0x80004005
call fcn.004016a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x98], 7
push edi
lea ecx, [esp + 0x14]
push str.___d_ms_
push ecx
call fcn.00402950
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402220
mov byte [esp + 0x98], 5
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492dcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [ebx + 0x340]
call fcn.004258fd
mov edx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x10]
push 0x52dca0
push eax
call fcn.00402950
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
lea ecx, [ebx + 0x3b4]
call fcn.004258fd
mov edx, dword [esp + 0x78]
push edx
lea eax, [esp + 0x10]
push 0x52dca8
push eax
call fcn.00402950
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
jmp 0x492e5c
push 0x52dcb0
lea ecx, [ebx + 0x2cc]
call fcn.004258fd
push 0x52dcc0
lea ecx, [ebx + 0x340]
call fcn.004258fd
push 0x52dcd0
lea ecx, [ebx + 0x3b4]
call fcn.004258fd
push 0x52dce0
lea ecx, [ebx + 0x428]
call fcn.004258fd
mov dword [esp + 0x10], 0
mov byte [esp + 0x98], 3
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x492e93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x68]
mov byte [esp + 0x98], 2
cmp dword [esp + 0x6c], 0
je 0x492eb7
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
test edi, edi
je 0x492ecb
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov dword [esp + 0x68], 0
mov byte [esp + 0x98], 1
lea edi, [esp + 0x18]
call fcn.004039b0
xor esi, esi
cmp dword [esp + 0x10], esi
jge 0x492f54
push 0x52dcf0
lea ecx, [ebx + 0x170]
call fcn.004258fd
push 0x52dd00
lea ecx, [ebx + 0x1e4]
call fcn.004258fd
push 0x52dd10
lea ecx, [ebx + 0x258]
call fcn.004258fd
push 0x52dd20
lea ecx, [ebx + 0x2cc]
call fcn.004258fd
push 0x52dd30
lea ecx, [ebx + 0x340]
call fcn.004258fd
push 0x52dd40
lea ecx, [ebx + 0x3b4]
call fcn.004258fd
push 0x52dd50
lea ecx, [ebx + 0x428]
call fcn.004258fd
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x492f68
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x492f83
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0045463b
mov esp, ebp
pop ebp
ret
mov byte [esp + 0x98], 1
lea edi, [esp + 0x18]
call fcn.004039b0
jmp 0x492ee4