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

Disassembly:
push 0xffffffffffffffff
push 0x10197238
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp]
mov edx, dword [eax + 0x3c]
mov ecx, ebp
call edx
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x40]
mov ecx, ebp
call edx
mov dword [esp + 0x2c], eax
add eax, 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
lea edi, [esi - 1]
mov ecx, ebp
mov dword [esp + 0x1c], edi
call edx
sub eax, 1
je 0x100869d7
sub eax, 1
je 0x1008666a
push 1
lea ecx, [esp + 0x40]
call fcn.100098a0
mov dword [esp + 0x68], 0
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
mov ecx, ebp
call edx
lea esi, [esp + 0x3c]
call fcn.1007b8b0
mov eax, dword [esp + 0x40]
push eax
push str.void_eim_ToneDownBckSpp::computeAvgBackgroundGrayValue__const_eim_Image_imageA__const_ets_IntRect_rectA__int32_distanceA___const:_unsupported_image_type___s_
lea eax, [esp + 0x3c]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea ecx, [esp + 0x38]
push ecx
call fcn.1017d044
mov edx, dword [esp + 0x78]
fldz
mov eax, dword [edx + 0xc]
add eax, ebx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
cmp eax, ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x28]
jl 0x10086693
lea eax, [esp + 0x24]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax]
sub ecx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
cmp edi, ecx
lea ecx, [esp + 0x1c]
jl 0x100866ae
lea ecx, [esp + 0x28]
mov edi, dword [ecx]
mov ecx, dword [edx + 0x10]
add ecx, ebx
mov dword [esp + 0x28], ecx
js 0x10086722
mov edx, dword [esp + 0x18]
cmp ecx, edx
jg 0x10086722
mov edx, dword [ebp - 0x18]
imul ecx, esi
add ecx, eax
lea edx, [edx + ecx*4]
mov ecx, edi
sub ecx, eax
add ecx, 1
cmp ecx, 4
mov ebp, eax
jl 0x10086709
mov ecx, edi
sub ecx, eax
sub ecx, 3
shr ecx, 2
add ecx, 1
lea ebp, [ecx*4]
mov dword [esp + 0x7c], ebp
add ebp, eax
fadd dword [edx]
add edx, 0x10
sub ecx, 1
fadd dword [edx - 0xc]
fadd dword [edx - 8]
fadd dword [edx - 4]
jne 0x100866f6
cmp ebp, edi
jg 0x10086722
mov ecx, edi
sub ecx, ebp
add ecx, 1
add dword [esp + 0x7c], ecx
fadd dword [edx]
add edx, 4
sub ecx, 1
jne 0x10086718
mov edx, dword [esp + 0x78]
mov ecx, dword [edx + 0x1c]
sub ecx, ebx
mov dword [esp + 0x78], ecx
js 0x1008679c
cmp ecx, dword [esp + 0x18]
jg 0x1008679c
mov ebx, dword [esp + 0x74]
mov ebx, dword [ebx - 0x18]
mov edx, ecx
imul edx, esi
add edx, eax
lea edx, [ebx + edx*4]
mov ebx, edi
sub ebx, eax
add ebx, 1
cmp ebx, 4
jl 0x10086785
mov ecx, edi
sub ecx, eax
sub ecx, 3
shr ecx, 2
add ecx, 1
lea ebx, [ecx*4]
add dword [esp + 0x7c], ebx
add eax, ebx
fadd dword [edx]
add edx, 0x10
sub ecx, 1
fadd dword [edx - 0xc]
fadd dword [edx - 8]
fadd dword [edx - 4]
jne 0x1008676e
mov ecx, dword [esp + 0x78]
cmp eax, edi
jg 0x1008679c
sub edi, eax
add edi, 1
add dword [esp + 0x7c], edi
fadd dword [edx]
add edx, 4
sub edi, 1
jne 0x10086792
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x78], 0
lea eax, [esp + 0x78]
jl 0x100867b8
lea eax, [esp + 0x28]
mov eax, dword [eax]
cmp dword [esp + 0x18], ecx
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x18]
jl 0x100867cc
lea ecx, [esp + 0x78]
cmp dword [esp + 0x20], 0
mov edi, dword [ecx]
jl 0x10086854
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x1c]
jg 0x10086854
mov edx, eax
imul edx, esi
add edx, ecx
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx - 0x18]
lea ecx, [ecx + edx*4]
mov edx, edi
sub edx, eax
add edx, 1
cmp edx, 4
mov ebp, eax
jl 0x10086835
mov edx, edi
sub edx, eax
sub edx, 3
shr edx, 2
add edx, 1
lea ebx, [edx*4]
add dword [esp + 0x7c], ebx
lea ebp, [ebx + eax]
fadd dword [ecx]
lea ebx, [esi*4]
add ecx, ebx
fadd dword [ecx]
add ecx, ebx
fadd dword [ecx]
add ecx, ebx
fadd dword [ecx]
add ecx, ebx
sub edx, 1
jne 0x10086819
cmp ebp, edi
jg 0x10086854
mov edx, edi
sub edx, ebp
add edx, 1
add dword [esp + 0x7c], edx
lea ebx, [esi*4]
fadd dword [ecx]
add ecx, ebx
sub edx, 1
jne 0x1008684b
cmp dword [esp + 0x24], 0
jl 0x100868d7
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x24], ecx
jg 0x100868d7
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx - 0x18]
mov edx, eax
imul edx, esi
add edx, dword [esp + 0x24]
lea ecx, [ecx + edx*4]
mov edx, edi
sub edx, eax
add edx, 1
cmp edx, 4
jl 0x100868ba
mov edx, edi
sub edx, eax
sub edx, 3
shr edx, 2
add edx, 1
lea ebx, [edx*4]
add dword [esp + 0x7c], ebx
add eax, ebx
fadd dword [ecx]
lea ebx, [esi*4]
add ecx, ebx
fadd dword [ecx]
add ecx, ebx
fadd dword [ecx]
add ecx, ebx
fadd dword [ecx]
add ecx, ebx
sub edx, 1
jne 0x1008689e
cmp eax, edi
jg 0x100868d7
sub edi, eax
add edi, 1
add dword [esp + 0x7c], edi
lea edx, [esi*4]
fadd dword [ecx]
add ecx, edx
sub edi, 1
jne 0x100868ce
cmp dword [esp + 0x7c], 0
jne 0x100869ce
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x74]
imul ecx, esi
mov eax, dword [ebx - 0x18]
xor edi, edi
cmp esi, 4
lea ecx, [eax + ecx*4]
jl 0x10086935
lea edx, [esi - 4]
shr edx, 2
add edx, 1
lea edi, [edx*4]
fld dword [ecx + 4]
add eax, 0x10
fadd dword [eax - 0xc]
add ecx, 0x10
sub edx, 1
fld dword [ecx - 0x10]
fadd dword [eax - 0x10]
faddp st(2)
faddp st(1)
fld dword [ecx - 8]
fadd dword [eax - 8]
faddp st(1)
fld dword [ecx - 4]
fadd dword [eax - 4]
faddp st(1)
jne 0x1008690a
cmp edi, esi
jge 0x1008694f
mov edx, esi
sub edx, edi
fld dword [ecx]
add eax, 4
fadd dword [eax - 4]
add ecx, 4
sub edx, 1
faddp st(1)
jne 0x1008693d
mov eax, dword [ebx - 0x18]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
cmp ebx, 4
lea ecx, [eax + ecx*4]
jl 0x100869a8
lea edi, [ebx - 4]
shr edi, 2
add edi, 1
lea edx, [esi*4]
lea ebp, [edi*4]
fld dword [ecx]
add ecx, edx
fadd dword [eax]
add eax, edx
faddp st(1)
fld dword [ecx]
add ecx, edx
fadd dword [eax]
add eax, edx
faddp st(1)
fld dword [ecx]
add ecx, edx
fadd dword [eax]
add eax, edx
faddp st(1)
fld dword [ecx]
add ecx, edx
fadd dword [eax]
add eax, edx
sub edi, 1
faddp st(1)
jne 0x1008697b
cmp ebp, ebx
jge 0x100869c6
mov edx, ebx
lea edi, [esi*4]
sub edx, ebp
fld dword [ecx]
add ecx, edi
fadd dword [eax]
add eax, edi
sub edx, 1
faddp st(1)
jne 0x100869b7
add ebx, esi
add ebx, ebx
mov dword [esp + 0x7c], ebx
fidiv dword [esp + 0x7c]
jmp 0x10086e92
mov edx, dword [esp + 0x78]
fldz
mov eax, dword [edx + 0xc]
add eax, ebx
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
cmp eax, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x28]
jl 0x10086a00
lea eax, [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [edx + 0x18]
sub eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
cmp edi, eax
lea eax, [esp + 0x1c]
jl 0x10086a1b
lea eax, [esp + 0x28]
mov edi, dword [eax]
mov edx, dword [edx + 0x10]
lea eax, [edx + ebx]
cmp eax, ebp
mov dword [esp + 0x28], eax
jl 0x10086ad5
cmp eax, dword [esp + 0x18]
jg 0x10086ad5
mov edx, dword [esp + 0x74]
imul eax, esi
add eax, dword [edx - 0x18]
mov edx, edi
sub edx, ecx
add edx, 1
add eax, ecx
cmp edx, 4
mov ebp, ecx
jl 0x10086ab1
mov edx, edi
sub edx, ecx
sub edx, 3
shr edx, 2
add edx, 1
lea ebx, [edx*4]
mov dword [esp + 0x14], ebx
lea ebp, [ebx + ecx]
movzx ebx, byte [eax]
mov dword [esp + 0x30], ebx
movzx ebx, byte [eax + 1]
fild dword [esp + 0x30]
mov dword [esp + 0x30], ebx
movzx ebx, byte [eax + 2]
faddp st(1)
fild dword [esp + 0x30]
mov dword [esp + 0x30], ebx
movzx ebx, byte [eax + 3]
faddp st(1)
fild dword [esp + 0x30]
mov dword [esp + 0x30], ebx
add eax, 4
sub edx, 1
faddp st(1)
fild dword [esp + 0x30]
faddp st(1)
jne 0x10086a6e
mov ebx, dword [esp + 0x7c]
cmp ebp, edi
jg 0x10086ad5
mov edx, edi
sub edx, ebp
add edx, 1
add dword [esp + 0x14], edx
movzx ebp, byte [eax]
mov dword [esp + 0x7c], ebp
add eax, 1
sub edx, 1
fild dword [esp + 0x7c]
faddp st(1)
jne 0x10086ac0
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x1c]
sub edx, ebx
mov dword [esp + 0x78], edx
js 0x10086b8b
cmp edx, dword [esp + 0x18]
jg 0x10086b8b
mov ebx, dword [esp + 0x74]
mov eax, edx
imul eax, esi
add eax, dword [ebx - 0x18]
mov ebx, edi
sub ebx, ecx
add ebx, 1
add eax, ecx
cmp ebx, 4
jl 0x10086b69
mov edx, edi
sub edx, ecx
sub edx, 3
shr edx, 2
add edx, 1
lea ebx, [edx*4]
add dword [esp + 0x14], ebx
add ecx, ebx
movzx ebx, byte [eax]
mov dword [esp + 0x7c], ebx
movzx ebx, byte [eax + 1]
fild dword [esp + 0x7c]
mov dword [esp + 0x7c], ebx
movzx ebx, byte [eax + 2]
faddp st(1)
fild dword [esp + 0x7c]
mov dword [esp + 0x7c], ebx
movzx ebx, byte [eax + 3]
faddp st(1)
fild dword [esp + 0x7c]
mov dword [esp + 0x7c], ebx
faddp st(1)
add eax, 4
sub edx, 1
fild dword [esp + 0x7c]
faddp st(1)
jne 0x10086b26
mov edx, dword [esp + 0x78]
cmp ecx, edi
jg 0x10086b8b
sub edi, ecx
add edi, 1
add dword [esp + 0x14], edi
movzx ecx, byte [eax]
mov dword [esp + 0x78], ecx
add eax, 1
sub edi, 1
fild dword [esp + 0x78]
faddp st(1)
jne 0x10086b76
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
test eax, eax
mov dword [esp + 0x78], 0
lea eax, [esp + 0x78]
jl 0x10086ba7
lea eax, [esp + 0x7c]
cmp dword [esp + 0x18], edx
mov ecx, dword [eax]
mov dword [esp + 0x78], edx
lea eax, [esp + 0x18]
jl 0x10086bbb
lea eax, [esp + 0x78]
cmp dword [esp + 0x20], 0
mov edi, dword [eax]
jl 0x10086c73
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x1c]
jg 0x10086c73
mov edx, dword [esp + 0x74]
mov eax, ecx
imul eax, esi
add eax, dword [edx - 0x18]
mov edx, edi
add eax, dword [esp + 0x20]
sub edx, ecx
add edx, 1
cmp edx, 4
mov ebp, ecx
jl 0x10086c50
mov edx, edi
sub edx, ecx
sub edx, 3
shr edx, 2
add edx, 1
lea ebx, [edx*4]
add dword [esp + 0x14], ebx
lea ebp, [ebx + ecx]
movzx ebx, byte [eax]
add eax, esi
mov dword [esp + 0x78], ebx
movzx ebx, byte [eax]
fild dword [esp + 0x78]
add eax, esi
faddp st(1)
mov dword [esp + 0x78], ebx
movzx ebx, byte [eax]
fild dword [esp + 0x78]
add eax, esi
faddp st(1)
mov dword [esp + 0x78], ebx
movzx ebx, byte [eax]
fild dword [esp + 0x78]
mov dword [esp + 0x78], ebx
faddp st(1)
add eax, esi
sub edx, 1
fild dword [esp + 0x78]
faddp st(1)
jne 0x10086c0f
cmp ebp, edi
jg 0x10086c73
mov edx, edi
sub edx, ebp
add edx, 1
add dword [esp + 0x14], edx
movzx ebx, byte [eax]
mov dword [esp + 0x78], ebx
add eax, esi
sub edx, 1
fild dword [esp + 0x78]
faddp st(1)
jne 0x10086c5f
cmp dword [esp + 0x24], 0
jl 0x10086d24
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
jg 0x10086d24
mov edx, dword [esp + 0x74]
mov eax, ecx
imul eax, esi
add eax, dword [edx - 0x18]
mov edx, edi
add eax, dword [esp + 0x24]
sub edx, ecx
add edx, 1
cmp edx, 4
jl 0x10086d03
mov edx, edi
sub edx, ecx
sub edx, 3
shr edx, 2
add edx, 1
lea ebx, [edx*4]
add dword [esp + 0x14], ebx
add ecx, ebx
movzx ebx, byte [eax]
add eax, esi
mov dword [esp + 0x78], ebx
movzx ebx, byte [eax]
fild dword [esp + 0x78]
add eax, esi
faddp st(1)
mov dword [esp + 0x78], ebx
movzx ebx, byte [eax]
fild dword [esp + 0x78]
add eax, esi
faddp st(1)
mov dword [esp + 0x78], ebx
movzx ebx, byte [eax]
fild dword [esp + 0x78]
mov dword [esp + 0x78], ebx
faddp st(1)
add eax, esi
sub edx, 1
fild dword [esp + 0x78]
faddp st(1)
jne 0x10086cc2
cmp ecx, edi
jg 0x10086d24
sub edi, ecx
add edi, 1
add dword [esp + 0x14], edi
movzx ecx, byte [eax]
mov dword [esp + 0x78], ecx
add eax, esi
sub edi, 1
fild dword [esp + 0x78]
faddp st(1)
jne 0x10086d10
cmp dword [esp + 0x14], 0
jne 0x10086e8e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
imul ecx, esi
mov eax, dword [edx - 0x18]
add ecx, eax
xor edi, edi
cmp esi, 4
jl 0x10086daf
lea edx, [esi - 4]
shr edx, 2
add edx, 1
lea edi, [edx*4]
movzx ebp, byte [eax + 1]
movzx ebx, byte [ecx + 1]
add ebx, ebp
movzx ebp, byte [eax]
mov dword [esp + 0x78], ebx
movzx ebx, byte [ecx]
fild dword [esp + 0x78]
add ebx, ebp
movzx ebp, byte [eax + 2]
mov dword [esp + 0x78], ebx
movzx ebx, byte [ecx + 2]
fild dword [esp + 0x78]
add ebx, ebp
movzx ebp, byte [eax + 3]
faddp st(2)
mov dword [esp + 0x78], ebx
faddp st(1)
movzx ebx, byte [ecx + 3]
fild dword [esp + 0x78]
add ebx, ebp
faddp st(1)
mov dword [esp + 0x78], ebx
add eax, 4
fild dword [esp + 0x78]
add ecx, 4
sub edx, 1
faddp st(1)
jne 0x10086d56
cmp edi, esi
jge 0x10086dd4
mov edx, esi
sub edx, edi
movzx edi, byte [ecx]
movzx ebx, byte [eax]
add edi, ebx
mov dword [esp + 0x78], edi
add eax, 1
fild dword [esp + 0x78]
add ecx, 1
sub edx, 1
faddp st(1)
jne 0x10086db7
mov eax, dword [esp + 0x74]
mov eax, dword [eax - 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add ecx, eax
xor edi, edi
cmp ebx, 4
jl 0x10086e63
lea edx, [ebx - 4]
shr edx, 2
add edx, 1
lea edi, [edx*4]
movzx ebp, byte [eax]
movzx ebx, byte [ecx]
add ebx, ebp
movzx ebp, byte [eax + esi]
mov dword [esp + 0x74], ebx
movzx ebx, byte [ecx + esi]
fild dword [esp + 0x74]
add eax, esi
add ecx, esi
add ebx, ebp
faddp st(1)
movzx ebp, byte [eax + esi]
mov dword [esp + 0x74], ebx
movzx ebx, byte [ecx + esi]
fild dword [esp + 0x74]
add eax, esi
add ecx, esi
add ebx, ebp
faddp st(1)
movzx ebp, byte [eax + esi]
mov dword [esp + 0x74], ebx
movzx ebx, byte [ecx + esi]
fild dword [esp + 0x74]
add eax, esi
add ecx, esi
add ebx, ebp
faddp st(1)
mov dword [esp + 0x74], ebx
add eax, esi
add ecx, esi
sub edx, 1
fild dword [esp + 0x74]
faddp st(1)
jne 0x10086dfc
mov ebx, dword [esp + 0x2c]
cmp edi, ebx
jge 0x10086e86
mov edx, ebx
sub edx, edi
movzx edi, byte [ecx]
movzx ebp, byte [eax]
add edi, ebp
mov dword [esp + 0x74], edi
add eax, esi
add ecx, esi
sub edx, 1
fild dword [esp + 0x74]
faddp st(1)
jne 0x10086e6b
add ebx, esi
add ebx, ebx
mov dword [esp + 0x14], ebx
fidiv dword [esp + 0x14]
mov edx, dword [esp + 0x70]
fstp qword [edx + 0x28]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10