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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x38], edx
test eax, eax
je 0x64a5682f
mov ebx, dword [edi + 0x68]
mov eax, edx
lea edx, [edi + 0x68]
mov esi, ecx
cmp ebx, edx
jne 0x64a5666a
jmp 0x64a567f0
mov ebx, dword [ebx]
cmp ebx, edx
je 0x64a567f0
cmp dword [ebx + 8], esi
jne 0x64a56660
cmp dword [ebx + 0xc], eax
jne 0x64a56660
cmp edx, ebx
mov dword [ebp - 0x2c], edx
je 0x64a567f0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipCloneRegion
sub esp, 8
test eax, eax
je 0x64a566a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x34]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x60]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDeleteRegion
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov dword [edi + 0x60], eax
mov eax, dword [ebx + 8]
sub eax, 1
mov dword [edi + 0x70], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x30], eax
fld dword [ebx + 0x24]
fstp dword [edi + 0x38]
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x50]
mov dword [edi + 0x74], eax
mov eax, dword [ebx + 0x54]
mov ebx, dword [edi + 0x68]
mov dword [edi + 0x78], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebx]
mov dword [ebp - 0x30], eax
cmp edx, ebx
je 0x64a567a8
mov dword [ebp - 0x3c], edi
mov edi, ecx
mov dword [ebp - 0x2c], esi
mov esi, ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x34], edx
mov ebx, eax
jmp 0x64a56793
mov dword [edi + 4], eax
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esi + 0x4c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDeleteRegion
sub esp, 4
mov dword [esp + 8], esi
mov esi, edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [edi]
sub esp, 0xc
cmp edi, ecx
je 0x64a56820
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x2c]
cmp dword [esi + 8], ecx
jne 0x64a56750
mov ecx, edi
mov ebx, esi
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDeleteRegion
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov eax, dword [edi + 0x14]
sub esp, 0xc
test eax, eax
je 0x64a567f0
cmp dword [edi + 0x18], 2
je 0x64a56800
xor eax, eax
jmp 0x64a56698
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], esi
mov dword [esp], eax
test edx, edx
jne 0x64a5683c
call sym._METAFILE_EndContainer
xor eax, eax
jmp 0x64a56698
mov ebx, edi
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x3c]
mov ecx, eax
jmp 0x64a567a8
lea esp, [ebp - 0xc]
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._METAFILE_RestoreGraphics
xor eax, eax
jmp 0x64a56698