Function at 0x64a7b870
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test byte [0x64ab50d0], 8
jne 0x64a7b900
test edi, edi
je 0x64a7b8e8
test ebx, ebx
je 0x64a7b8e8
mov eax, dword [edi]
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x88]
mov dword [esp], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x6c
mov dword [esp + 4], ecx
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
jne 0x64a7b8c7
cmp dword [ebp - 0x88], 0x6c
je 0x64a7b938
mov edi, 1
test byte [0x64ab50d0], 8
jne 0x64a7ba10
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov edi, 2
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x64abb5df
mov dword [esp + 8], str.decode_image_emf
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a7b88b
cmp dword [ebp - 0x5c], 0x464d4520
jne 0x64a7b8c7
mov eax, dword [edi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 0x14
test eax, eax
js 0x64a7bb00
mov eax, dword fs:[0x18]
mov dword [ebp - 0xa0], eax
mov edx, eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x64a7bb18
mov eax, dword [edi]
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [ebp - 0x9c], ecx
mov dword [esp], edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x9c]
sub esp, 0x10
test eax, eax
jne 0x64a7b9e2
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x88]
je 0x64a7ba40
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x64a7b8c7
mov dword [esp + 0xc], str.Could_not_load_metafile_n
mov dword [esp + 8], str.decode_image_emf
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a7b8d9
mov dword [esp + 4], ecx
mov dword [ebp - 0x9c], ecx
mov dword [esp], eax
call sym._SetEnhMetaFileBits_8
mov ecx, dword [ebp - 0x9c]
sub esp, 8
mov esi, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
je 0x64a7b8c7
lea eax, [ebp - 0x8c]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], esi
call sym.gdiplus.dll_GdipCreateMetafileFromEmf
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x64a7bb22
mov eax, dword [ebp - 0x8c]
mov dword [ebx], eax
test byte [0x64ab50d0], 8
jne 0x64a7bad0
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0xc], 0x64abb5ff
mov dword [esp + 8], str.decode_image_emf
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a7babf
mov dword [esp], eax
call sym._hresult_to_status
mov edi, eax
test eax, eax
je 0x64a7baac
jmp 0x64a7b8cc
mov edi, 3
jmp 0x64a7b8cc
mov dword [esp], esi
call sym._DeleteEnhMetaFile_4
sub esp, 4
jmp 0x64a7b8cc