Function at 0x64515c10
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
test eax, eax
je 0x64515fa0
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x64515fd0
mov ecx, dword [edi + 0xd8]
test ecx, ecx
je 0x64515c55
mov dword [esp + 8], 0x371
mov dword [esp + 4], str..._dlls_avifil32_icmstream.c
mov dword [esp], str.This__pg__NULL
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [edi + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.avifil32.dll_AVIStreamGetFrameOpen
mov dword [edi + 0xd8], eax
sub esp, 8
test eax, eax
je 0x64516034
cmp dword [edi + 0x10], 0x20424944
je 0x64515e50
mov edx, dword [edi + 0xdc]
test edx, edx
je 0x64515ff8
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x64515cbb
mov dword [esp + 8], 0x37c
mov dword [esp + 4], str..._dlls_avifil32_icmstream.c
mov dword [esp], str.This__lpbiOutput__NULL
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [edi + 0x28]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xd8]
mov dword [esp], eax
call sym.avifil32.dll_AVIStreamGetFrame
sub esp, 8
mov esi, eax
test eax, eax
je 0x6451602a
mov dword [esp + 8], eax
mov eax, dword [edi + 0xdc]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x4004
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov ebx, eax
cmp eax, 0x27
jle 0x64515f90
mov dword [esp + 8], ebx
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov dword [edi + 0x10c], eax
sub esp, 0xc
test eax, eax
je 0x6451602a
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xdc]
mov dword [edi + 0x110], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4004
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
test eax, eax
js 0x64516020
mov eax, dword [edi + 0x10c]
mov ecx, dword [eax + 4]
add ecx, dword [edi + 0x40]
mov dword [edi + 0x48], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xdc]
add ecx, dword [edi + 0x44]
mov dword [esp + 8], esi
mov dword [edi + 0x4c], ecx
mov dword [esp + 4], 0x4005
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x10c]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xdc]
mov dword [esp + 4], 0x4007
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
test eax, eax
jne 0x64515f90
mov eax, dword [ebp - 0x1c]
add ebx, dword [edi + 0x34]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov dword [edi + 0xfc], eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6451602a
mov esi, dword [edi + 0x10c]
mov eax, dword [edi + 0x110]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebx + 0x20]
lea eax, [ebx + eax*4]
add eax, dword [ebx]
cmp dword [edi + 0xec], 1
mov dword [edi + 0x100], eax
je 0x64515e50
test byte [edi + 0xe0], 0x20
je 0x64515e60
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0xdc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400a
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov ebx, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
mov dword [edi + 0x104], eax
sub esp, 0xc
test eax, eax
je 0x6451602a
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10c]
mov dword [esp + 4], 0x400a
mov dword [esp + 8], eax
mov eax, dword [edi + 0xdc]
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
test eax, eax
js 0x64515f90
mov ecx, dword [edi + 0x104]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x64515f18
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
add eax, 0x1f
and eax, 0xffffffe0
lea esi, [eax + 7]
cmovs eax, esi
sar eax, 3
imul eax, dword [ecx + 8]
mov dword [ecx + 0x14], eax
mov ecx, dword [edi + 0x104]
mov eax, dword [ecx + 0x14]
add ebx, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [edi + 0x104], eax
sub esp, 0x10
test eax, eax
je 0x6451602a
mov ecx, dword [eax + 0x20]
lea ecx, [eax + ecx*4]
add ecx, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10c]
mov dword [edi + 0x108], ecx
mov dword [esp + 4], 0x400c
mov dword [esp + 8], eax
mov eax, dword [edi + 0xdc]
mov dword [esp], eax
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
test eax, eax
je 0x64515e50
nop
mov eax, 0x80044070
jmp 0x64515e52
mov dword [esp + 8], 0x36f
mov dword [esp + 4], str..._dlls_avifil32_icmstream.c
mov dword [esp], str.This___NULL
call dword [sym.imp.ucrtbase.dll__assert]
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x64515c2e
lea esi, [esi]
nop
mov dword [esp + 8], 0x370
mov dword [esp + 4], str..._dlls_avifil32_icmstream.c
mov dword [esp], str.This__pStream___NULL
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x64515c2e
mov dword [esp + 8], 0x37b
mov dword [esp + 4], str..._dlls_avifil32_icmstream.c
mov dword [esp], str.This__hic___NULL
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x64515c94
mov eax, 0x80044066
jmp 0x64515e52
mov eax, 0x80044067
jmp 0x64515e52
mov eax, 0x800440c7
jmp 0x64515e52