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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax + 0xc]
mov eax, 1
dec ecx
cmp ecx, eax
push edi
mov dword [esp + 0x28], esi
jle 0x468202
jmp 0x4681f0
mov edi, dword [edx + eax*4 - 4]
cmp edi, dword [edx + eax*4]
ja 0x468a69
inc eax
cmp eax, ecx
jl 0x4681f0
push 0
push 0
call fcn.004621e0
add esp, 8
test eax, eax
mov dword [esp + 0x38], eax
je 0x468a6e
mov eax, dword [esi + 0x30]
fld qword [0x4b39c8]
mov esi, dword [esi + 0x2c]
fstp qword [esp + 0x60]
fld qword [0x48dcf8]
imul esi, esi, 0x204
fstp qword [esp + 0x68]
add esi, eax
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
je 0x4683aa
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
imul ecx, ecx, 0x3c
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
je 0x468391
mov edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x46837a
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*4]
cmp eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x46837a
jmp 0x4682a0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x468363
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [ecx]
mov ecx, dword [edx + 0x20]
test ecx, ecx
mov dword [esp + 0x24], 0
jle 0x468363
lea ebx, [eax + 0x1c]
lea ecx, [ecx]
mov eax, dword [ebx]
test eax, eax
je 0x468348
mov edi, dword [ebx - 4]
imul edi, edi, 0x3c
mov esi, eax
add edi, esi
cmp esi, edi
je 0x468348
push esi
call fcn.00467f10
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 0x468341
lea esp, [esp]
fld qword [ecx + 0x28]
fcomp qword [0x48dcf8]
fnstsw ax
test ah, 0x41
jne 0x46833a
fld qword [ecx + 0x28]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 5
jp 0x468325
fld qword [ecx + 0x28]
fstp qword [esp + 0x60]
fld qword [ecx + 0x28]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
jne 0x46833a
fld qword [ecx + 0x28]
fstp qword [esp + 0x68]
add ecx, 0x48
cmp ecx, edx
jne 0x468300
add esi, 0x3c
cmp esi, edi
jne 0x4682e4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
inc eax
add ebx, 0x34
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x4682d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add eax, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x4682a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add eax, 0x3c
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x468270
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 0x204
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x468250
call fcn.00475cf0
test eax, eax
je 0x4683d7
fld qword [esp + 0x68]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x70]
fstp qword [esp]
push str.min_rdslope___f_max_rdslope___f_n
push 0x4c0e00
call fcn.00485b02
add esp, 0x18
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.004781d0
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov dword [esp + 0x2c], 0
jle 0x468a26
jmp 0x468400
fld qword [esp + 0x60]
xor eax, eax
fstp qword [esp + 0x78]
mov dword [esp + 0x30], eax
fld qword [esp + 0x68]
mov dword [esp + 0x44], eax
fstp qword [esp + 0x70]
fld qword [0x48dcf8]
fstp qword [esp + 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x28]
mov dword [esp + 0x48], eax
je 0x468a52
fld qword [esp + 0x70]
mov edx, dword [ebp + 8]
fadd qword [esp + 0x78]
push edx
fmul qword [0x4909f0]
fstp qword [esp + 0x54]
call fcn.00477f70
mov eax, dword [esp + 0x3c]
push eax
call fcn.00461500
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
cmp eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
je 0x468602
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
imul ecx, ecx, 0x3c
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
je 0x4685e9
mov edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x4685d2
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*4]
cmp eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x4685d2
jmp 0x4684e0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4685bb
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [ecx]
mov ecx, dword [edx + 0x20]
test ecx, ecx
mov dword [esp + 0x24], 0
jle 0x4685bb
add eax, 0x1c
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp dword [eax], 0
je 0x468598
mov edi, dword [eax]
mov eax, dword [eax - 4]
imul eax, eax, 0x3c
add eax, edi
cmp edi, eax
mov dword [esp + 0x40], eax
je 0x468598
lea esp, [esp]
mov ebx, dword [edi + 0x28]
test ebx, ebx
je 0x46858d
mov eax, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*8]
lea esi, [edx + ecx*8]
mov edx, ebx
mov ecx, edx
cmp ecx, esi
je 0x468568
lea ebx, [ebx]
fld qword [ecx + 0x28]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x468561
lea edx, [ecx + 0x48]
add ecx, 0x48
cmp ecx, esi
jne 0x468550
mov eax, ebx
cmp eax, edx
je 0x46857c
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, edx
jne 0x468572
cmp eax, esi
je 0x46858d
or ecx, 0xffffffff
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, esi
jne 0x468583
mov eax, dword [esp + 0x40]
add edi, 0x3c
cmp edi, eax
jne 0x468530
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
inc eax
add esi, 0x34
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], esi
jl 0x468511
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add eax, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x4684e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add eax, 0x3c
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x4684b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 0x204
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x468490
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x30]
imul ecx, ecx, 0x204
add ecx, esi
cmp esi, ecx
mov dword [esp + 0x20], ecx
je 0x4686be
mov eax, dword [esi]
mov edi, dword [esi + 4]
imul eax, eax, 0x3c
add eax, edi
cmp edi, eax
mov dword [esp + 0x1c], eax
je 0x4686b0
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4686a1
mov eax, dword [edi + 0x20]
xor ebx, ebx
test eax, eax
jle 0x4686a1
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 4]
mov ecx, edi
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x2c]
push ebx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
sub ecx, eax
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.00477840
add esp, 0x18
test eax, eax
jne 0x468a6e
mov eax, dword [edi + 0x20]
inc ebx
cmp ebx, eax
jl 0x468642
mov eax, dword [esp + 0x1c]
add edi, 0x3c
cmp edi, eax
jne 0x468632
mov ecx, dword [esp + 0x20]
add esi, 0x204
cmp esi, ecx
jne 0x468620
mov ebx, dword [esp + 0x38]
push ebx
call fcn.00461500
fld qword [esp + 0x54]
mov edi, dword [esp + 0x4c]
mov esi, eax
add esp, 4
cmp esi, edi
jle 0x4686df
fstp qword [esp + 0x78]
jmp 0x46870a
mov eax, dword [esp + 0x30]
fstp qword [esp + 0x70]
test eax, eax
je 0x4686fa
fld qword [esp + 0x50]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 5
jp 0x46870a
fld qword [esp + 0x50]
mov dword [esp + 0x30], 1
fstp qword [esp + 0x58]
mov eax, dword [ebp + 8]
push eax
call fcn.004780a0
mov ecx, dword [esp + 0x50]
push 0
push ecx
push ebx
call fcn.00462170
add esp, 0x10
test eax, eax
jl 0x468a69
call fcn.00475cf0
test eax, eax
je 0x468752
fld qword [esp + 0x50]
sub esp, 8
fstp qword [esp]
push esi
push edi
push 0x4b3978
push 0x4c0e00
call fcn.00485b02
add esp, 0x18
fld qword [esp + 0x70]
mov eax, dword [esp + 0x44]
fsub qword [0x4b3970]
inc eax
mov dword [esp + 0x44], eax
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x46877b
cmp dword [esp + 0x44], 0x20
jl 0x468424
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x468795
push str.warning:_empty_layer_generated_n
push 0x4c0e00
call fcn.00485b02
add esp, 8
call fcn.00475cf0
test eax, eax
je 0x4687bf
fld qword [esp + 0x58]
mov edx, dword [esp + 0x30]
sub esp, 8
fstp qword [esp]
push edx
push str.success__d_goodthresh__f_n
push 0x4c0e00
call fcn.00485b02
add esp, 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x2c]
imul eax, eax, 0x204
add eax, ecx
cmp ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
je 0x468956
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
imul eax, eax, 0x3c
add eax, ecx
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
je 0x46893d
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x468926
mov ecx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*4]
cmp eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x468926
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test eax, eax
je 0x46890f
mov ecx, dword [esp + 0x10]
mov eax, edx
mov edx, dword [ecx + 0x20]
test edx, edx
mov eax, dword [eax]
mov dword [esp + 0x24], 0
jle 0x46890f
add eax, 0x1c
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
cmp dword [edx], 0
je 0x4688ec
mov eax, edx
mov ebx, dword [eax]
mov eax, dword [eax - 4]
imul eax, eax, 0x3c
add eax, ebx
cmp ebx, eax
mov dword [esp + 0x40], eax
je 0x4688ec
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x4688e5
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*8]
lea edx, [ecx + eax*8]
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, edi
je 0x4688bc
mov ecx, edi
cmp ecx, edx
je 0x4688bc
fld qword [ecx + 0x28]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
jne 0x4688b5
lea esi, [ecx + 0x48]
add ecx, 0x48
cmp ecx, edx
jne 0x4688a4
mov eax, edi
cmp eax, esi
je 0x4688d0
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, esi
jne 0x4688c6
cmp eax, edx
je 0x4688e1
or ecx, 0xffffffff
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, edx
jne 0x4688d7
mov eax, dword [esp + 0x40]
add ebx, 0x3c
cmp ebx, eax
jne 0x468882
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
add edx, 0x34
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x468861
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add eax, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jne 0x468830
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add eax, 0x3c
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x468800
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, 0x204
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x4687e1
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x2c]
mov esi, dword [eax + 0x30]
imul ecx, ecx, 0x204
add ecx, esi
cmp esi, ecx
mov dword [esp + 0x20], ecx
je 0x468a12
mov eax, dword [esi]
mov edi, dword [esi + 4]
imul eax, eax, 0x3c
add eax, edi
cmp edi, eax
mov dword [esp + 0x1c], eax
je 0x468a04
mov edx, dword [edi + 0x34]
test edx, edx
je 0x4689fd
mov edx, dword [edi + 0x20]
xor ebx, ebx
test edx, edx
jle 0x4689fd
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 4]
push eax
mov ecx, edi
sub ecx, edx
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]
mov eax, dword [edx + 0x30]
push ebx
push ecx
mov ecx, esi
sub ecx, eax
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.00477840
add esp, 0x18
test eax, eax
jne 0x468a6e
mov eax, dword [edi + 0x20]
inc ebx
cmp ebx, eax
jl 0x468996
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edi, 0x3c
cmp edi, eax
jne 0x468986
add esi, 0x204
cmp esi, ecx
jne 0x468974
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x468400
call fcn.00475cf0
cmp eax, 5
jl 0x468a3c
mov eax, dword [ebp + 8]
push eax
call fcn.00468000
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004620c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [0x48dd00]
mov dword [esp + 0x30], 1
fstp qword [esp + 0x58]
jmp 0x468795
jmp fcn.004222bf
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret