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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.100d3780
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 4]
cdq
sub eax, edx
mov edx, dword [ecx + 8]
sar eax, 1
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x20], eax
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
test eax, eax
mov eax, dword [esp + 0x54]
mov ebx, dword [eax + 4]
mov dword [esp + 0x20], ebx
jne 0x100243fc
mov ecx, dword [eax + 8]
mov edx, ebx
add edx, ecx
cmp ebx, edx
jge 0x10024601
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x58]
sub ecx, eax
lea edi, [eax + ebx]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], 0
mov edx, dword [eax + ecx*4]
xor eax, eax
test ebp, ebp
mov al, byte [ebx + edx]
mov dword [esp + 0x30], eax
jle 0x100241d5
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 4]
shl ecx, 2
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x60]
xor eax, eax
mov esi, dword [edx + ecx - 4]
mov edx, dword [esp + 0x1c]
add esi, ebx
cmp dword [esp + 0x10], edx
jg 0x100241b4
mov ebp, esi
mov ecx, edi
mov edi, dword [esp + 0x24]
sub ebp, ebx
mov dword [esp + 0x40], ebp
jmp 0x10024158
mov ebp, dword [esp + 0x40]
test ecx, ecx
jl 0x10024168
cmp ecx, dword [esp + 0x28]
jge 0x10024168
mov dl, byte [ebp + ecx]
jmp 0x1002417a
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x10]
mov edx, dword [edx]
sub edx, eax
add edx, esi
mov dl, byte [edx + ebp - 1]
mov byte [esp + 0x18], dl
mov edx, dword [edi]
test edx, edx
je 0x10024195
mov ebp, dword [esp + 0x18]
and ebp, 0xff
imul ebp, edx
add dword [esp + 0x14], ebp
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
inc ecx
inc eax
add edx, eax
add edi, 4
cmp edx, ebp
jle 0x10024154
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
sub ecx, 4
add edx, 0x40
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
jne 0x1002412e
cmp ebp, dword [esp + 0x5c]
jge 0x100242a7
mov eax, dword [esp + 0x60]
mov edx, ebp
shl edx, 6
lea ecx, [eax + ebp*4]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], ecx
lea ecx, [edx + eax + 0x24]
mov eax, dword [esp + 0x5c]
sub eax, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov esi, ebx
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
add esi, eax
xor eax, eax
cmp ecx, edx
jg 0x10024282
mov ebp, esi
mov ecx, edi
mov edi, dword [esp + 0x2c]
sub ebp, ebx
test ecx, ecx
jl 0x10024236
cmp ecx, dword [esp + 0x28]
jge 0x10024236
mov dl, byte [ecx + ebp]
jmp 0x10024248
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x10]
mov edx, dword [edx]
sub edx, eax
add edx, esi
mov dl, byte [edx + ebx - 1]
mov byte [esp + 0x18], dl
mov edx, dword [edi]
test edx, edx
je 0x10024263
mov ebx, dword [esp + 0x18]
and ebx, 0xff
imul ebx, edx
add dword [esp + 0x14], ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc ecx
inc eax
add edx, eax
add edi, 4
cmp edx, ebx
jle 0x10024227
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
add edx, 4
add ecx, 0x40
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
jne 0x10024205
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + 4]
cmp ecx, eax
jge 0x10024382
mov esi, dword [esp + 0x68]
mov edx, ecx
shl edx, 6
sub eax, ecx
lea edx, [edx + esi + 0x24]
mov dword [esp + 0x34], eax
lea ecx, [eax*4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov esi, dword [edx + eax - 4]
mov edx, dword [esp + 0x1c]
add esi, ebx
xor eax, eax
cmp ecx, edx
jg 0x1002435d
mov ebp, esi
mov ecx, edi
mov edi, dword [esp + 0x24]
sub ebp, ebx
test ecx, ecx
jl 0x10024311
cmp ecx, dword [esp + 0x28]
jge 0x10024311
mov dl, byte [ecx + ebp]
jmp 0x10024323
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x10]
mov edx, dword [edx]
sub edx, eax
add edx, esi
mov dl, byte [edx + ebx - 1]
mov byte [esp + 0x18], dl
mov edx, dword [edi]
test edx, edx
je 0x1002433e
mov ebx, dword [esp + 0x18]
and ebx, 0xff
imul ebx, edx
add dword [esp + 0x14], ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc ecx
inc eax
add edx, eax
add edi, 4
cmp edx, ebx
jle 0x10024302
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
sub edx, 4
add ecx, 0x40
dec eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
jne 0x100242dc
fild dword [esp + 0x14]
mov eax, dword [esp + 0x68]
fmul qword [eax + 0x18]
call sub.MSVCRT.dll__ftol
cmp eax, 0xffffff01
jge 0x100243a0
mov eax, 0xffffff01
jmp 0x100243ac
cmp eax, 0xff
jle 0x100243ac
mov eax, 0xff
cmp dword [esp + 0x70], 1
jne 0x100243cb
add eax, dword [esp + 0x30]
jns 0x100243bd
xor eax, eax
jmp 0x100243d2
cmp eax, 0xff
jle 0x100243d2
mov eax, 0xff
jmp 0x100243d2
mov edx, dword [esp + 0x74]
mov al, byte [eax + edx]
mov ecx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + edi], al
mov eax, dword [esp + 0x54]
inc edi
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
add edx, ecx
mov dword [esp + 0x6c], edi
cmp ebx, edx
jl 0x100240f1
jmp 0x10024601
mov edx, dword [eax + 8]
mov ecx, ebx
add ecx, edx
cmp ebx, ecx
jge 0x10024601
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
sub eax, ecx
lea edx, [ebx + ecx]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
xor edi, edi
mov edx, dword [ecx + eax*4]
xor eax, eax
mov dword [esp + 0x14], edi
mov al, byte [ebx + edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
cmp eax, edi
jle 0x10024467
mov edx, dword [esp + 0x68]
mov ebp, eax
mov esi, dword [edx]
add edx, 0x24
test esi, esi
jle 0x10024461
mov eax, edx
mov ecx, esi
add edi, dword [eax]
add eax, 4
dec ecx
jne 0x10024455
mov eax, dword [esp + 0x58]
add edx, 0x40
dec ebp
jne 0x1002444d
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jge 0x1002451e
mov edx, dword [esp + 0x60]
mov esi, eax
shl esi, 4
lea edx, [edx + eax*4]
sub ecx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
mov ecx, ebx
mov edx, dword [eax]
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x1c]
cmp ebp, edx
jg 0x100244fd
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x24]
add edx, ebp
mov ebp, ecx
sub ebp, ebx
mov ecx, dword [esp + 0x68]
test edx, edx
jl 0x100244e2
cmp edx, dword [esp + 0x28]
jge 0x100244e2
mov bl, byte [edx + ebp]
mov byte [esp + 0x18], bl
lea ebx, [eax + esi]
mov ecx, dword [ecx + ebx*4 + 0x24]
test ecx, ecx
je 0x100244e9
mov ebx, dword [esp + 0x18]
and ebx, 0xff
imul ebx, ecx
add dword [esp + 0x14], ebx
jmp 0x100244e9
lea ebx, [eax + esi]
add edi, dword [ecx + ebx*4 + 0x24]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc edx
inc eax
add ecx, eax
cmp ecx, ebx
jle 0x100244af
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
add edx, 4
add esi, 0x10
dec eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
jne 0x10024489
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 4]
cmp ecx, eax
jge 0x10024554
mov ebp, dword [esp + 0x5c]
mov ecx, edx
mov edx, ebp
mov esi, dword [ecx]
shl edx, 6
sub eax, ebp
lea edx, [edx + ecx + 0x24]
mov ebp, eax
test esi, esi
jle 0x1002454e
mov eax, edx
mov ecx, esi
add edi, dword [eax]
add eax, 4
dec ecx
jne 0x10024546
add edx, 0x40
dec ebp
jne 0x1002453e
test edi, edi
jle 0x1002458b
cmp dword [esp + 0x6c], edi
jne 0x10024562
xor eax, eax
jmp 0x1002459b
fild dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
fild dword [esp + 0x6c]
fxch st(1)
fmul qword [ecx + 0x18]
sub eax, edi
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fxch st(2)
fmulp st(1)
fxch st(1)
fdivp st(1)
jmp 0x10024596
fild dword [esp + 0x14]
mov edx, dword [esp + 0x68]
fmul qword [edx + 0x18]
call sub.MSVCRT.dll__ftol
cmp eax, 0xffffff01
jge 0x100245a9
mov eax, 0xffffff01
jmp 0x100245b5
cmp eax, 0xff
jle 0x100245b5
mov eax, 0xff
cmp dword [esp + 0x70], 1
jne 0x100245d4
add eax, dword [esp + 0x30]
jns 0x100245c6
xor eax, eax
jmp 0x100245db
cmp eax, 0xff
jle 0x100245db
mov eax, 0xff
jmp 0x100245db
mov edx, dword [esp + 0x74]
mov al, byte [eax + edx]
mov ecx, dword [esp + 0x24]
inc ebx
mov edx, ecx
mov dword [esp + 0x20], ebx
mov byte [ecx], al
mov eax, dword [esp + 0x54]
inc edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
add edx, ecx
cmp ebx, edx
jl 0x10024420
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x64]
add eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x54]
push ecx
push eax
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10006d80
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10024666
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x48]
push edi
mov ecx, dword [esi]
push ecx
push edx
call eax
test eax, eax
jne 0x10024666
mov eax, dword [esi]
push edi
push eax
push 0xfffff7bf
push 0x1fa
push str.C:_accusoftgear_sourceIMG_PROCconvolve.c
call fcn.10046940
mov eax, dword [esi]
inc eax
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret 0x30