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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
lea eax, [esp + 0x64]
push edi
lea ecx, [esp + 0x64]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.100d3780
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], ebx
call fcn.100a0c60
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x1c], eax
push esi
call sym.GEAR32PO.OCX_GPb_width_get
mov edi, eax
push esi
mov dword [esp + 0x3c], edi
call sym.GEAR32PO.OCX_GPb_height_get
lea edx, [esp + 0x60]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x70]
push edx
push eax
push esi
call fcn.10082a60
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
push ecx
push edx
push 0x1f4
push 1
push eax
lea ecx, [esp + 0x8c]
push edi
push ecx
call fcn.10032e40
push 8
lea edx, [esp + 0x48]
push ebp
push edx
call fcn.100a9900
push esi
mov byte [esp + 0x4a], 0
mov byte [esp + 0x49], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x4e], 0xff
mov byte [esp + 0x4d], 0xff
mov byte [esp + 0x4c], 0xff
call fcn.10032b60
push eax
call sym.GEAR32PO.OCX_GPb_image_alloc
lea ecx, [esp + 0x44]
lea edx, [esp + 0x78]
push ecx
push edx
push eax
mov dword [esp + 0x40], eax
call sym.GEAR32PO.OCX_GPb_DIB_alloc
mov esi, eax
push ebp
mov eax, dword [esp + 0x38]
push eax
push esi
call sym.GEAR32PO.OCX_GPb_image_associate
lea edi, [edi*4 + 0x10]
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call fcn.100a0c80
test eax, eax
mov dword [esp + 0x6c], eax
jne 0x1007905a
mov edx, dword [esp + 0x1c]
push edx
push edi
push 0xfffffc18
push 0x12e
push str.C:_accusoftgear_sourceDITHERHALFTONE.C
call fcn.10046940
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax]
push ecx
push edx
call fcn.100a0c80
test esi, esi
mov dword [esp + 0x74], eax
je 0x100790fb
mov edi, dword [esp + 0xa4]
push edi
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
push esi
mov dword [esp + 0x5c], eax
call fcn.10032bc0
push edi
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
push eax
call fcn.10032bc0
push eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100a0c80
mov edi, eax
test edi, edi
mov dword [esp + 0x30], edi
jne 0x100790de
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.10032bc0
push eax
push 0xfffffc18
push 0x142
push str.C:_accusoftgear_sourceDITHERHALFTONE.C
call fcn.10046940
mov ebp, eax
mov esi, dword [esp + 0xa4]
push esi
call sym.GEAR32PO.OCX_GPb_palette_pointer_get
push esi
mov dword [esp + 0x54], eax
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
mov dword [esp + 0x54], eax
jmp 0x10079129
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.10032d70
push eax
push 0xfffffc18
push 0x14a
push str.C:_accusoftgear_sourceDITHERHALFTONE.C
call fcn.10046940
mov ebp, eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0xa4]
xor ecx, ecx
cmp ebp, ecx
jne 0x100793ff
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
cmp eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x101122d8
jle 0x100793cc
mov dword [esp + 0x40], eax
jmp 0x10079161
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
xor eax, eax
mov ebp, edi
mov byte [edi], 0
mov edi, dword [esp + 0x20]
test ecx, ecx
mov byte [esp + 0x13], 0x80
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], eax
jle 0x100792d7
mov ecx, dword [esp + 0x54]
cmp ecx, 4
je 0x100791d0
cmp ecx, 8
je 0x100791ca
cmp ecx, 0x18
jne 0x10079233
push esi
call fcn.1001e250
and eax, 0xff
shl eax, 5
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
add esi, 3
mov ebx, edx
jmp 0x10079233
movzx ax, byte [esi]
jmp 0x100791e8
test al, 1
jne 0x100791e0
mov dl, byte [esi]
shr dl, 4
xor ax, ax
mov al, dl
jmp 0x100791e9
mov al, byte [esi]
and al, 0xf
movzx ax, al
inc esi
mov ecx, dword [esp + 0x50]
and eax, 0xffff
mov dl, byte [ecx + eax*4]
lea eax, [ecx + eax*4]
mov byte [esp + 0x14], dl
mov cl, byte [eax + 1]
mov byte [esp + 0x15], cl
mov dl, byte [eax + 2]
lea eax, [esp + 0x14]
mov byte [esp + 0x16], dl
push eax
call fcn.1001e250
and eax, 0xff
shl eax, 5
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebx, edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x13]
cmp bx, word [edx + ecx*2]
jb 0x1007925a
test al, al
jne 0x10079255
inc ebp
mov byte [esp + 0x13], 0x40
mov byte [ebp], 0x80
jmp 0x10079274
or byte [ebp], al
jmp 0x1007926e
test al, al
jne 0x1007926a
inc ebp
mov byte [esp + 0x13], 0x40
mov byte [ebp], 0
jmp 0x10079274
mov al, byte [esp + 0x13]
shr al, 1
mov byte [esp + 0x13], al
cmp ecx, 3
jne 0x100792b9
mov eax, dword [esp + 0x18]
test edi, edi
je 0x1007929f
mov edx, 1
lea ecx, [eax*8 + 0x101122f8]
sub edx, edi
mov dword [esp + 0x24], ecx
mov edi, edx
mov dword [esp + 0x4c], 0
jmp 0x100792be
lea ecx, [eax*8 + 0x101122d8]
mov edi, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], 0
jmp 0x100792be
inc ecx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x10079189
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x18], 3
jne 0x10079309
test edi, edi
je 0x100792f7
mov edx, 1
mov dword [esp + 0x18], 0
sub edx, edi
mov dword [esp + 0x20], edx
jmp 0x1007930d
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], 0
jmp 0x1007930d
inc dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
mov eax, dword [esp + 0x18]
lea edx, [eax*8 + 0x101122d8]
jne 0x10079327
lea edx, [eax*8 + 0x101122f8]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
push ecx
push 0
push eax
push edi
mov dword [esp + 0x34], edx
call fcn.100337a0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x44]
add esp, 0x10
lea esi, [ecx - 1]
push edx
push edi
push esi
push ebp
call fcn.10006310
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x10079371
mov ecx, dword [esp + 0x68]
push edi
push esi
push ecx
call eax
test eax, eax
je 0x100793a6
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
inc eax
dec ebp
add esi, edx
cmp eax, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], esi
jl 0x1007915d
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0xa4]
jmp 0x100793d0
mov eax, dword [esp + 0x3c]
push edi
sub edi, eax
dec edi
push edi
push 0xfffff7bf
push 0x1b7
push str.C:_accusoftgear_sourceDITHERHALFTONE.C
call fcn.10046940
mov esi, dword [esp + 0xa4]
jmp 0x100793d0
mov ebp, dword [esp + 0x34]
push ebp
push esi
call fcn.10085770
push esi
push esi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_DIB_free
push 0
push esi
push ebp
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_image_associate
push ebp
call fcn.100857a0
push esi
call sym.GEAR32PO.OCX_GPb_logical_palette_update
mov eax, dword [esp + 0x1c]
push eax
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8