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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b3af3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x100ca040]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x38
mov dword [esp + 0x18], edi
call fcn.1008c1c4
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], 0
test eax, eax
je 0x100809a7
mov ecx, eax
call fcn.10080220
mov ebx, eax
mov dword [esp + 0x20], eax
jmp 0x100809ad
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [edi + 0x4c]
cmp dword [eax + 0x78], 0x2d0
jne 0x100809f7
cmp dword [eax + 0x7c], 0x1e0
jne 0x100809f7
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x24]
push edx
push str.originalVideoSize
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp dword [esp + 0x24], 0x2d0
jne 0x100809f7
mov ecx, dword [edi + 0x4c]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x7c], eax
mov eax, dword [edi + 0x4c]
push dword [eax + 0x7c]
push dword [eax + 0x78]
lea eax, [esp + 0x38]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp + 0x18]
sbb ecx, dword [ebp + 0x10]
shrd eax, ecx, 1
mov dword [ebx + 0x28], edx
sar ecx, 1
add eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], edx
adc ecx, dword [ebp + 0x10]
add edi, 0x1c
push edi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x1c], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], 1
mov eax, dword [ecx + 0x6c]
mov esi, dword [eax]
cmp esi, eax
je 0x10080b8c
mov edi, dword [esp + 0x20]
mov ebx, dword [esi + 8]
cmp dword [ebx + 8], 0
mov edx, dword [ebx + 0xc]
jne 0x10080a96
cmp edx, 0x80000000
je 0x10080aea
cmp dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x14]
jne 0x10080aa6
cmp eax, 0x80000000
je 0x10080ac1
cmp eax, dword [esp + 0x1c]
jl 0x10080b79
mov eax, dword [esp + 0x18]
jg 0x10080ac5
cmp dword [ebx + 0x10], eax
jbe 0x10080b79
jmp 0x10080ac5
mov eax, dword [esp + 0x18]
cmp edx, dword [esp + 0x1c]
jg 0x10080b79
jl 0x10080ada
cmp dword [ebx + 8], eax
ja 0x10080b79
cmp dword [ecx + 0x68], 0
jne 0x10080aea
cmp byte [ebx + 0x3c], 0
je 0x10080b79
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10080b4b
mov eax, dword [eax + 4]
mov ecx, 0x2710
mul ecx
push 0
push 0x5a
push edx
push eax
call fcn.100b2c60
cmp edx, dword [esp + 0x1c]
jg 0x10080b4b
jl 0x10080b18
cmp eax, dword [esp + 0x18]
ja 0x10080b4b
mov eax, dword [esp + 0x2c]
mov ecx, 0x2710
push 0
push 0x5a
mov eax, dword [eax + 8]
mul ecx
push edx
push eax
call fcn.100b2c60
cmp edx, dword [esp + 0x1c]
jl 0x10080b4b
jg 0x10080b3f
cmp eax, dword [esp + 0x18]
jb 0x10080b4b
mov ecx, dword [esp + 0x14]
push ebx
call fcn.10081a20
mov ebx, eax
mov eax, dword [edi + 0x34]
lea eax, [eax*4 + 4]
push eax
push dword [edi + 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
test eax, eax
je 0x10080b75
mov ecx, dword [edi + 0x34]
mov dword [edi + 0x30], eax
push ebx
mov dword [eax + ecx*4], ebx
inc dword [edi + 0x34]
mov eax, dword [ebx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, dword [ecx + 0x6c]
jne 0x10080a82
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push edi
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx + 0x34], 0
jne 0x10080bae
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
push 1
call dword [eax + 0xc]
xor ebx, ebx
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [esi + 0x44]
push ebx
push edi
push dword [ebp + 0x10]
mov edx, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [edx + 0x58]
push ebx
push edi
mov ecx, esi
call fcn.10080ec0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1008c1b5
mov esp, ebp
pop ebp
ret 0x14