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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
lea eax, [esp + 0x60]
push edi
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.100d3780
lea edx, [esp + 0x74]
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
push edx
push eax
push esi
call fcn.1004aa70
push esi
call sym.GEAR32PO.OCX_GPb_height_get
push esi
mov dword [esp + 0x18], eax
call sym.GEAR32PO.OCX_GPb_width_get
mov edi, eax
mov dword [esp + 0x48], edi
call fcn.100a0c60
lea edi, [edi + edi + 8]
mov ebp, eax
push edi
push ebp
mov dword [esp + 0x38], ebp
call fcn.100a0c80
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
jne 0x1004ae94
push eax
push edi
push 0xfffffc18
push 0x61d
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
jmp 0x1004b50a
push esi
call fcn.10032b60
push eax
call sym.GEAR32PO.OCX_GPb_image_alloc
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x50], ebp
je 0x1004b4fb
lea ecx, [esp + 0x84]
lea edx, [esp + 0x88]
push ecx
push edx
push esi
call fcn.10082a60
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push 0x1f4
push 1
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
call fcn.10032e40
push esi
call sym.GEAR32PO.OCX_GPb_palette_pointer_get
lea edx, [esp + 0x8c]
push eax
push edx
push ebp
call sym.GEAR32PO.OCX_GPb_DIB_alloc
mov edi, eax
test edi, edi
je 0x1004b4ee
push ebp
call fcn.100856a0
test eax, eax
je 0x1004b4e3
push 0
push ebp
push edi
call sym.GEAR32PO.OCX_GPb_image_associate
xor ebp, ebp
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], ebp
test eax, eax
jle 0x1004af97
mov ebx, dword [esp + 0x14]
lea edi, [ebx - 1]
push edi
push esi
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov esi, eax
mov ax, word [esi]
push eax
push esi
push edi
mov edi, dword [esp + 0x5c]
push edi
call fcn.10084f50
xor ecx, ecx
mov cx, word [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
add edx, ecx
test eax, eax
mov dword [esp + 0x20], edx
je 0x1004af82
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
push esi
push ebp
push edx
call eax
test eax, eax
je 0x1004b522
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0xb8]
inc ebp
dec ebx
cmp ebp, eax
jl 0x1004af3a
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov ecx, ebp
sub ecx, eax
push ecx
push esi
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov edi, eax
sub ebp, dword [esp + 0x78]
dec ebp
push ebp
push esi
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov ebp, eax
lea ecx, [edi + 2]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x4c], ebp
mov esi, 1
lea eax, [edx - 1]
xor edx, edx
mov dx, word [ecx]
cmp edx, eax
jg 0x1004afdf
add ecx, 2
xor edx, edx
inc esi
mov dx, word [ecx]
cmp edx, eax
jle 0x1004afd2
lea ecx, [ebp + 2]
xor ebp, ebp
mov edx, 1
mov bp, word [ecx]
cmp ebp, eax
jg 0x1004affd
add ecx, 2
xor ebp, ebp
inc edx
mov bp, word [ecx]
cmp ebp, eax
jle 0x1004aff0
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
cmp eax, ebp
mov dword [esp + 0x60], eax
jg 0x1004b40c
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x1004b030
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add ecx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0xbc]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov edi, dword [esp + 0x74]
lea ecx, [eax + 2]
xor edx, edx
mov dword [esp + 0x4c], eax
mov dx, word [ecx]
lea eax, [edi - 1]
mov ebp, 1
cmp edx, eax
mov dword [esp + 0x6c], ebp
jg 0x1004b082
add ecx, 2
xor edx, edx
inc ebp
mov dx, word [ecx]
cmp edx, eax
jle 0x1004b071
mov dword [esp + 0x6c], ebp
mov eax, esi
mov ecx, dword [esp + 0x38]
cdq
xor eax, edx
mov dword [esp + 0x70], esi
sub eax, edx
mov dword [esp + 0x34], ecx
and eax, 1
mov dword [esp + 0x1c], ebp
xor eax, edx
sub eax, edx
mov dword [esp + 0x40], eax
mov eax, 1
mov edx, dword [esp + 0x40]
cmp edx, eax
je 0x1004b0b3
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x1004b0e1
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], 1
inc eax
mov dword [esp + 0x54], eax
jmp 0x1004b0e9
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x1004b114
mov eax, dword [esp + 0x54]
mov edx, 1
inc eax
mov dword [esp + 0x54], eax
jmp 0x1004b116
xor edx, edx
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x28], edx
mov cx, word [eax + esi*2]
cmp edi, ecx
jne 0x1004b13c
mov eax, dword [esp + 0x18]
xor ecx, ecx
test eax, eax
sete cl
inc esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
xor eax, eax
mov ax, word [ecx + esi*2]
cmp edi, eax
jne 0x1004b162
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x4c]
add eax, ecx
xor ecx, ecx
mov cx, word [esi + ebp*2]
cmp edi, ecx
jne 0x1004b18a
xor ecx, ecx
test edx, edx
sete cl
mov edx, ecx
inc ebp
mov dword [esp + 0x28], edx
jmp 0x1004b18e
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
add eax, edx
mov dword [esp + 0x58], eax
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x1c], 2
jle 0x1004b1cb
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub esi, ebx
dec edx
lea ecx, [ebx + 2]
lea eax, [edx + 1]
mov di, word [esi + ecx]
mov word [ecx], di
add ecx, 2
dec edx
jne 0x1004b1ba
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
lea esi, [edi + 1]
lea edx, [ecx + 1]
cmp esi, edx
jg 0x1004b2ef
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
lea edi, [ebx + eax*2]
mov ebx, dword [esp + 0x70]
lea ebp, [ecx + ebp*2]
mov ecx, dword [esp + 0x34]
lea edx, [edx + ecx*2]
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + ebx*2]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
mov cx, word [ebx]
cmp esi, ecx
jne 0x1004b228
mov ebx, dword [esp + 0x18]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
add ecx, 2
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + ecx*4 + 0x54], ebx
xor ecx, ecx
mov cx, word [edx]
cmp esi, ecx
jne 0x1004b258
mov ebx, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
mov ebx, dword [esp + 0x34]
sete cl
inc ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ebx
add edx, 2
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add ecx, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + ebx*4 + 0x54], ecx
xor ebx, ebx
mov bx, word [ebp]
cmp esi, ebx
jne 0x1004b284
xor ebx, ebx
cmp dword [esp + 0x28], ebx
sete bl
mov dword [esp + 0x28], ebx
add ebp, 2
mov ebx, dword [esp + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x54], ebx
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
jne 0x1004b2a4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
add ecx, ebx
mov ebx, dword [esp + 0x5c]
add ecx, ebx
xor ebx, ebx
cmp ecx, 5
setge bl
mov ecx, ebx
mov ebx, dword [esp + 0x40]
cmp ecx, ebx
je 0x1004b2db
lea ecx, [esi - 1]
inc eax
mov word [edi], cx
add edi, 2
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x7c]
inc esi
lea ebx, [ecx + 1]
cmp esi, ebx
jle 0x1004b201
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
cmp edx, esi
je 0x1004b301
inc ecx
mov word [ebx + eax*2], cx
inc eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
lea esi, [ecx + edx*2]
mov edx, dword [esp + 0x48]
mov cx, word [esi]
mov edi, ecx
and edi, 0xffff
cmp edi, edx
jge 0x1004b341
lea edx, [ebx + eax*2]
mov ebp, dword [esp + 0x48]
add esi, 2
mov word [edx], cx
inc eax
mov cx, word [esi]
add edx, 2
mov edi, ecx
and edi, 0xffff
cmp edi, ebp
jl 0x1004b322
mov edx, ebp
mov word [ebx + eax*2], dx
inc eax
mov esi, dword [esp + 0x50]
mov word [ebx + eax*2], dx
inc eax
mov word [ebx + eax*2], dx
lea eax, [eax + eax + 2]
mov word [ebx], ax
push eax
mov eax, dword [esp + 0x48]
push ebx
dec eax
push eax
push esi
call fcn.10084f50
xor ecx, ecx
mov cx, word [ebx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
add edx, ecx
test eax, eax
mov dword [esp + 0x20], edx
je 0x1004b396
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
push ebp
push edi
push edx
call eax
test eax, eax
je 0x1004b3b9
jmp 0x1004b39a
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x80]
inc edi
dec ecx
cmp edi, ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x44], ecx
jle 0x1004b020
jmp 0x1004b40c
push ebx
mov ebx, dword [esp + 0x34]
push ebx
call fcn.100a1010
push ebx
call fcn.100a12c0
push esi
push esi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_DIB_free
push esi
push esi
call fcn.10032b60
push eax
call fcn.100a1010
push ebp
push edi
push 0xfffff7bf
push 0x708
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, ebx
jge 0x1004b4c5
sub ebx, ebp
mov eax, dword [esp + 0xb8]
lea edi, [ebx - 1]
push edi
push eax
call sym.GEAR32PO.OCX_GPb_image_run_row_get
mov esi, eax
mov cx, word [esi]
push ecx
push esi
push edi
mov edi, dword [esp + 0x5c]
push edi
call fcn.10084f50
xor edx, edx
mov dx, word [esi]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
add esi, edx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
test eax, eax
je 0x1004b466
mov ecx, dword [esp + 0x64]
push esi
push ebp
push ecx
call eax
test eax, eax
je 0x1004b46e
inc ebp
dec ebx
cmp ebp, esi
jl 0x1004b41b
jmp 0x1004b4c9
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
push edx
push ebx
call fcn.100a1010
push ebx
call fcn.100a12c0
push edi
push edi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_DIB_free
push edi
push edi
call fcn.10032b60
push eax
call fcn.100a1010
push esi
push ebp
push 0xfffff7bf
push 0x726
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8
mov edi, dword [esp + 0x50]
push edi
call fcn.10085510
push edi
mov eax, dword [esp + 0xbc]
push eax
call fcn.10085b10
mov ebx, dword [esp + 0x2c]
jmp 0x1004b4fb
test edi, edi
je 0x1004b4ee
push ebp
push edi
call sym.GEAR32PO.OCX_GPb_DIB_free
push ebp
push ebp
call fcn.10032b60
push eax
call fcn.100a1010
mov ecx, dword [esp + 0x30]
push ebx
push ecx
call fcn.100a1010
mov ebp, dword [esp + 0x30]
push ebp
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
push eax
push ebx
call fcn.100a1010
push ebx
call fcn.100a12c0
push edi
push edi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call sym.GEAR32PO.OCX_GPb_DIB_free
push edi
push edi
call fcn.10032b60
push eax
call fcn.100a1010
push esi
push ebp
push 0xfffff7bf
push 0x65d
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8