Function at 0x69058d30
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, 0xd8
mov eax, dword [ecx + 4]
test byte [0x6907a0e8], 8
mov ebx, dword [ecx]
mov dword [ebp - 0x9c], eax
jne 0x69059170
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x69059148
mov dword [esp], ebx
lea eax, [ebp - 0x84]
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_GetIconInfo]
sub esp, 8
test eax, eax
je 0x69059148
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x690591a8
mov dword [esp], eax
lea edx, [ebp - 0x70]
mov dword [esp + 8], edx
mov edx, 0x18
mov dword [esp + 4], edx
call dword [sym.imp.gdi32.dll_GetObjectA]
sub esp, 0xc
test eax, eax
je 0x69059250
mov eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x6c]
sar eax, 0x1f
xor ebx, eax
sub ebx, eax
test edi, edi
je 0x690591d0
mov ecx, dword [ebp - 0x9c]
lea eax, [esi*4]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x14], ecx
mov ecx, 0x26200a
mov dword [esp + 0xc], ecx
mov dword [esp], esi
mov dword [ebp - 0xa0], eax
call sym.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [ebp - 0xa4], eax
sub esp, 0x18
test eax, eax
jne 0x690591b0
lea eax, [ebp - 0x58]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, 0x26200a
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
lea eax, [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapLockBits
mov dword [ebp - 0xa4], eax
sub esp, 0x14
test eax, eax
jne 0x690592bf
mov dword [ebp - 0x40], 0x28
mov edx, dword [ebp - 0x74]
mov eax, ebx
mov dword [ebp - 0x3c], esi
neg eax
test edx, edx
je 0x690591d7
mov dword [ebp - 0x34], 0x200001
xor edi, edi
mov dword [esp], 0
mov dword [ebp - 0x38], eax
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
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov dword [ebp - 0xc0], eax
mov ecx, eax
mov eax, dword [ebp - 0x74]
sub esp, 4
mov dword [esp + 0x18], edi
test eax, eax
je 0x690591de
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x48]
lea edi, [ebp - 0x40]
mov dword [esp + 0x14], edi
mov eax, dword [sym.imp.gdi32.dll_GetDIBits]
mov dword [esp + 0xc], ebx
mov dword [esp], ecx
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 8], edx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb0], eax
call eax
sub esp, 0x1c
cmp word [ebp - 0x5e], 0x20
je 0x690592f3
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x69059280
mov edx, dword [ebp - 0xa0]
mov esi, 0
mov eax, dword fs:[0x18]
imul edx, ebx
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0xc4], eax
sub esp, 0xc
test ecx, ecx
mov dword [esp + 0x18], esi
je 0x69059358
mov dword [esp + 0x10], eax
mov esi, dword [ebp - 0xac]
xor eax, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
mov eax, dword [ebp - 0xb0]
call eax
mov esi, dword [ebp - 0x48]
sub esp, 0x1c
test ebx, ebx
je 0x690590d1
mov eax, dword [ebp - 0x50]
movdqu xmm3, xmmword [0x69083a20]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xac], eax
mov eax, ebx
shr eax, 2
mov dword [ebp - 0xb4], eax
mov eax, ebx
and eax, 0xfffffffc
mov dword [ebp - 0xb8], eax
shl eax, 2
mov dword [ebp - 0xbc], eax
lea eax, [ebx*4]
mov dword [ebp - 0xb0], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
lea esi, [esi]
nop
lea edx, [esi + 0xf]
mov eax, esi
sub edx, ecx
cmp edx, 0x1e
jbe 0x69059228
lea edx, [ebx - 1]
cmp edx, 0x19
jbe 0x69059228
mov dword [ebp - 0xa8], ebx
mov ebx, dword [ebp - 0xb4]
xor edx, edx
pxor xmm2, xmm2
nop
mov edi, edx
inc edx
movdqu xmm1, xmmword [eax]
shl edi, 4
add eax, 0x10
por xmm1, xmm3
movdqu xmm0, xmmword [ecx + edi]
pcmpeqd xmm0, xmm2
pand xmm0, xmm1
movdqu xmmword [eax - 0x10], xmm0
cmp edx, ebx
jne 0x69059040
mov eax, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xa8]
lea edx, [esi + eax]
mov eax, dword [ebp - 0xb8]
cmp ebx, eax
jne 0x69059092
jmp 0x690590ad
inc eax
xor edi, edi
mov dword [edx - 4], edi
cmp ebx, eax
jbe 0x690590ad
mov edi, dword [ecx + eax*4]
add edx, 4
test edi, edi
jne 0x69059088
mov edi, dword [edx - 4]
inc eax
or edi, 0xff000000
cmp ebx, eax
mov dword [edx - 4], edi
ja 0x69059092
mov eax, dword [ebp - 0xac]
inc dword [ebp - 0xa0]
mov edi, dword [ebp - 0xb0]
add esi, eax
mov eax, dword [ebp - 0xa0]
add ecx, edi
cmp eax, ebx
jne 0x69059010
mov esi, dword [ebp - 0xc4]
xor edx, edx
mov dword [esp + 4], edx
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
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [ebp - 0x74]
mov ebx, dword [sym.imp.gdi32.dll_DeleteObject]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x58]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
sub esp, 8
jmp 0x69059153
mov ecx, 2
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp - 0xa4]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], eax
mov eax, str.GdipCreateBitmapFromHICON
mov edi, 0x69081088
mov dword [esp + 8], eax
mov eax, 0x6907a0e8
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x69058d5f
mov eax, dword [ebp - 0x78]
jmp 0x69058d96
mov eax, dword [ebp - 0x74]
mov ebx, dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x69059153
sar ebx, 1
jmp 0x69058dd5
add eax, eax
jmp 0x69058e95
mov dword [esp + 0xc], ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 0xac], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
mov eax, dword [sym.imp.gdi32.dll_GetDIBits]
mov dword [ebp - 0xb0], eax
call eax
sub esp, 0x1c
jmp 0x69058f32
xor eax, eax
lea esi, [esi]
mov edi, dword [ecx + eax*4]
xor edx, edx
test edi, edi
jne 0x69059242
mov edx, dword [esi + eax*4]
or edx, 0xff000000
mov dword [esi + eax*4], edx
inc eax
cmp ebx, eax
jne 0x69059230
jmp 0x690590ad
mov eax, dword [ebp - 0x74]
mov ebx, dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, 1
mov dword [ebp - 0xa4], eax
sub esp, 4
jmp 0x69059153
test ebx, ebx
mov edx, dword [ebp - 0x48]
je 0x690590f9
mov edi, dword [ebp - 0x50]
xor esi, esi
xor eax, eax
lea esi, [esi]
lea esi, [esi]
or dword [edx + eax*4], 0xff000000
mov ecx, eax
inc eax
cmp ebx, eax
jne 0x690592a0
lea eax, [esi + 1]
add edx, edi
cmp ecx, esi
je 0x690590f9
mov esi, eax
jmp 0x69059290
mov eax, dword [ebp - 0x74]
mov ebx, dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call sym.gdiplus.dll_GdipDisposeImage
sub esp, 4
jmp 0x69059153
xor eax, eax
test esi, esi
mov ecx, dword [ebp - 0x48]
je 0x69058f32
mov dword [ebp - 0xa8], esi
mov esi, eax
lea esi, [esi]
nop
xor edi, edi
xor eax, eax
test ebx, ebx
mov dl, 1
je 0x6905933e
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
inc edi
and eax, 0xff000000
sete dl
cmp edi, ebx
jae 0x69059336
test dl, dl
jne 0x69059320
test eax, eax
setne al
movzx eax, al
inc esi
cmp esi, dword [ebp - 0xa8]
jae 0x6905934b
test dl, dl
jne 0x69059310
test eax, eax
jne 0x690590f9
jmp 0x69058f32
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0xac]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp + 0x10], eax
jmp 0x69058f9a