Function at 0x64501940
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x4c
test eax, eax
je 0x64501b18
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x64501af0
mov ecx, dword [edi + 0xd8]
xor eax, eax
test ecx, ecx
je 0x64501978
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x64501b40
mov edx, dword [edi + 0xe4]
test edx, edx
je 0x64501c6b
mov dword [esp + 8], eax
lea eax, [edi + 0xd8]
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msacm32.dll_acmStreamOpen
sub esp, 0x20
test eax, eax
jne 0x64501be6
mov eax, dword [edi + 0xe4]
lea ebx, [ebp - 0x1c]
movzx edx, word [eax + 0xc]
mov dword [edi + 0x3c], edx
movzx edx, word [eax + 0xc]
mov dword [edi + 0x20], edx
mov eax, dword [eax + 8]
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0xdc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x40], 0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
movzx eax, word [eax + 0xc]
imul eax, dword [edi + 0x28]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xd8]
mov dword [esp], eax
call sub.msacm32.dll_acmStreamSize
mov eax, dword [edi + 0xe4]
xor edx, edx
sub esp, 0x10
movzx esi, word [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
div esi
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0xdc]
movzx eax, word [eax + 0xc]
imul eax, dword [edi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xd8]
mov dword [esp], eax
call sub.msacm32.dll_acmStreamSize
mov eax, dword [edi + 0xe4]
xor edx, edx
sub esp, 0x10
movzx esi, word [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
div esi
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0xdc]
movzx eax, word [eax + 0xc]
imul eax, dword [edi + 0x34]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xd8]
mov dword [esp], eax
call sub.msacm32.dll_acmStreamSize
mov eax, dword [edi + 0xe4]
xor edx, edx
sub esp, 0x10
movzx ebx, word [eax + 0xc]
mov eax, dword [ebp - 0x1c]
div ebx
mov dword [edi + 0x34], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x4f
mov dword [esp + 4], str..._dlls_avifil32_acmstream.c
mov dword [esp], 0x6452602a
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x6450195e
mov dword [esp + 8], 0x4e
mov dword [esp + 4], str..._dlls_avifil32_acmstream.c
mov dword [esp], 0x6452601d
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x64501953
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0xe0]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call sym.avifil32.dll_AVIStreamReadFormat
sub esp, 0x10
test eax, eax
js 0x6450196a
mov eax, dword [edi + 0xe0]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
call eax
mov dword [edi + 0xdc], eax
sub esp, 0xc
test eax, eax
je 0x64501c75
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [edx + 0x18]
sub esp, 0x10
test eax, eax
js 0x6450196a
mov edx, dword [edi + 0xe4]
test edx, edx
je 0x64501bf0
mov eax, dword [edi + 0xdc]
jmp 0x64501994
mov eax, 0x80044071
jmp 0x6450196a
mov dword [edi + 0xe8], 0x12
mov dword [esp + 8], 0x12
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov dword [edi + 0xe4], eax
sub esp, 0xc
test eax, eax
je 0x64501c75
mov edx, 1
mov word [eax], dx
mov edx, dword [edi + 0xe8]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xdc]
mov dword [esp + 0x10], 0x10000
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.msacm32.dll_acmFormatSuggest
sub esp, 0x14
test eax, eax
jne 0x64501be6
mov edx, dword [edi + 0xe4]
jmp 0x64501bdb
mov eax, 0x800440c7
jmp 0x6450196a
mov eax, 0x80044067
jmp 0x6450196a