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

Disassembly:
mov eax, 0x1cf0
call fcn.100f8f30
push ebx
push ebp
push esi
lea eax, [esp + 0x74]
push edi
lea ecx, [esp + 0x70]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x48], ebp
call fcn.100d3780
push 0x400
lea edx, [esp + 0xb0]
push ebp
push edx
call fcn.100a9900
call fcn.100a0c60
mov edi, dword [esp + 0x1d04]
mov dword [esp + 0x34], eax
push edi
call sym.GEAR32PO.OCX_GPb_width_get
push edi
mov dword [esp + 0x20], eax
call sym.GEAR32PO.OCX_GPb_height_get
push edi
mov dword [esp + 0x34], eax
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
push edi
mov dword [esp + 0x54], eax
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
push edi
mov dword [esp + 0x68], eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov esi, dword [esp + 0x1d08]
mov dword [esp + 0x24], eax
cmp esi, ebp
je 0x100a7eae
mov eax, dword [esi + 4]
cmp eax, 0x100
jbe 0x100a7e94
mov ebx, 0x100
mov dword [esp + 0x18], ebx
jmp 0x100a7eba
cmp eax, 8
jae 0x100a7ea3
mov dword [esp + 0x18], 8
jmp 0x100a7eb6
mov ax, word [esi + 4]
mov word [esp + 0x18], ax
jmp 0x100a7eb6
mov dword [esp + 0x18], 0x100
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], ecx
call fcn.100a7550
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
cmp eax, 8
jne 0x100a7ef3
push edi
call sym.GEAR32PO.OCX_GPb_palette_pointer_get
push edi
mov dword [esp + 0x5c], eax
call sym.GEAR32PO.OCX_GPb_palette_entries_get
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100a84a2
mov eax, dword [esi + 0xc]
cmp eax, 8
jb 0x100a84e9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100a84e9
mov ecx, ebx
and ecx, 0xffff
cmp eax, ecx
jae 0x100a7f3e
push ecx
push eax
push 0xfffffda8
push 0x24f
push str.C:_accusoftgear_sourceDITHEROCTREE.C
call fcn.10046940
mov dword [esp + 0x14], eax
jmp 0x100a7f9d
xor edi, edi
test eax, eax
jle 0x100a7f96
xor ebp, ebp
mov eax, dword [esi + 8]
add eax, ebp
mov cl, byte [eax + 2]
mov dl, byte [eax + 1]
mov al, byte [eax]
mov byte [esp + 0x12], cl
lea ecx, [esp + 0xa4]
mov byte [esp + 0x11], dl
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x10]
push ecx
push 1
push 0
lea eax, [esp + 0x1d08]
push edx
push eax
call fcn.100a76a0
lea ecx, [esp + 0xa4]
push ebx
push ecx
call fcn.100a7800
mov eax, dword [esi + 0xc]
inc edi
add ebp, 3
cmp edi, eax
jl 0x100a7f46
mov edi, dword [esp + 0x1d04]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100a80a2
mov ecx, dword [esp + 0x1cfc]
lea eax, [esp + 0xa4]
push eax
push ecx
call fcn.100a79c0
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
lea eax, [edx + 3]
lea esi, [eax + eax*2]
shl esi, 2
push esi
push ebp
call fcn.100a0c80
test eax, eax
mov dword [esp + 0x38], eax
jne 0x100a7ff8
push ebp
push esi
push 0xfffffc18
push 0x262
push str.C:_accusoftgear_sourceDITHEROCTREE.C
call fcn.10046940
mov dword [esp + 0x14], eax
push esi
push ebp
call fcn.100a0c80
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x100a8023
push ebp
push esi
push 0xfffffc18
push 0x266
push str.C:_accusoftgear_sourceDITHEROCTREE.C
call fcn.10046940
mov dword [esp + 0x14], eax
jmp 0x100a802c
push esi
push 0
push eax
call fcn.100a9900
lea eax, [esp + 0x60]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edi
call fcn.10082a60
cmp bx, 0x10
jbe 0x100a8064
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
push 8
push ecx
lea eax, [esp + 0x90]
push edx
push eax
jmp 0x100a8084
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push 4
push eax
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.10032e40
lea eax, [esp + 0xac]
lea ecx, [esp + 0x7c]
push eax
push ecx
push edi
call sym.GEAR32PO.OCX_GPb_DIB_alloc
mov dword [esp + 0x40], eax
jmp 0x100a80a6
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
test esi, esi
je 0x100a84a6
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100a84a6
push esi
call fcn.10032bc0
push edi
mov dword [esp + 0x78], eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
push esi
mov dword [esp + 0x28], eax
call fcn.10032ac0
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x5c], ebx
jle 0x100a8484
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
push 0x18
push 0
push esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.100a9900
add edi, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], 0
test eax, eax
jle 0x100a840a
jmp 0x100a8135
mov ebp, dword [esp + 0x68]
cmp dword [esp + 0x50], 0x18
jne 0x100a8177
mov ebx, dword [edi]
xor eax, eax
mov al, byte [ebp]
add edi, 4
add ebx, eax
inc ebp
xor ecx, ecx
add edi, 4
mov cl, byte [ebp]
xor eax, eax
mov al, byte [ebp + 1]
mov edx, ecx
mov ecx, dword [edi - 4]
add edi, 4
add ecx, edx
inc ebp
mov edx, eax
mov eax, dword [edi - 4]
add eax, edx
inc ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], ebp
jmp 0x100a81bb
mov ecx, dword [esp + 0x58]
mov ebx, dword [edi]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
add edi, 4
add edi, 4
mov dl, byte [ecx + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
add ebx, edx
mov cl, byte [eax + 1]
mov edx, dword [edi - 4]
add ecx, edx
mov edx, dword [edi]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov cl, byte [eax + 2]
add edi, 4
mov eax, ecx
mov ecx, dword [esp + 0x20]
add eax, edx
inc ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], ebp
test eax, eax
jl 0x100a81ce
cmp eax, 0x100
jge 0x100a81cc
mov byte [esp + 0x12], al
jmp 0x100a81df
test eax, eax
setge dl
dec edx
and dl, 1
add edx, 0xff
mov byte [esp + 0x12], dl
test ecx, ecx
jl 0x100a81f3
cmp ecx, 0x100
jge 0x100a81f1
mov byte [esp + 0x11], cl
jmp 0x100a8202
test ecx, ecx
setge al
dec eax
and al, 1
add eax, 0xff
mov byte [esp + 0x11], al
test ebx, ebx
jl 0x100a8216
cmp ebx, 0x100
jge 0x100a8214
mov byte [esp + 0x10], bl
jmp 0x100a8227
test ebx, ebx
setge cl
dec ecx
and cl, 1
add ecx, 0xff
mov byte [esp + 0x10], cl
mov edx, dword [esp + 0x1d08]
cmp dword [edx], 0
je 0x100a824f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1cfc]
lea eax, [esp + 0xa4]
push eax
push ecx
push edx
call fcn.100a7a70
jmp 0x100a8291
cmp word [esp + 0x18], 0x10
jbe 0x100a8273
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1cfc]
lea eax, [esp + 0xa4]
push eax
push ecx
push edx
call fcn.100a7a70
jmp 0x100a8291
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1cfc]
push 5
lea eax, [esp + 0xa8]
push 0x14
push eax
push ecx
push edx
call fcn.100a7c30
cmp word [esp + 0x18], 0x10
mov byte [esp + 0x48], al
jbe 0x100a82aa
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x100a82cb
test byte [esp + 0x54], 1
je 0x100a82c2
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx]
or dl, al
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x100a82cb
mov ecx, dword [esp + 0x14]
shl al, 4
mov byte [ecx], al
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
and eax, 0xff
xor edx, edx
shl eax, 2
add esi, 4
mov dl, byte [esp + eax + 0xae]
add esi, 4
sub ecx, edx
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov cl, byte [esp + eax + 0xad]
mov edx, ecx
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov ebp, ecx
xor ecx, ecx
mov cl, byte [esp + eax + 0xac]
mov dword [esp + 0x4c], ebp
sub ebx, ecx
mov dword [esp + 0x20], ebx
lea eax, [ebx + ebx]
cdq
and edx, 0xf
add eax, edx
mov ecx, eax
mov eax, dword [edi]
sar ecx, 4
add eax, ecx
mov dword [edi], eax
lea eax, [ebp + ebp]
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [edi + 4]
sar ebp, 4
add eax, ebp
mov dword [edi + 4], eax
lea eax, [edx + edx]
cdq
and edx, 0xf
add eax, edx
mov edx, dword [edi + 8]
mov ebx, eax
mov eax, dword [edi + 0xc]
add eax, ecx
sar ebx, 4
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x14]
add edx, ebx
add eax, ebx
mov dword [edi + 8], edx
mov edx, dword [edi + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x20]
add edx, ebp
shl eax, 2
mov dword [edi + 0x10], edx
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esi - 8]
sar eax, 4
add edx, eax
mov dword [esp + 0x20], eax
mov dword [esi - 8], edx
mov edx, dword [esp + 0x4c]
lea eax, [edx*4]
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esi - 4]
sar eax, 4
add edx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi - 4], edx
shl eax, 2
cdq
and edx, 0xf
add esi, 4
add eax, edx
mov edx, dword [esi - 4]
sar eax, 4
add edx, eax
mov dword [esi - 4], edx
mov edx, dword [esp + 0x20]
add dword [esi], edx
mov edx, dword [esp + 0x4c]
add dword [esi + 4], edx
mov edx, dword [esi + 8]
add edx, eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esi + 8], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebx
mov dword [esp + 0x54], eax
jl 0x100a8131
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x30]
test eax, eax
je 0x100a8428
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
dec ecx
push esi
push ecx
push edx
call eax
test eax, eax
je 0x100a845c
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
inc ebx
dec ebp
add edi, eax
add edx, ecx
cmp ebx, esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
jl 0x100a80f2
jmp 0x100a8475
push esi
sub esi, ebx
dec esi
push esi
push 0xfffff7bf
push 0x2ed
push str.C:_accusoftgear_sourceDITHEROCTREE.C
call fcn.10046940
mov edi, dword [esp + 0x1d04]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
push edi
push edi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_DIB_free
push 0
push edi
push esi
call sym.GEAR32PO.OCX_GPb_image_associate
push edi
call sym.GEAR32PO.OCX_GPb_logical_palette_update
jmp 0x100a84a6
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100a84b5
push eax
push ebp
call fcn.100a1010
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100a84c4
push eax
push ebp
call fcn.100a1010
lea edx, [esp + 0xa4]
push edx
call fcn.100a7670
push ebp
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cf0
ret 8
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x100a7f9d
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x24]
cmp eax, 0x18
mov eax, dword [esp + 0x1c]
jne 0x100a855d
test eax, eax
jle 0x100a85ba
inc esi
mov edi, eax
mov dl, byte [esi + 1]
mov al, byte [esi]
mov cl, byte [esi - 1]
mov byte [esp + 0x12], dl
lea edx, [esp + 0xa4]
mov byte [esp + 0x11], al
mov byte [esp + 0x10], cl
mov eax, dword [esp + 0x10]
push edx
push 1
push 0
lea ecx, [esp + 0x1d08]
push eax
push ecx
call fcn.100a76a0
lea edx, [esp + 0xa4]
push ebx
push edx
call fcn.100a7800
add esi, 3
dec edi
jne 0x100a8515
jmp 0x100a85b3
test eax, eax
jle 0x100a85ba
mov edi, dword [esp + 0x1c]
xor eax, eax
mov al, byte [esi]
mov cl, byte [ebp + eax*4 + 2]
mov dl, byte [ebp + eax*4 + 1]
lea eax, [ebp + eax*4]
mov byte [esp + 0x12], cl
lea ecx, [esp + 0xa4]
mov byte [esp + 0x11], dl
mov al, byte [eax]
push ecx
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x14]
push 1
push 0
lea eax, [esp + 0x1d08]
push edx
push eax
call fcn.100a76a0
lea ecx, [esp + 0xa4]
push ebx
push ecx
call fcn.100a7800
inc esi
dec edi
jne 0x100a8565
mov edi, dword [esp + 0x1d04]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add ecx, edx
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jne 0x100a84f9
jmp 0x100a7f9d