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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], eax
test byte [0x64ab5100], 8
jne 0x64aa0bb8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], edx
sub eax, 3
cmp eax, 2
ja case.0x64aa0bad.0
test esi, esi
je case.0x64aa0bad.0
test ebx, ebx
je case.0x64aa0bad.0
mov dword [esp + 4], 8
mov dword [esp], esi
call sym._GetDeviceCaps_8
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
sub esp, 8
fstp dword [ebp - 0x50]
mov dword [esp + 4], 4
mov dword [esp], esi
call sym._GetDeviceCaps_8
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
sub esp, 8
fdivr dword [ebp - 0x50]
fld qword [str.ffffff9_]
fmulp st(1)
fstp dword [ebp - 0x58]
mov dword [esp + 4], 0xa
mov dword [esp], esi
call sym._GetDeviceCaps_8
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
sub esp, 8
fstp dword [ebp - 0x50]
mov dword [esp + 4], 6
mov dword [esp], esi
call sym._GetDeviceCaps_8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x54]
sub esp, 8
test edi, edi
fdivr dword [ebp - 0x50]
fld qword [str.ffffff9_]
fmulp st(1)
fstp dword [ebp - 0x50]
je 0x64aa0c50
mov eax, dword [ebp - 0x48]
cmp eax, 7
ja case.0x64aa0bad.0
jmp dword [eax*4 + 0x64abf6ec]
mov eax, edx
mov dword [ebp - 0x54], edx
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [ebp - 0x50], eax
mov dword [esp], edi
call sym._debugstr_rectf
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x28], ebx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp - 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s__p__d__s__d__s__p_n
mov dword [esp + 8], str.GdipRecordMetafileFileName
mov dword [esp + 4], 0x64ab5100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_9
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x54]
sub eax, 3
mov dword [ebp - 0x4c], edx
cmp eax, 2
jbe 0x64aa0b00
mov eax, 2
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
xor eax, eax
lea esi, [esi]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._CreateEnhMetaFileW_16
mov edx, eax
mov dword [ebp - 0x44], eax
sub esp, 0x10
mov eax, 1
test edx, edx
je 0x64aa0c3e
mov dword [esp + 8], 0x2ec
mov dword [esp + 4], 8
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_HeapAlloc]
mov dword [ebx], eax
sub esp, 0xc
test eax, eax
je 0x64aa1000
fld dword [ebp - 0x58]
mov edx, dword [ebp - 0x40]
mov dword [eax + 8], 2
mov eax, dword [ebx]
mov dword [eax + 0x1c], 0
mov eax, dword [ebx]
mov dword [eax + 0x28], 0
mov eax, dword [ebx]
fstp dword [eax + 0x2c]
fld dword [ebp - 0x50]
mov eax, dword [ebx]
fstp dword [eax + 0x30]
mov eax, dword [ebx]
fld1
mov dword [eax + 0x3c], 0
mov eax, dword [ebx]
mov dword [eax + 0x38], 0
mov eax, dword [ebx]
fst dword [eax + 0x44]
mov eax, dword [ebx]
fstp dword [eax + 0x40]
mov eax, dword [ebx]
mov dword [eax + 0x48], 2
mov eax, dword [ebx]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx]
mov dword [eax + 0x58], edx
mov eax, dword [ebx]
mov dword [eax + 0x60], 0
mov eax, dword [ebx]
mov dword [eax + 0x64], 0
mov eax, dword [ebx]
mov dword [eax + 0x68], 0
mov eax, dword [ebx]
mov dword [eax + 0x88], 0x60
mov eax, dword [ebx]
mov dword [eax + 0x50], 0
mov dword [esp], edx
mov dword [esp + 4], 2
call sym._GetDeviceCaps_8
mov ecx, dword [ebx]
xor edx, edx
sub esp, 8
cmp eax, 2
sete dl
mov dword [ecx + 0x8c], edx
mov dword [esp + 4], 0x58
mov edx, dword [ebp - 0x44]
mov dword [esp], edx
call sym._GetDeviceCaps_8
mov edx, dword [ebx]
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
sub esp, 8
fstp dword [edx + 0x90]
mov dword [esp + 4], 0x5a
mov edx, dword [ebp - 0x44]
mov dword [esp], edx
call sym._GetDeviceCaps_8
mov edx, dword [ebx]
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
sub esp, 8
fstp dword [edx + 0x94]
mov eax, dword [ebx]
lea edx, [eax + 0xe4]
mov dword [eax + 0xe8], edx
mov dword [eax + 0xe4], edx
test edi, edi
je 0x64aa0f70
mov edi, dword [ebx]
mov eax, dword [edi + 0x4c]
sub eax, 4
cmp eax, 1
jbe 0x64aa0de0
xor eax, eax
jmp 0x64aa0c3e
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
mov edx, 0x4001
mov dword [esp], eax
mov eax, edi
call sym._METAFILE_AllocateRecord
test eax, eax
jne 0x64aa0fa8
cmp dword [edi + 0x4c], 5
mov ebx, dword [ebp - 0x2c]
jne 0x64aa0e11
mov eax, 1
mov word [ebx + 2], ax
mov dword [ebx + 0xc], 0xdbc01002
mov dword [esp + 4], 2
mov dword [esp], esi
call sym._GetDeviceCaps_8
sub esp, 8
cmp eax, 1
sete al
movzx eax, al
mov dword [ebx + 0x10], eax
mov dword [esp + 4], 0x58
mov dword [esp], esi
call sym._GetDeviceCaps_8
sub esp, 8
mov dword [ebx + 0x14], eax
mov dword [esp + 4], 0x5a
mov dword [esp], esi
call sym._GetDeviceCaps_8
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x68]
sub esp, 8
cmp eax, 4
jbe 0x64aa0dd6
mov edx, dword [edi + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [edi + 0x58]
mov dword [esp], eax
call sym._GdiComment_12
mov dword [edi + 0x68], 4
xor eax, eax
sub esp, 0xc
jmp 0x64aa0c3e
fld dword [0x64abfe40]
fld st(0)
lea esi, [esi]
nop
fld dword [edi]
fnstcw word [ebp - 0x3a]
movzx eax, word [ebp - 0x3a]
fmul st(1)
or ah, 0xc
mov word [ebp - 0x3c], ax
fldcw word [ebp - 0x3c]
fistp dword [ebp - 0x48]
fldcw word [ebp - 0x3a]
fld dword [edi + 4]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
fmul st(2)
fldcw word [ebp - 0x3c]
fistp dword [ebp - 0x4c]
fldcw word [ebp - 0x3a]
fmul dword [edi + 8]
fild dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
faddp st(1)
fldcw word [ebp - 0x3c]
fistp dword [ebp - 0x20]
fldcw word [ebp - 0x3a]
fmul dword [edi + 0xc]
fild dword [ebp - 0x4c]
faddp st(1)
fldcw word [ebp - 0x3c]
fistp dword [ebp - 0x1c]
fldcw word [ebp - 0x3a]
jmp 0x64aa0c58
fld dword [0x64abfe50]
fld st(0)
jmp 0x64aa0eb0
fld dword [0x64abfe40]
fld dword [ebp - 0x58]
fdivr st(1)
fxch st(1)
fdiv dword [ebp - 0x50]
fxch st(1)
jmp 0x64aa0eb0
fld1
fld st(0)
jmp 0x64aa0eb0
fld dword [0x64abfe58]
fld st(0)
jmp 0x64aa0eb0
fld dword [0x64abfe54]
fld st(0)
jmp 0x64aa0eb0
mov eax, dword [ebx]
fld1
fchs
mov dword [eax + 0x70], 1
mov eax, dword [ebx]
mov dword [eax + 0x74], 0
mov eax, dword [ebx]
mov dword [eax + 0x78], 0
mov eax, dword [ebx]
fst dword [eax + 0x7c]
mov eax, dword [ebx]
fstp dword [eax + 0x80]
jmp 0x64aa0dc9
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sym._CloseEnhMetaFile_4
sub esp, 4
mov dword [esp], eax
call sym._DeleteEnhMetaFile_4
mov edx, dword [ebx]
sub esp, 4
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], 0
sub esp, 0xc
mov eax, 3
jmp 0x64aa0c3e
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sym._CloseEnhMetaFile_4
sub esp, 4
mov dword [esp], eax
call sym._DeleteEnhMetaFile_4
sub esp, 4
jmp 0x64aa0fed