Function at 0x64a8b410
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, 0xc8
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
test byte [0x64ab50d0], 8
jne 0x64a8b760
test edi, edi
je 0x64a8b740
lea eax, [ebp - 0x84]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._GetIconInfo_8
sub esp, 8
test eax, eax
je 0x64a8b740
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x64a8b798
lea edx, [ebp - 0x70]
mov dword [esp + 4], 0x18
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._GetObjectA_12
sub esp, 0xc
test eax, eax
je 0x64a8b840
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x6c]
mov ebx, eax
neg ebx
cmovs ebx, eax
test ecx, ecx
je 0x64a8b7c0
lea eax, [esi*4]
mov dword [ebp - 0xa4], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x26200a
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [ebp - 0x9c], eax
sub esp, 0x18
test eax, eax
jne 0x64a8b7a0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x94]
mov dword [esp + 0xc], 0x26200a
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapLockBits
mov dword [ebp - 0x9c], eax
sub esp, 0x14
test eax, eax
jne 0x64a8b8aa
mov edx, dword [ebp - 0x74]
mov eax, ebx
mov dword [ebp - 0x40], 0x28
mov dword [ebp - 0x3c], esi
neg eax
test edx, edx
je 0x64a8b7c7
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x200001
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp], 0
call sym._CreateCompatibleDC_4
mov dword [ebp - 0xa0], eax
mov ecx, eax
mov eax, dword [ebp - 0x74]
sub esp, 4
mov dword [esp + 0x18], 0
test eax, eax
je 0x64a8b7ce
lea edx, [ebp - 0x40]
mov dword [ebp - 0xa8], edx
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x48]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._GetDIBits_28
sub esp, 0x1c
cmp word [ebp - 0x5e], 0x20
je 0x64a8b8d8
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x64a8b870
mov edx, dword [ebp - 0xa4]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
imul edx, ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x74]
sub esp, 0xc
mov dword [ebp - 0xa4], eax
test edx, edx
mov dword [esp + 0x18], 0
je 0x64a8b930
mov esi, dword [ebp - 0xa8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sym._GetDIBits_28
mov edx, dword [ebp - 0x48]
sub esp, 0x1c
test ebx, ebx
je 0x64a8b6ca
lea eax, [ebx*4]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edi
xor esi, esi
mov edi, eax
lea esi, [esi]
nop
xor eax, eax
lea esi, [esi]
cmp dword [ecx + eax*4], 0
jne 0x64a8b810
or dword [edx + eax*4], 0xff000000
add eax, 1
cmp eax, ebx
jne 0x64a8b6a0
add esi, 1
add ecx, edi
add edx, dword [ebp - 0x50]
cmp esi, ebx
jne 0x64a8b698
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa4]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
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 esi, [esi]
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sym._DeleteDC_4
mov eax, dword [ebp - 0x74]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
lea eax, [ebp - 0x58]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
sub esp, 8
jmp 0x64a8b74a
mov dword [ebp - 0x9c], 2
mov eax, dword [ebp - 0x9c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x64abbbee
mov dword [esp + 8], str.GdipCreateBitmapFromHICON
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a8b439
mov eax, dword [ebp - 0x78]
jmp 0x64a8b469
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
jmp 0x64a8b74a
sar ebx, 1
jmp 0x64a8b4a3
add eax, eax
jmp 0x64a8b55a
lea eax, [ebp - 0x40]
mov dword [ebp - 0xa8], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sym._GetDIBits_28
sub esp, 0x1c
jmp 0x64a8b5f2
mov dword [edx + eax*4], 0
add eax, 1
cmp eax, ebx
jne 0x64a8b6a0
add esi, 1
add ecx, edi
add edx, dword [ebp - 0x50]
cmp esi, ebx
jne 0x64a8b698
jmp 0x64a8b6c4
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
mov dword [ebp - 0x9c], 1
sub esp, 4
jmp 0x64a8b74a
mov edx, dword [ebp - 0x48]
test ebx, ebx
je 0x64a8b6f8
xor esi, esi
lea esi, [esi]
xor eax, eax
lea esi, [esi]
or dword [edx + eax*4], 0xff000000
mov ecx, eax
add eax, 1
cmp ebx, eax
jne 0x64a8b888
add edx, dword [ebp - 0x50]
lea eax, [esi + 1]
cmp ecx, esi
je 0x64a8b6f8
mov esi, eax
jmp 0x64a8b880
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [edi]
sub esp, 4
mov dword [esp], eax
call sym.gdiplus.dll_GdipDisposeImage
sub esp, 4
jmp 0x64a8b74a
mov edx, dword [ebp - 0x48]
mov eax, edx
test esi, esi
je 0x64a8b5f2
xor ecx, ecx
test ebx, ebx
je 0x64a8b951
mov dword [ebp - 0xac], edx
xor edx, edx
lea esi, [esi]
nop
cmp dword [eax], 0xffffff
ja 0x64a8b6f8
add edx, 1
add eax, 4
cmp ebx, edx
jne 0x64a8b8f8
add ecx, 1
cmp esi, ecx
jne 0x64a8b8f1
cmp dword [ebp - 0x78], 0
mov edx, dword [ebp - 0xac]
jne 0x64a8b5fd
xor esi, esi
jmp 0x64a8b880
mov eax, dword [ebp - 0xa8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xa4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
jmp 0x64a8b65d
cmp dword [ebp - 0x78], 0
jne 0x64a8b5fd
jmp 0x64a8b6f8