Function at 0x10033ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
lea eax, [esp + 0x54]
push edi
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.100d3780
xor edi, edi
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov eax, dword [edx + 4]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call fcn.100a0c60
mov ebp, dword [esp + 0xd8]
mov dword [esp + 0x14], eax
push ebp
call sym.GEAR32PO.OCX_GPb_width_get
mov esi, eax
push ebp
mov dword [esp + 0x4c], esi
call sym.GEAR32PO.OCX_GPb_height_get
lea ecx, [esp + 0x54]
lea edx, [esp + 0x60]
push ecx
mov ebx, eax
push edx
push ebp
mov dword [esp + 0x48], ebx
call fcn.10082a60
lea edx, [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push 0x1f4
push 1
push ebx
push esi
push edx
call fcn.10032e40
push 8
lea eax, [esp + 0x34]
push edi
push eax
call fcn.100a9900
push ebp
mov byte [esp + 0x36], 0
mov byte [esp + 0x35], 0
mov byte [esp + 0x34], 0
mov byte [esp + 0x3a], 0xff
mov byte [esp + 0x39], 0xff
mov byte [esp + 0x38], 0xff
call fcn.10032b60
push eax
call sym.GEAR32PO.OCX_GPb_image_alloc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
mov dword [esp + 0x44], eax
call sym.GEAR32PO.OCX_GPb_DIB_alloc
mov ebx, eax
push edi
mov eax, dword [esp + 0x3c]
push eax
push ebx
call sym.GEAR32PO.OCX_GPb_image_associate
lea ecx, [esi*4 + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.100a0c80
mov dword [esp + 0x68], eax
test eax, eax
jne 0x10033e0b
mov eax, dword [esp + 0x14]
lea ecx, [esi + esi + 4]
push eax
push ecx
push 0xfffffc18
push 0x2f0
push str.C:_accusoftgear_sourceDITHERDIFFUSE.C
call fcn.10046940
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea edx, [esi + esi]
push edx
push eax
call fcn.100a0c80
test ebx, ebx
mov dword [esp + 0x5c], eax
je 0x10033f1b
push ebp
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
push ebx
mov dword [esp + 0x54], eax
call fcn.10032bc0
lea edi, [esi*4 + 8]
mov ecx, dword [esp + 0x14]
push edi
push ecx
call fcn.100a0c80
mov ebx, eax
push edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
push edx
call fcn.100a0c80
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x10033e6f
test eax, eax
je 0x10033e6f
push edi
push 0
push eax
call fcn.100a9900
jmp 0x10033e91
lea eax, [esi*8 + 0x10]
push 0
push eax
push 0xfffffc18
push 0x301
push str.C:_accusoftgear_sourceDITHERDIFFUSE.C
call fcn.10046940
mov dword [esp + 0x10], eax
push ebp
call sym.GEAR32PO.OCX_GPb_image_pointer_get
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x24], eax
call fcn.10032bc0
push eax
mov ebx, dword [esp + 0x18]
push ebx
call fcn.100a0c80
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10033edc
lea edx, [esp + 0x6c]
push ebx
push edx
call fcn.10032bc0
push eax
push 0xfffffc18
push 0x30c
push str.C:_accusoftgear_sourceDITHERDIFFUSE.C
call fcn.10046940
mov dword [esp + 0x10], eax
push ebp
call sym.GEAR32PO.OCX_GPb_palette_pointer_get
lea esi, [esp + 0x94]
lea edx, [esp + 0x95]
lea ecx, [eax + 2]
sub esi, eax
mov edi, 0x10
mov al, byte [ecx - 2]
add ecx, 4
mov byte [edx - 1], al
mov al, byte [ecx - 5]
mov byte [edx], al
mov al, byte [ecx - 4]
mov byte [esi + ecx - 4], al
add edx, 4
dec edi
jne 0x10033efa
mov edi, dword [esp + 0x18]
jmp 0x10033f44
lea ecx, [esp + 0x6c]
push 0
push ecx
call fcn.10032d70
push eax
push 0xfffffc18
push 0x319
push str.C:_accusoftgear_sourceDITHERDIFFUSE.C
call fcn.10046940
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x4c]
mov eax, 0xff
sub eax, ecx
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x10033f5b
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1003418b
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x10034158
mov dword [esp + 0x40], eax
jmp 0x10033f85
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov byte [edi], 0
mov dword [esp + 0x1c], eax
lea edi, [eax + 4]
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x24], esi
test eax, eax
mov bl, 0x80
mov dword [esi + 4], ecx
mov dword [esi], ecx
mov dword [esp + 0x44], ecx
jle 0x100340bc
mov eax, dword [esp + 0x44]
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
jne 0x10033fe2
xor edx, edx
mov dl, byte [ebp]
shr edx, 2
and edx, 0xfffffffc
lea eax, [esp + edx + 0x94]
jmp 0x10033ff0
mov cl, byte [ebp]
and ecx, 0xf
inc ebp
lea eax, [esp + ecx*4 + 0x94]
push eax
call fcn.1001e250
mov ecx, dword [edi]
and eax, 0xff
add ecx, eax
mov eax, dword [esp + 0x4c]
add edi, 4
cmp ecx, eax
jl 0x100341c1
lea eax, [ecx - 0xff]
mov ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x2c]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test bl, bl
jne 0x10034036
inc ecx
mov bl, 0x40
mov dword [esp + 0x10], ecx
mov byte [ecx], 0x80
jmp 0x1003403a
or byte [ecx], bl
shr bl, 1
test eax, eax
jl 0x10034070
mov ecx, dword [edi]
mov edx, eax
shl edx, 3
sub edx, eax
add esi, 4
sar edx, 4
add ecx, edx
mov dword [edi], ecx
mov edx, dword [esi - 4]
lea ecx, [eax + eax*2]
sar ecx, 4
add edx, ecx
mov dword [esi - 4], edx
mov ecx, dword [esi]
lea edx, [eax + eax*4]
sar edx, 4
add ecx, edx
mov dword [esi], ecx
sar eax, 4
jmp 0x100340a4
neg eax
mov edx, dword [edi]
mov ecx, eax
shl ecx, 3
sub ecx, eax
add esi, 4
sar ecx, 4
sub edx, ecx
mov dword [edi], edx
mov ecx, dword [esi - 4]
lea edx, [eax + eax*2]
sar edx, 4
sub ecx, edx
mov dword [esi - 4], ecx
mov edx, dword [esi]
lea ecx, [eax + eax*4]
sar ecx, 4
sub edx, ecx
sar eax, 4
mov dword [esi], edx
neg eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x10033fbc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x5c]
push edx
push 0
push eax
push edi
call fcn.100337a0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x48]
add esp, 0x10
lea esi, [ecx - 1]
push edx
push edi
push esi
push eax
call fcn.10006310
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x3c]
test eax, eax
je 0x10034106
mov ecx, dword [esp + 0x58]
push edi
push esi
push ecx
call eax
test eax, eax
je 0x10034130
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x20]
inc eax
dec ebx
add esi, edx
cmp eax, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], esi
jl 0x10033f81
jmp 0x1003414d
mov ebp, dword [esp + 0x28]
push edi
sub edi, ebp
dec edi
push edi
push 0xfffff7bf
push 0x366
push str.C:_accusoftgear_sourceDITHERDIFFUSE.C
call fcn.10046940
mov ebp, dword [esp + 0xd8]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
push esi
push ebp
call fcn.10085770
push ebp
push ebp
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_DIB_free
push 0
push ebp
push esi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_image_associate
push esi
call fcn.100857a0
push ebp
call sym.GEAR32PO.OCX_GPb_logical_palette_update
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003419a
push eax
push ebx
call fcn.100a1010
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100341a9
push eax
push ebx
call fcn.100a1010
push ebx
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret 8
mov eax, dword [esp + 0x2c]
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test bl, bl
jne 0x10034038
mov ecx, dword [esp + 0x10]
mov bl, 0x40
inc ecx
mov dword [esp + 0x10], ecx
mov byte [ecx], 0
jmp 0x1003403a