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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, 1
dec ebx
cmp ebx, esi
mov dword [esp + 0x28], edi
jle 0x1008981c
mov ecx, dword [eax + esi*4 - 4]
cmp ecx, dword [eax + esi*4]
jbe 0x10089817
call fcn.1005da16
mov eax, dword [ebp + 0x10]
inc esi
cmp esi, ebx
jl 0x10089806
push 0
push 0
call fcn.100824b0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1008983a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x30]
fld qword [0x101a37f0]
mov edi, dword [edi + 0x2c]
fstp qword [esp + 0x58]
fldz
imul edi, edi, 0x204
fstp qword [esp + 0x60]
add edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x100899ea
jmp 0x10089870
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x100899d3
jmp 0x100898a0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
je 0x100899be
mov ecx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x100899be
lea esp, [esp]
mov edx, dword [esp + 0x14]
cmp dword [edx + 4], 0
je 0x100899a9
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x20], 0
mov eax, edx
mov eax, dword [eax]
mov dword [esp + 0x24], 0
jle 0x100899a9
lea ebx, [eax + 0x1c]
jmp 0x10089900
cmp dword [ebx], 0
je 0x10089990
mov eax, dword [ebx - 4]
mov esi, dword [ebx]
mov edx, eax
shl edx, 4
sub edx, eax
lea edi, [esi + edx*4]
cmp esi, edi
je 0x10089990
lea esp, [esp]
push esi
call fcn.10089570
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*8]
lea edx, [ecx + eax*8]
add esp, 4
cmp ecx, edx
je 0x10089989
fldz
fld qword [esp + 0x60]
fld qword [esp + 0x58]
jmp 0x10089946
fxch st(2)
fxch st(2)
fcom qword [ecx + 0x28]
fnstsw ax
test ah, 5
jp 0x10089978
fxch st(2)
fcom qword [ecx + 0x28]
fnstsw ax
test ah, 0x41
jne 0x10089963
fstp st(0)
fld qword [ecx + 0x28]
fxch st(1)
fcom qword [ecx + 0x28]
fnstsw ax
test ah, 5
jp 0x10089974
fstp st(0)
fld qword [ecx + 0x28]
fxch st(1)
fxch st(2)
add ecx, 0x48
cmp ecx, edx
jne 0x10089944
fstp st(0)
fstp qword [esp + 0x60]
fstp qword [esp + 0x58]
add esi, 0x3c
cmp esi, edi
jne 0x10089920
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 0x34
cmp eax, dword [ecx + 0x20]
mov dword [esp + 0x24], eax
jl 0x10089900
mov eax, dword [esp + 0x14]
add eax, 0x24
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jne 0x100898d0
mov eax, dword [esp + 0x10]
add eax, 0x3c
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jne 0x100898a0
mov eax, dword [esp + 0x18]
add eax, 0x204
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jne 0x10089870
call fcn.10096880
test eax, eax
je 0x10089a12
fld qword [esp + 0x60]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x68]
fstp qword [esp]
push str.min_rdslope___f_max_rdslope___f_n
call fcn.10096890
add esp, 0x14
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.10098760
add esp, 8
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x2c], 0
jle 0x1008a02c
fld qword [esp + 0x58]
mov esi, dword [esp + 0x28]
fst qword [esp + 0x78]
xor eax, eax
fld qword [esp + 0x60]
mov dword [esp + 0x30], eax
fst qword [esp + 0x70]
mov dword [esp + 0x40], eax
fldz
fstp qword [esp + 0x50]
jmp 0x10089a5a
fxch st(1)
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
je 0x10089d85
mov edx, dword [ebp + 8]
faddp st(1)
push edx
fmul qword [0x101a3838]
fstp qword [esp + 0x6c]
call fcn.10098520
mov eax, dword [esp + 0x3c]
push eax
call fcn.10081970
mov ecx, dword [esi + 0x2c]
imul ecx, ecx, 0x204
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x30]
add ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
je 0x10089c13
fld qword [esp + 0x68]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x10089bfa
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
je 0x10089be5
mov ecx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x10089be5
mov edx, dword [esp + 0x14]
cmp dword [edx + 4], 0
je 0x10089bd0
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x20], 0
mov eax, edx
mov eax, dword [eax]
mov dword [esp + 0x24], 0
jle 0x10089bd0
add eax, 0x1c
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
cmp dword [edx], 0
je 0x10089bb5
mov eax, edx
mov edi, dword [eax]
mov eax, dword [eax - 4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edi + ecx*4]
mov dword [esp + 0x44], eax
cmp edi, eax
je 0x10089bb5
mov ebx, dword [edi + 0x28]
test ebx, ebx
je 0x10089bac
mov eax, dword [edi]
lea edx, [eax + eax*8]
mov eax, dword [edi + 4]
lea esi, [eax + edx*8]
mov edx, ebx
mov ecx, edx
cmp ecx, esi
je 0x10089b87
fcom qword [ecx + 0x28]
fnstsw ax
test ah, 0x41
jp 0x10089b80
lea edx, [ecx + 0x48]
add ecx, 0x48
cmp ecx, esi
jne 0x10089b73
mov eax, ebx
cmp eax, edx
je 0x10089b9b
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, edx
jne 0x10089b91
cmp eax, esi
je 0x10089bac
or ecx, 0xffffffff
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, esi
jne 0x10089ba2
add edi, 0x3c
cmp edi, dword [esp + 0x44]
jne 0x10089b59
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x3c], 0x34
inc eax
cmp eax, dword [ecx + 0x20]
mov dword [esp + 0x24], eax
jl 0x10089b37
mov eax, dword [esp + 0x14]
add eax, 0x24
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jne 0x10089b08
mov eax, dword [esp + 0x10]
add eax, 0x3c
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jne 0x10089adc
mov eax, dword [esp + 0x18]
add eax, 0x204
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jne 0x10089ab9
fstp st(0)
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x30]
imul ecx, ecx, 0x204
add ecx, esi
mov dword [esp + 0x20], ecx
cmp esi, ecx
je 0x10089cc9
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov edx, eax
shl edx, 4
sub edx, eax
lea eax, [edi + edx*4]
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x10089cbb
cmp dword [edi + 0x34], 0
je 0x10089cae
xor ebx, ebx
cmp dword [edi + 0x20], ebx
jle 0x10089cae
mov eax, dword [esp + 0x2c]
push eax
mov ecx, edi
sub ecx, dword [esi + 4]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x2c]
push ebx
push ecx
mov ecx, esi
sub ecx, dword [edx + 0x30]
mov eax, 0xfe03f81
imul ecx
mov ecx, dword [esp + 0x44]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.10097e20
add esp, 0x18
test eax, eax
jne 0x10089830
inc ebx
cmp ebx, dword [edi + 0x20]
jl 0x10089c55
add edi, 0x3c
cmp edi, dword [esp + 0x1c]
jne 0x10089c48
mov ecx, dword [esp + 0x20]
add esi, 0x204
cmp esi, ecx
jne 0x10089c31
mov edi, dword [esp + 0x38]
push edi
call fcn.10081970
fld qword [esp + 0x6c]
mov ebx, dword [esp + 0x4c]
mov esi, eax
add esp, 4
cmp esi, ebx
jle 0x10089cea
fstp qword [esp + 0x78]
jmp 0x10089d12
cmp dword [esp + 0x30], 0
fst qword [esp + 0x70]
je 0x10089d02
fld qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10089d10
fstp qword [esp + 0x50]
mov dword [esp + 0x30], 1
jmp 0x10089d12
fstp st(0)
mov eax, dword [ebp + 8]
push eax
call fcn.10098640
mov ecx, dword [esp + 0x50]
push 0
push ecx
push edi
call fcn.10082440
add esp, 0x10
test eax, eax
jge 0x10089d34
call fcn.1005da16
call fcn.10096880
test eax, eax
je 0x10089d56
fld qword [esp + 0x68]
sub esp, 8
fstp qword [esp]
push esi
push ebx
push 0x10163168
call fcn.10096890
add esp, 0x14
fld qword [esp + 0x70]
inc dword [esp + 0x40]
fld qword [0x10163160]
fsubr st(1)
fld qword [esp + 0x78]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10089d9d
cmp dword [esp + 0x40], 0x20
jge 0x10089d9d
mov esi, dword [esp + 0x28]
jmp 0x10089a58
fstp st(0)
mov dword [esp + 0x30], 1
fstp st(0)
fld qword [0x1015fbe0]
fstp qword [esp + 0x50]
jmp 0x10089db5
cmp dword [esp + 0x30], 0
fstp st(1)
fstp st(0)
jne 0x10089db5
push str.warning:_empty_layer_generated_n
call fcn.10096890
add esp, 4
call fcn.10096880
test eax, eax
je 0x10089dda
fld qword [esp + 0x50]
mov edx, dword [esp + 0x30]
sub esp, 8
fstp qword [esp]
push edx
push str.success__d_goodthresh__f_n
call fcn.10096890
add esp, 0x10
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x2c]
imul eax, eax, 0x204
add eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
je 0x10089f61
fld qword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x10089f48
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
je 0x10089f33
mov ecx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x10089f33
mov edx, dword [esp + 0x14]
cmp dword [edx + 4], 0
je 0x10089f1e
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x20], 0
mov eax, edx
mov eax, dword [eax]
mov dword [esp + 0x24], 0
jle 0x10089f1e
add eax, 0x1c
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
cmp dword [edx], 0
je 0x10089f03
mov eax, edx
mov ebx, dword [eax]
mov eax, dword [eax - 4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [ebx + ecx*4]
mov dword [esp + 0x44], eax
cmp ebx, eax
je 0x10089f03
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x10089efa
cmp dword [esp + 0x30], 0
mov eax, dword [ebx]
lea edx, [eax + eax*8]
mov eax, dword [ebx + 4]
lea edx, [eax + edx*8]
mov esi, edi
je 0x10089ed5
mov ecx, edi
cmp ecx, edx
je 0x10089ed5
fcom qword [ecx + 0x28]
fnstsw ax
test ah, 0x41
jp 0x10089ece
lea esi, [ecx + 0x48]
add ecx, 0x48
cmp ecx, edx
jne 0x10089ec1
mov eax, edi
cmp eax, esi
je 0x10089ee9
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, esi
jne 0x10089edf
cmp eax, edx
je 0x10089efa
or ecx, 0xffffffff
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, edx
jne 0x10089ef0
add ebx, 0x3c
cmp ebx, dword [esp + 0x44]
jne 0x10089ea0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x3c], 0x34
inc eax
cmp eax, dword [ecx + 0x20]
mov dword [esp + 0x24], eax
jl 0x10089e7e
mov eax, dword [esp + 0x14]
add eax, 0x24
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jne 0x10089e4f
mov eax, dword [esp + 0x10]
add eax, 0x3c
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jne 0x10089e23
mov eax, dword [esp + 0x18]
add eax, 0x204
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jne 0x10089e00
fstp st(0)
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x30]
imul ecx, ecx, 0x204
add ecx, esi
mov dword [esp + 0x20], ecx
cmp esi, ecx
je 0x1008a01a
nop
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov edx, eax
shl edx, 4
sub edx, eax
lea eax, [edi + edx*4]
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x1008a00c
cmp dword [edi + 0x34], 0
je 0x1008a005
xor ebx, ebx
cmp dword [edi + 0x20], ebx
jle 0x1008a005
mov eax, dword [esp + 0x2c]
push eax
mov ecx, edi
sub ecx, dword [esi + 4]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x2c]
push ebx
push ecx
mov ecx, esi
sub ecx, dword [edx + 0x30]
mov eax, 0xfe03f81
imul ecx
mov ecx, dword [esp + 0x44]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.10097e20
add esp, 0x18
test eax, eax
jne 0x10089830
inc ebx
cmp ebx, dword [edi + 0x20]
jl 0x10089fa4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edi, 0x3c
cmp edi, eax
jne 0x10089f97
add esi, 0x204
cmp esi, ecx
jne 0x10089f80
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
jl 0x10089a32
call fcn.10096880
cmp eax, 5
jl 0x1008a042
mov eax, dword [ebp + 8]
push eax
call fcn.10089640
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100823a0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret