Function at 0x64a47da0
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, 0x58
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x2c], eax
test byte [0x64ab5018], 8
jne 0x64a47de8
test ebx, ebx
je 0x64a47e20
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x64a47e20
mov eax, dword [ebx]
cmp eax, 4
ja case.default.0x64a47ddb
jmp dword [eax*4 + 0x64ab717c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64ab70e4
mov dword [esp + 8], str.GdipCloneBrush
mov dword [esp + 4], 0x64ab5018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test ebx, ebx
jne 0x64a47dc9
lea esi, [esi]
nop
mov esi, 2
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword fs:[0x18]
mov dword [ebp - 0x30], eax
mov dword [esp + 8], 0x5c
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
call eax
mov edx, eax
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [eax], edx
test edx, edx
je 0x64a485e3
mov eax, dword [ebx]
lea edi, [edx + 4]
mov ecx, edx
mov esi, ebx
and edi, 0xfffffffc
mov dword [edx], eax
sub ecx, edi
mov eax, dword [ebx + 0x58]
sub esi, ecx
add ecx, 0x5c
mov dword [edx + 0x58], eax
shr ecx, 2
lea eax, [edx + 4]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.gdiplus.dll_GdipClonePath
mov edx, dword [ebp - 0x3c]
sub esp, 8
test eax, eax
mov esi, eax
jne 0x64a48408
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x3c], edx
mov dword [edx + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edx + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edx + 0x4c], eax
mov eax, dword [ebx + 0x50]
mov dword [edx + 0x50], eax
mov eax, dword [ebx + 0x54]
mov dword [edx + 0x54], eax
mov eax, dword [ebx + 0x58]
mov dword [edx + 0x58], eax
mov esi, dword [ebx + 0x2c]
mov dword [edx + 0x2c], esi
shl esi, 2
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [edx + 0x24], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov ecx, dword [edx + 0x34]
mov dword [edx + 0x28], eax
mov dword [esp + 4], 8
lea eax, [ecx*4]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov edi, dword [edx + 0x40]
mov dword [edx + 0x30], eax
test edi, edi
jne 0x64a48318
mov eax, dword [edx + 0x24]
test eax, eax
je 0x64a485f0
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x64a485f0
mov ecx, dword [edx + 0x30]
test ecx, ecx
je 0x64a485f0
test edi, edi
je 0x64a48380
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x64a485f0
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x64a485f0
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x38], edx
shl edi, 2
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x28]
mov eax, dword [edx + 0x28]
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov esi, dword [ebx + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x30]
mov dword [esp + 4], esi
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x38]
mov eax, dword [edx + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x3c]
mov edx, dword [ebx + 0x3c]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
jmp 0x64a4815d
mov dword [esp + 8], 0x54
mov dword [esp + 4], 8
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x30], edi
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], eax
call eax
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x64a485e3
mov eax, dword [ebx]
lea edi, [edx + 4]
mov ecx, edx
mov esi, ebx
and edi, 0xfffffffc
mov dword [edx], eax
sub ecx, edi
mov eax, dword [ebx + 0x50]
sub esi, ecx
add ecx, 0x54
mov dword [edx + 0x50], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], edx
mov esi, dword [edx + 0x2c]
mov dword [esp + 4], 8
shl esi, 2
mov dword [esp + 8], esi
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [edx + 0x24], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov ecx, dword [edx + 0x38]
mov dword [edx + 0x28], eax
test ecx, ecx
jne 0x64a48430
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x64a4853a
test eax, eax
je 0x64a4853c
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x38], edx
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [edx + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [edx + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edx + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edx + 0x4c], eax
mov eax, dword [ebx + 0x50]
mov dword [edx + 0x50], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x28]
mov eax, dword [edx + 0x28]
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
test byte [0x64ab5018], 8
jne 0x64a482c8
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.gdiplus.dll_GdipCreateHatchBrush
sub esp, 0x10
lea esp, [ebp - 0x10]
mov esi, eax
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipGetImageWidth
sub esp, 8
mov esi, eax
test eax, eax
jne 0x64a47e25
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipGetImageHeight
sub esp, 8
mov esi, eax
test eax, eax
jne 0x64a47e25
lea eax, [ebp - 0x24]
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
xor edx, edx
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x38]
fstp dword [esp + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x38]
fstp dword [esp + 0x10]
fldz
fst dword [esp + 0xc]
fstp dword [esp + 8]
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipCreateTextureIA
sub esp, 0x1c
mov esi, eax
test eax, eax
jne 0x64a486a0
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov dword [eax + 4], edx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x18], edx
mov dword [edi], eax
jmp 0x64a47e25
mov dword [esp + 8], 8
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 edi, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x64a485e3
mov edx, dword [ebx]
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
jmp 0x64a4815d
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov eax, dword [eax]
mov dword [esp + 0xc], 0x64ab7000
mov dword [esp + 8], str.GdipCloneBrush
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x64ab5018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64a4816c
test byte [0x64ab5018], 2
jne 0x64a483d8
mov esi, 6
jmp 0x64a47e25
lea ecx, [edi*4]
mov dword [esp + 8], ecx
mov dword [ebp - 0x40], ecx
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov edx, dword [ebp - 0x38]
call edx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub esp, 0xc
mov dword [edx + 0x38], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov edx, dword [ebp - 0x38]
call edx
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [edx + 0x3c], eax
jmp 0x64a47f6c
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x38], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x28]
mov eax, dword [edx + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x30]
mov edx, dword [ebx + 0x30]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sym._memcpy
jmp 0x64a4815d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.not_implemented_for_brush_type__d_n
mov dword [esp + 8], str.GdipCloneBrush
mov dword [esp + 4], 0x64ab5018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x64a48309
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x64a47e25
lea edi, [ecx*4]
mov dword [ebp - 0x3c], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov edx, dword [ebp - 0x38]
call edx
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [edx + 0x30], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov edx, dword [ebp - 0x38]
call edx
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov ecx, dword [edx + 0x24]
mov dword [edx + 0x34], eax
test ecx, ecx
je 0x64a4853a
cmp dword [edx + 0x28], 0
je 0x64a4853c
cmp dword [edx + 0x30], 0
je 0x64a4853c
test eax, eax
je 0x64a4853c
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x38], edx
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [edx + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [edx + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edx + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edx + 0x4c], eax
mov eax, dword [ebx + 0x50]
mov dword [edx + 0x50], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x28]
mov eax, dword [edx + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x30]
mov eax, dword [edx + 0x30]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x34]
mov eax, dword [edx + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x38]
jmp 0x64a48158
xor ecx, ecx
mov dword [ebp - 0x2c], edx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x28]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
mov esi, 3
jmp 0x64a47e25
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], edx
mov esi, dword fs:[0x18]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDeletePath
mov edx, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov eax, dword [edx + 0x24]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x28]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x38]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, dword [edx + 0x3c]
jmp 0x64a485ac
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x64a47e25