Function at 0x64a89bf0
Capabilities:
Access peb ldr_data
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, 0x78
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x4c], eax
test byte [0x64ab50d0], 8
jne 0x64a89e08
test edi, edi
je 0x64a89df0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x64a89df0
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], 0xe200b
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edi
call sym.gdiplus.dll_GdipBitmapLockBits
sub esp, 0x14
mov ecx, eax
test eax, eax
je 0x64a89c70
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
lea edx, [eax + 0x1f]
shl eax, 2
shr edx, 5
mov dword [ebp - 0x44], eax
lea esi, [edx*4]
add eax, esi
imul eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], esi
mov edx, dword fs:[0x18]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, 3
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x64a89dc0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
imul esi, eax
test eax, eax
lea esi, [ebx + esi]
mov dword [ebp - 0x54], esi
je 0x64a89d5c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x48], esi
xor esi, esi
nop
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
xor eax, eax
imul edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x20]
test edx, edx
je 0x64a89d25
mov dword [ebp - 0x3c], ebx
lea esi, [esi]
lea esi, [esi]
cmp byte [edi + eax*4 + 3], 0
js 0x64a89e40
add eax, 1
cmp eax, edx
jb 0x64a89d10
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov edi, dword [ebp - 0x48]
mov dword [esp], edi
call sym._memcpy
mov edx, dword [ebp - 0x44]
add dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
add edi, edx
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x50]
add esi, edi
cmp ecx, eax
jb 0x64a89cf0
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._CreateIcon_28
mov esi, dword [ebp - 0x4c]
sub esp, 0x1c
mov dword [esi], eax
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
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x3c]
sub esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
mov ecx, dword [ebp - 0x3c]
sub esp, 8
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
lea esp, [ebp - 0x10]
mov ecx, 2
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x64abbb7c
mov dword [esp + 8], str.GdipCreateHICONFromBitmap
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x64a89c19
mov ecx, eax
mov ebx, 1
mov edx, eax
add eax, 1
not ecx
shr edx, 3
and ecx, 7
add edx, esi
shl ebx, cl
mov ecx, ebx
mov ebx, dword [ebp - 0x3c]
or byte [ebx + edx], cl
mov edx, dword [ebp - 0x30]
cmp eax, edx
jb 0x64a89d10
jmp 0x64a89d25