Function at 0x1000aa10
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x78
mov eax, dword [ebp + 0x10]
movzx edx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
cmp dx, 0x18
je 0x1000aa90
cmp ax, 1
jne 0x1000aa58
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x10]
test edi, edi
jne 0x1000aa58
cmp dx, 0x18
jbe 0x1000aac8
mov eax, dword [ebp + 0x10]
mov edx, 1
mov word [eax + 0xc], dx
jmp 0x1000aa6a
mov eax, dword [ebp + 0x10]
mov ebx, 1
mov word [eax + 0xc], bx
cmp dx, 0x18
jbe 0x1000aab8
mov eax, dword [ebp + 0x10]
mov ecx, 0x18
mov word [eax + 0xe], cx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x10], 0
mov eax, 0xb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1134]
mov ecx, dword [ecx + 0xc]
cmp dword [ecx + 8], 1
je 0x1000b1e0
cmp ax, 1
je 0x1000aa30
mov eax, dword [ebp + 0x10]
mov ecx, 1
mov word [eax + 0xc], cx
mov eax, 0x1000112
bt eax, edx
jb 0x1000aa76
jmp 0x1000aa6a
mov dword [ebp - 0x50], 0
mov ecx, 0x1000112
movzx eax, dx
bt ecx, edx
jae 0x1000aa44
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000ae13
test byte [0x100257c8], 8
jne 0x1000b130
mov esi, dword [ebp + 0x18]
mov edi, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
mov esi, dword [esi + 0x24]
mov dword [ebp - 0x4c], edi
sub edi, edx
mov dword [ebp - 0x48], edi
mov ebx, ecx
mov edi, dword [ebp + 0x10]
sub ebx, esi
mov dword [ebp - 0x40], ebx
mov ebx, dword [edi + 4]
imul ebx, eax
mov edi, ebx
lea ebx, [ebx + 0x26]
add edi, 0x1f
cmovs edi, ebx
sar edi, 3
mov ebx, edi
mov edi, dword [ebp - 0x48]
and ebx, 0xfffffffc
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], edi
test ebx, ebx
jne 0x1000ab56
imul edi, eax
mov ebx, edi
lea edi, [edi + 0xe]
add ebx, 7
cmovs ebx, edi
sar ebx, 3
mov dword [ebp - 0x3c], ebx
mov edi, dword [ebp + 0x14]
mov ebx, dword [edi]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi + 8]
test edi, edi
jle 0x1000afc8
sub edi, ecx
imul edi, dword [ebp - 0x44]
add edi, ebx
imul eax, edx
test eax, eax
lea ebx, [eax + 7]
cmovns ebx, eax
sar ebx, 3
add ebx, edi
test al, 7
je 0x1000ab92
test byte [0x100257c8], 1
jne 0x1000b350
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
imul esi, eax
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x44]
cmp eax, esi
jne 0x1000ae90
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
cmp word [esi + 0xe], 0x18
mov eax, dword [eax + 4]
je 0x1000ae80
mov dword [ebp - 0x34], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x18]
imul eax, dword [ebx + 0x18]
test eax, eax
js 0x1000afd8
sub ecx, edi
mov ebx, ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [eax + 0x1c]
imul eax, dword [ecx + 0x1c]
test eax, eax
js 0x1000afe8
sub edx, esi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_SetClip
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteGSave
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000ac43
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_AddClip
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 0xe]
cmp ax, 1
je 0x1000aff8
movzx ecx, ax
sub eax, 4
cmp ax, 0x1c
ja case.0x1000ac69.1
movzx eax, ax
jmp dword [eax*4 + 0x100270f4]
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x1000b39c
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteSetColor
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
shr eax, 0x1f
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteImage
mov edi, dword [ebp - 0x58]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
lea eax, [edi + 0x7f]
shr eax, 7
lea eax, [edi + eax + 1]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
mov edx, dword [ebp - 0x44]
sub esp, 0xc
mov esi, eax
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call sym._RLE_encode
mov dword [esp + 4], 0
mov edi, eax
lea eax, [eax + 3]
mov ecx, eax
and eax, 0xfffffffc
shr ecx, 2
add eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._ASCII85_encode
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edi, eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edi
call sym._PSDRV_WriteData
mov eax, dword [ebp + 8]
mov dword [esp + 8], 3
mov dword [esp + 4], 0x100270ef
mov dword [esp], eax
call sym._PSDRV_WriteSpool
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp], eax
call sym._PSDRV_WriteGRestore
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_ResetClip
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000ae13
lea edx, [ebp - 0x38]
mov dword [esp], edx
call eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov eax, edx
shl eax, cl
dec eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteIndexColorSpaceBegin
mov eax, dword [ebp + 0x10]
mov edx, 1
movzx ecx, word [eax + 0xe]
mov eax, edx
shl eax, cl
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
add eax, 0x28
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteRGBQUAD
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteIndexColorSpaceEnd
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 0xe]
jmp case.0x1000ac69.1
test eax, eax
jne 0x1000b204
lea esi, cs:[esi]
mov esi, dword [ebp - 0x58]
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
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
call eax
mov dword [ebp - 0x38], eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x1000b414
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], sym._free_heap_bits
movzx eax, word [eax + 0xe]
cmp ax, 8
je 0x1000af80
jbe 0x1000af70
cmp ax, 0x18
jne 0x1000abd2
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x1000b226
cmp esi, ebx
je 0x1000b3af
mov eax, dword [ebp - 0x40]
test eax, eax
jle 0x1000abd2
mov eax, dword [ebp - 0x48]
xor edi, edi
lea ecx, [eax + eax*2]
add ecx, ebx
nop
cmp dword [ebp - 0x48], 0
mov eax, ebx
mov edx, esi
jle 0x1000af52
mov dword [ebp - 0x54], ebx
lea esi, [esi]
movzx ebx, byte [eax + 2]
add eax, 3
add edx, 3
mov byte [edx - 3], bl
movzx ebx, byte [eax - 2]
mov byte [edx - 2], bl
movzx ebx, byte [eax - 3]
mov byte [edx - 1], bl
cmp ecx, eax
jne 0x1000af30
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
inc edi
add esi, dword [ebp - 0x3c]
add ebx, eax
add ecx, eax
cmp dword [ebp - 0x40], edi
jne 0x1000af20
jmp 0x1000abd2
cmp ax, 1
je 0x1000af80
cmp ax, 4
jne 0x1000abd2
mov edi, dword [ebp - 0x44]
cmp dword [ebp - 0x3c], edi
je 0x1000abd2
mov eax, dword [ebp - 0x40]
test eax, eax
jle 0x1000abd2
mov eax, esi
xor edi, edi
mov esi, ebx
mov ebx, eax
nop
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], esi
inc edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memcpy
add esi, dword [ebp - 0x44]
add ebx, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], edi
jne 0x1000afa0
jmp 0x1000abd2
mov edi, dword [ebp - 0x44]
imul edi, esi
add edi, ebx
jmp 0x1000ab71
sub edi, ecx
mov ebx, edi
mov edi, ecx
jmp 0x1000abfa
sub esi, edx
mov dword [ebp - 0x3c], esi
mov esi, edx
jmp 0x1000ac14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x1000b2d8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetTextColor]
sub esp, 4
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_CreateColor
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x104]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteGSave
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_WriteNewPath
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
call sym._PSDRV_WriteRectangle
mov edx, dword [ebp - 0x50]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sym._PSDRV_WriteSetColor
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sym._PSDRV_WriteFill
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sym._PSDRV_WriteGRestore
mov edx, dword [ebp - 0x54]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sym._PSDRV_WriteSetColor
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], ecx
shr eax, 0x1f
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._PSDRV_WriteImage
jmp 0x1000acfc
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp], 0x100270b8
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], 0x100270b8
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 0xe]
mov dword [esp + 0xc], str.bpp__u__s_____s_n
mov dword [esp + 8], str.PSDRV_PutImage
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100257c8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 0xe]
jmp 0x1000aaf8
cmp ax, 1
mov eax, dword [ebp + 0x10]
jne 0x1000b406
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x1000aab8
mov dword [ebp - 0x50], 1
jmp 0x1000aacf
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x50]
mov esi, ebx
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], eax
test edi, edi
je 0x1000b3af
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._rgb_to_grayscale_scale
mov edi, dword [ebp - 0x40]
test edi, edi
jle 0x1000abd2
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], 0
movss xmm4, dword [ebp - 0x1c]
movss xmm3, dword [ebp - 0x18]
lea edi, [eax + eax*2]
movss xmm2, dword [ebp - 0x14]
add edi, ebx
lea esi, [esi]
mov ecx, dword [ebp - 0x48]
mov eax, ebx
mov edx, esi
test ecx, ecx
jle 0x1000b2b7
lea esi, cs:[esi]
movzx ecx, byte [eax + 2]
pxor xmm1, xmm1
pxor xmm0, xmm0
add eax, 3
inc edx
cvtsi2ss xmm1, ecx
movzx ecx, byte [eax - 2]
cvtsi2ss xmm0, ecx
movzx ecx, byte [eax - 3]
mulss xmm1, xmm4
mulss xmm0, xmm3
addss xmm0, xmm1
pxor xmm1, xmm1
cvtsi2ss xmm1, ecx
mulss xmm1, xmm2
addss xmm0, xmm1
cvttss2si ecx, xmm0
mov byte [edx - 1], cl
cmp eax, edi
jne 0x1000b270
mov edx, dword [ebp - 0x44]
inc dword [ebp - 0x54]
add esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x54]
add ebx, edx
add edi, edx
cmp dword [ebp - 0x40], eax
jne 0x1000b260
jmp 0x1000abd2
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
movzx eax, byte [eax + 0x29]
movzx edx, byte [edx + 0x28]
shl eax, 8
shl edx, 0x10
or eax, edx
movzx edx, byte [ecx + 0x2a]
or eax, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_CreateColor
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
movzx eax, byte [eax + 0x2d]
movzx edx, byte [edx + 0x2c]
shl eax, 8
shl edx, 0x10
or eax, edx
movzx edx, byte [ecx + 0x2e]
or eax, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._PSDRV_CreateColor
jmp 0x1000b066
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], 0x100270b8
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0xc], str.pos__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PSDRV_PutImage
mov dword [esp + 4], 0x100257c8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000ab92
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x1000ac97
mov edx, dword [ebp - 0x40]
test edx, edx
jle 0x1000abd2
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
xor esi, esi
lea ecx, [eax + eax*2]
add ecx, ebx
lea esi, cs:[esi]
nop
mov edx, dword [ebp - 0x48]
mov eax, ebx
test edx, edx
jle 0x1000b3f7
mov dword [ebp - 0x3c], ebx
lea esi, [esi]
movzx edx, byte [eax]
movzx ebx, byte [eax + 2]
add eax, 3
mov byte [eax - 3], bl
mov byte [eax - 1], dl
cmp ecx, eax
jne 0x1000b3e0
mov ebx, dword [ebp - 0x3c]
inc esi
add ebx, edi
add ecx, edi
cmp dword [ebp - 0x40], esi
jne 0x1000b3d0
jmp 0x1000abd2
mov esi, 1
mov word [eax + 0xc], si
jmp 0x1000aa76
mov eax, 0xe
jmp 0x1000aa85