Function at 0x64a9b7d0
Capabilities:
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
sub eax, 4
cmp eax, 1
jbe 0x64a9bc48
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x5c], 0
mov dword [esp], eax
call sym._CloseEnhMetaFile_4
mov edx, dword [ebx + 0x60]
mov dword [ebx + 0x58], 0
sub esp, 4
mov dword [ebx + 0x50], eax
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
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 edi
mov dword [ebx + 0x60], 0
mov esi, dword [ebx + 0x50]
mov dword [ebx + 0x64], 0
sub esp, 0xc
test byte [0x64ab5100], 8
jne 0x64a9bca0
test esi, esi
je 0x64a9bcda
lea eax, [ebp - 0xa4]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._GdipGetMetafileHeaderFromEmf_8.part.0
sub esp, 8
mov esi, eax
test eax, eax
jne 0x64a9bc20
mov edx, dword [ebx + 0x70]
test edx, edx
je 0x64a9bd4c
fld dword [ebx + 0x74]
fld dword [ebx + 0x7c]
fcomi st(1)
jb 0x64a9bd48
fld dword [ebp - 0x94]
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x6c]
fstp dword [ebp - 0xc0]
fld dword [ebp - 0x90]
cmp edx, eax
mov dword [ebp - 0xc8], eax
fstp dword [ebp - 0xc4]
fld dword [ebx + 0x78]
fstp dword [ebp - 0xb4]
fld dword [ebx + 0x80]
fstp dword [ebp - 0xb8]
jge 0x64a9b9d8
cmp dword [ebp - 0xbc], ecx
mov dword [ebp - 0xcc], ecx
jge 0x64a9b9e0
fstp dword [ebp - 0xd8]
fstp qword [esp + 8]
mov dword [ebp - 0xd0], edx
fild dword [ebp - 0xd0]
mov edx, dword [sym.imp.ucrtbase.dll_fmin]
fstp qword [esp]
mov dword [ebp - 0xd4], edx
call edx
fstp dword [ebp - 0xd0]
fld dword [ebp - 0xd0]
fstp dword [ebx + 0x74]
fld dword [ebp - 0xb4]
fstp qword [esp + 8]
fild dword [ebp - 0xbc]
fstp qword [esp]
mov edx, dword [ebp - 0xd4]
call edx
fstp dword [ebp - 0xb4]
fld dword [ebp - 0xb4]
fstp dword [ebx + 0x78]
fld dword [ebp - 0xd8]
fstp qword [esp + 8]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xbc], eax
fild dword [ebp - 0xbc]
mov eax, dword [sym.imp.ucrtbase.dll_fmax]
fstp qword [esp]
mov dword [ebp - 0xc8], eax
call eax
fstp dword [ebp - 0xbc]
fld dword [ebp - 0xbc]
fstp dword [ebx + 0x7c]
fld dword [ebp - 0xb8]
fstp qword [esp + 8]
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], ecx
fild dword [ebp - 0xb8]
fstp qword [esp]
mov eax, dword [ebp - 0xc8]
call eax
fstp dword [ebp - 0xb8]
fld dword [ebp - 0xb8]
fstp dword [ebx + 0x80]
fld dword [ebp - 0xbc]
fld dword [ebp - 0xd0]
jmp 0x64a9b9e2
fxch st(1)
jmp 0x64a9b9e2
fxch st(1)
fstp dword [ebp - 0xcc]
fstp dword [ebp - 0xc8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym._GetEnhMetaFileBits_12
sub esp, 0xc
mov ecx, eax
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov dword [ebp - 0xbc], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0xd0], eax
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x64a9be70
fld dword [0x64abfe40]
fld dword [ebp - 0xc0]
fdivr st(1)
fstp dword [ebp - 0xd4]
fdiv dword [ebp - 0xc4]
fstp dword [ebp - 0xc4]
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym._GetEnhMetaFileBits_12
fld dword [ebp - 0xd4]
fld dword [ebp - 0xcc]
fnstcw word [ebp - 0xaa]
mov edx, dword [ebp - 0xc0]
sub esp, 0xc
movzx eax, word [ebp - 0xaa]
fmul st(1)
and ah, 0xf3
or ah, 4
mov word [ebp - 0xac], ax
movzx eax, word [ebp - 0xaa]
fldcw word [ebp - 0xac]
frndint
fldcw word [ebp - 0xaa]
or ah, 0xc
mov word [ebp - 0xae], ax
fldcw word [ebp - 0xae]
fistp dword [edx + 0x18]
fldcw word [ebp - 0xaa]
fld dword [ebp - 0xb4]
fld dword [ebp - 0xc4]
fmul st(1), st(0)
fxch st(1)
fldcw word [ebp - 0xac]
frndint
fldcw word [ebp - 0xaa]
fldcw word [ebp - 0xae]
fistp dword [edx + 0x1c]
fldcw word [ebp - 0xaa]
fnstcw word [ebp - 0xaa]
fld dword [ebp - 0xc8]
movzx eax, word [ebp - 0xaa]
and ah, 0xf3
fmulp st(2)
fxch st(1)
or ah, 8
mov word [ebp - 0xb0], ax
fldcw word [ebp - 0xb0]
frndint
fldcw word [ebp - 0xaa]
fldcw word [ebp - 0xae]
fistp dword [edx + 0x20]
fldcw word [ebp - 0xaa]
fmul dword [ebp - 0xb8]
fldcw word [ebp - 0xb0]
frndint
fldcw word [ebp - 0xaa]
fldcw word [ebp - 0xae]
fistp dword [edx + 0x24]
fldcw word [ebp - 0xaa]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xb4], edx
mov dword [esp], ecx
call sym._SetEnhMetaFileBits_8
mov edx, dword [ebp - 0xb4]
sub esp, 8
test eax, eax
mov dword [ebp - 0xb8], eax
je 0x64a9be50
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym._DeleteEnhMetaFile_4
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb4]
sub esp, 4
mov dword [ebx + 0x50], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edx, dword [ebx + 0x50]
sub esp, 0xc
test byte [0x64ab5100], 8
jne 0x64a9be8c
test edx, edx
je 0x64a9bcda
lea eax, [ebp - 0xa4]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._GdipGetMetafileHeaderFromEmf_8.part.0
sub esp, 8
test eax, eax
je 0x64a9bd4c
mov esi, eax
lea esi, [esi]
nop
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x64a9bc39
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx + 0x6c], 0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0xa4]
mov ecx, 0xc
mov edx, 0x4002
mov dword [esp], eax
mov eax, ebx
call sym._METAFILE_AllocateRecord
mov esi, eax
test eax, eax
jne 0x64a9bce8
mov eax, dword [ebx + 0x68]
cmp eax, 4
jbe 0x64a9b7ee
mov edx, dword [ebx + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x58]
mov dword [esp], eax
call sym._GdiComment_12
mov dword [ebx + 0x68], 4
sub esp, 0xc
jmp 0x64a9b7ee
lea eax, [ebp - 0xa4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x64abf273
mov dword [esp + 8], str.GdipGetMetafileHeaderFromEmf
mov dword [esp + 4], 0x64ab5100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_9
test esi, esi
jne 0x64a9b85c
mov esi, 2
jmp 0x64a9bc20
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x5c], 0
mov dword [esp], eax
call sym._CloseEnhMetaFile_4
mov edx, dword [ebx + 0x60]
mov dword [ebx + 0x58], 0
sub esp, 4
mov dword [ebx + 0x50], eax
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]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
sub esp, 0xc
jmp 0x64a9bc20
fstp st(0)
fstp st(0)
fild dword [ebp - 0x8c]
mov eax, dword [ebx + 0x6c]
fstp dword [ebx + 0x38]
fild dword [ebp - 0x88]
fstp dword [ebx + 0x3c]
fild dword [ebp - 0x84]
fstp dword [ebx + 0x40]
fild dword [ebp - 0x80]
fstp dword [ebx + 0x44]
test eax, eax
je 0x64a9bc39
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym._GetEnhMetaFileBits_12
sub esp, 0xc
mov ecx, eax
mov dword [ebp - 0xb4], ecx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x64a9be70
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym._GetEnhMetaFileBits_12
mov eax, dword [ebx + 0x6c]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0xb4]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xb8]
mov dword [esp + 4], edx
mov dword [ebp - 0xb4], edx
mov dword [esp], eax
call dword [ecx + 0x10]
mov edx, dword [ebp - 0xb4]
sub esp, 0x10
test eax, eax
js 0x64a9be7a
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 edi
sub esp, 0xc
jmp 0x64a9bc20
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov esi, 3
jmp 0x64a9bc20
mov dword [esp], eax
call sym._hresult_to_status
mov edx, dword [ebp - 0xb4]
mov esi, eax
jmp 0x64a9be26
lea eax, [ebp - 0xa4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [ebp - 0xb4], edx
mov dword [esp + 0xc], 0x64abf273
mov dword [esp + 8], str.GdipGetMetafileHeaderFromEmf
mov dword [esp + 4], 0x64ab5100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_9
mov edx, dword [ebp - 0xb4]
jmp 0x64a9bbf1