Function at 0x64a8b040
Capabilities:
Get process heap flags

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, 0x48
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x64ab50d0], 8
jne 0x64a8b190
test ebx, ebx
je 0x64a8b179
test esi, esi
je 0x64a8b179
mov eax, dword [ebx + 8]
cmp eax, 1
je 0x64a8b1f0
cmp eax, 2
jne 0x64a8b170
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x64a8b170
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], 0x2ec
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x64a8b2b9
mov dword [eax + 8], 2
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x20], 1
mov dword [edi + 0x1c], eax
fld dword [ebx + 0x2c]
fstp dword [edi + 0x2c]
fld dword [ebx + 0x30]
fstp dword [edi + 0x30]
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edi + 0x4c], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym._CopyEnhMetaFileW_8
lea ecx, [edi + 0xe4]
mov dword [edi + 0x50], eax
sub esp, 8
mov dword [edi + 0xe8], ecx
mov dword [edi + 0xe4], ecx
test eax, eax
je 0x64a8b298
mov dword [esi], edi
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
test byte [0x64ab50d0], 4
jne 0x64a8b1c8
lea esp, [ebp - 0x10]
mov eax, 2
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64abbbee
mov dword [esp + 8], str.GdipCloneImage
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a8b066
mov dword [esp + 0xc], str.GpImage_with_no_image_data__metafile_in_wrong_state___n
mov dword [esp + 8], str.GdipCloneImage
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1_5
jmp 0x64a8b179
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x20], eax
test byte [0x64ab50d0], 8
jne 0x64a8b240
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
fild dword [ebp - 0x1c]
fstp dword [esp + 0xc]
fild dword [ebp - 0x20]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call sym.gdiplus.dll_GdipCloneBitmapArea
sub esp, 0x1c
jmp 0x64a8b15e
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.__i__i__i__i_0x_x__p__p__n
mov dword [esp + 8], str.GdipCloneBitmapAreaI
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a8b208
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, 3
jmp 0x64a8b15e