Function at 0x64a7b4e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
test byte [0x64ab50d0], 8
jne 0x64a7b660
test ebx, ebx
je 0x64a7b650
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x64a7b650
mov eax, dword [ebx]
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x40]
mov dword [esp + 8], 0x12
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0xc]
sub esp, 0x10
mov ecx, eax
test eax, eax
jne 0x64a7b630
cmp dword [ebp - 0x44], 0x12
jne 0x64a7b630
mov eax, dword [ebx]
cmp dword [ebp - 0x40], 0x9ac6cdd7
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov edx, dword [eax + 0x14]
je 0x64a7b698
mov dword [ebp - 0x54], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x54]
sub esp, 0x14
test eax, eax
js 0x64a7b770
mov eax, dword [ebp - 0x3a]
mov dword [ebp - 0x54], ecx
mov edi, dword fs:[0x18]
add eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x64a7b858
mov eax, dword [ebx]
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0x3a]
mov dword [esp + 4], edx
lea esi, [ecx + ecx]
mov dword [esp + 8], esi
mov dword [ebp - 0x50], edx
mov dword [esp], ebx
call dword [eax + 0xc]
mov edx, dword [ebp - 0x50]
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x64a7b607
mov eax, dword [ebp - 0x3a]
mov ecx, dword [ebp - 0x54]
add eax, eax
cmp eax, dword [ebp - 0x44]
je 0x64a7b7d0
mov dword [esp + 8], edx
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
lea esi, [esi]
nop
mov esi, 1
test byte [0x64ab50d0], 8
jne 0x64a7b740
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov esi, 2
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64abb5df
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.decode_image_wmf
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a7b4f9
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call edx
sub esp, 0x14
test eax, eax
js 0x64a7b770
mov eax, dword [ebx]
lea edx, [ebp - 0x2e]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x16
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
jne 0x64a7b630
cmp dword [ebp - 0x44], 0x16
jne 0x64a7b630
mov eax, dword [ebx]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x12
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0xc]
sub esp, 0x10
test eax, eax
jne 0x64a7b630
cmp dword [ebp - 0x44], 0x12
jne 0x64a7b630
mov dword [ebp - 0x50], 0x16
mov eax, dword [ebx]
mov ecx, 1
mov dword [ebp - 0x4c], 0
jmp 0x64a7b561
mov dword [esp + 0xc], str.Could_not_load_metafile_n
mov dword [esp + 8], str.decode_image_wmf
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a7b642
mov dword [esp], eax
call sym._hresult_to_status
mov esi, eax
test eax, eax
jne 0x64a7b635
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
test byte [0x64ab50d0], 8
jne 0x64a7b7a0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], 0x64abb5ff
mov dword [esp + 8], str.decode_image_wmf
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a7b795
mov dword [ebp - 0x54], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x50], edx
mov dword [esp], eax
call sym._SetMetaFileBitsEx_8
mov edx, dword [ebp - 0x50]
sub esp, 8
mov ebx, eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
je 0x64a7b630
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x2e]
lea edx, [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
test ecx, ecx
mov dword [esp + 4], 1
cmove eax, esi
mov dword [esp + 8], eax
call sym.gdiplus.dll_GdipCreateMetafileFromWmf
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x64a7b782
mov dword [esp], ebx
call sym._DeleteMetaFile_4
sub esp, 4
jmp 0x64a7b635
mov esi, 3
jmp 0x64a7b635