Function at 0x64a94c00
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov edi, dword [eax + 0xc]
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x4c], edi
mov ecx, dword [ecx + 8]
test byte [0x64ab50d0], 8
jne 0x64a94cb0
test ebx, ebx
je 0x64a94d00
cmp esi, 1
je 0x64a94d10
mov edi, 0
jbe 0x64a94ca0
lea eax, [esi - 2]
cmp eax, 7
ja 0x64a94ed0
mov edx, esi
xor eax, eax
call sym._get_palette
mov esi, eax
test eax, eax
je 0x64a94f40
mov eax, dword [eax + 4]
mov edi, 1
cmp dword [ebx + 4], eax
jae 0x64a94f10
mov dword [esp + 8], esi
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 esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], edx
mov dword [ebp - 0x54], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [ebp - 0x50], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__d__d__d__p__n
mov dword [esp + 8], str.GdipInitializePalette
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
test ebx, ebx
jne 0x64a94c3c
lea esi, [esi]
mov edi, 2
jmp 0x64a94ca0
test edx, edx
je 0x64a94d00
cmp dword [ebx + 4], ecx
mov dword [ebp - 0x50], ecx
mov edi, 1
jb 0x64a94ca0
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], 0x21808
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [ebp - 0x54], edx
call sym.gdiplus.dll_GdipBitmapLockBits
sub esp, 0x14
mov edi, eax
test eax, eax
jne 0x64a94ca0
lea eax, [ebp - 0x3c]
mov dword [esp], 0x236
mov dword [esp + 4], eax
call sym._WICCreateImagingFactory_Proxy_8
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
sub esp, 8
test eax, eax
mov esi, eax
jne 0x64a94f4a
mov eax, dword [ebp - 0x3c]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov esi, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [esi + 0x24]
mov edx, dword [ebp - 0x50]
sub esp, 8
test eax, eax
mov esi, eax
jne 0x64a94e95
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x28]
mov esi, dword [eax]
lea eax, [ebp - 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], edi
imul eax, edi
mov dword [esp + 0xc], 0x64abe904
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [esi + 0x50]
mov edx, dword [ebp - 0x50]
sub esp, 0x20
test eax, eax
mov esi, eax
jne 0x64a94e81
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], ecx
call dword [eax + 0x14]
mov edx, dword [ebp - 0x50]
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x64a94e6d
mov eax, dword [ebp - 0x38]
mov dword [ebx], 0
lea edi, [ebx + 4]
mov dword [ebp - 0x4c], edx
mov ecx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + 8]
sub esp, 8
mov eax, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 4], ecx
mov ebx, dword [ebp - 0x38]
mov dword [esp], ebx
call dword [eax + 0x24]
mov edx, dword [ebp - 0x4c]
sub esp, 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], edx
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x4c]
sub esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], edx
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x4c]
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
call sym.gdiplus.dll_GdipBitmapUnlockBits
sub esp, 8
mov dword [esp], esi
call sym._hresult_to_status
mov edi, eax
jmp 0x64a94ca0
test byte [0x64ab50d0], 1
je 0x64a94d00
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.unknown_palette_type__d_n
mov dword [esp + 8], str.GdipInitializePalette
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_5
jmp 0x64a94d00
mov eax, dword [esi]
lea edx, [esi + 8]
add ebx, 8
xor edi, edi
mov dword [ebx - 8], eax
mov eax, dword [esi + 4]
mov dword [ebx - 4], eax
shl eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym._memcpy
jmp 0x64a94c7c
mov edi, 3
jmp 0x64a94ca0
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
jmp 0x64a94eb0