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

Disassembly:
sub esp, 0x4c
push ebp
mov ebp, dword [esp + 0x68]
push edi
xor edi, edi
cmp ebp, edi
je 0x10076f12
mov dword [ebp], edi
mov eax, dword [esp + 0x70]
cmp eax, edi
jne 0x10076f25
pop edi
mov eax, 1
pop ebp
add esp, 0x4c
ret
mov dword [eax], edi
cmp dword [esp + 0x5c], edi
je 0x10076f1a
push ebx
mov ebx, dword [esp + 0x5c]
cmp ebx, edi
je 0x10076f47
fld dword [esp + 0x64]
fld dword [esp + 0x68]
fcompp
fnstsw ax
test ah, 5
jp 0x10076f53
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x4c
ret
mov eax, dword [esp + 0x60]
push esi
push eax
call sym.leptonlib.dll_lheapGetCount
push ebx
mov esi, eax
call sym.leptonlib.dll_lheapGetCount
add esp, 8
cmp eax, esi
jne 0x10077584
cmp esi, 2
jl 0x10077584
push edi
lea ecx, [esp + 0x40]
push ecx
push ebx
call sym.leptonlib.dll_numaGetMin
push edi
lea edx, [esp + 0x48]
push edx
push ebx
call sym.leptonlib.dll_numaGetMax
fld dword [esp + 0x80]
fld dword [esp + 0x54]
add esp, 0x18
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x10077582
fld dword [esp + 0x6c]
fld dword [esp + 0x38]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x10077580
cmp dword [esp + 0x70], 2
jl 0x10077580
cmp ebp, edi
je 0x10076fd4
mov dword [ebp], edi
fcompp
mov dword [esp + 0x34], edi
fnstsw ax
test ah, 5
jnp 0x10077584
mov eax, dword [esp + 0x64]
push eax
call sym.leptonlib.dll_lheapGetCount
push ebx
mov esi, eax
call sym.leptonlib.dll_lheapGetCount
add esp, 8
mov dword [esp + 0x54], eax
cmp eax, esi
jne 0x10077584
cmp esi, 2
jl 0x10077584
push edi
lea ecx, [esp + 0x40]
push ecx
push ebx
call sym.leptonlib.dll_numaGetMin
push edi
lea edx, [esp + 0x48]
push edx
push ebx
call sym.leptonlib.dll_numaGetMax
fld dword [esp + 0x80]
fld dword [esp + 0x54]
add esp, 0x18
fcompp
fnstsw ax
test ah, 0x41
je 0x10077584
fld dword [esp + 0x6c]
fld dword [esp + 0x38]
fcompp
fnstsw ax
test ah, 5
jnp 0x10077584
push ebx
call sym.leptonlib.dll_lheapGetCount
mov ebp, eax
lea eax, [esp + 0x48]
push eax
push edi
push ebx
call sym.leptonlib.dll_numaGetFValue
mov esi, 1
add esp, 0x10
cmp ebp, esi
jle 0x100770a0
lea ecx, [esp + 0x40]
push ecx
push esi
push ebx
call sym.leptonlib.dll_numaGetFValue
fld dword [esp + 0x4c]
fld dword [esp + 0x50]
add esp, 0xc
fcompp
fnstsw ax
test ah, 0x41
je 0x10077182
inc esi
cmp esi, ebp
jl 0x10077077
push ebx
call sym.leptonlib.dll_numaClone
mov edx, dword [esp + 0x68]
push edx
mov dword [esp + 0x1c], eax
call sym.leptonlib.dll_numaClone
mov dword [esp + 0x20], eax
add esp, 8
mov eax, dword [esp + 0x14]
push 0
push eax
call sym.leptonlib.dll_numaGetFArray
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov ebp, eax
call sym.leptonlib.dll_numaGetFArray
mov edx, dword [esp + 0x80]
push 4
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCR90.dll_calloc]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x10077584
fld dword [esp + 0x6c]
mov ebx, dword [esp + 0x54]
fld dword [esp + 0x68]
xor esi, esi
fld st(0)
xor ecx, ecx
fsubp st(2)
mov dword [esp + 0x10], esi
fxch st(1)
fst qword [esp + 0x28]
fild dword [esp + 0x70]
fsub qword [0x10142240]
fdivp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
test ebx, ebx
jle 0x100773b2
cmp esi, dword [esp + 0x70]
jge 0x100773b2
fild dword [esp + 0x10]
lea edx, [ebx - 1]
cmp ecx, edx
fmul st(1)
fadd st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
jge 0x10077163
fld dword [ebp + ecx*4]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x10077163
inc ecx
cmp ecx, edx
jl 0x10077151
fld dword [ebp + ecx*4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x10077395
cmp ecx, edx
jge 0x1007717a
mov edx, ecx
mov dword [edi + esi*4], edx
jmp 0x100773a5
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call sym.leptonlib.dll_lheapGetCount
lea edx, [esp + 0x50]
push edx
push edi
push ebx
mov ebp, eax
call sym.leptonlib.dll_numaGetFValue
mov esi, 1
add esp, 0x10
cmp ebp, esi
jle 0x100771d5
lea ebx, [ebx]
lea eax, [esp + 0x48]
push eax
push esi
push ebx
call sym.leptonlib.dll_numaGetFValue
fld dword [esp + 0x54]
fld dword [esp + 0x58]
add esp, 0xc
fcompp
fnstsw ax
test ah, 0x41
je 0x100771ee
inc esi
cmp esi, ebp
jl 0x100771b0
push ebx
call sym.leptonlib.dll_numaCopy
mov ecx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x1c], eax
call sym.leptonlib.dll_numaCopy
jmp 0x100770b4
push ebx
call sym.leptonlib.dll_lheapGetCount
mov esi, eax
push 1
push ebx
mov dword [esp + 0x5c], esi
call sym.leptonlib.dll_numaGetFArray
add esp, 0xc
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x10077214
xor eax, eax
jmp 0x10077361
push 4
push esi
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
mov dword [esp + 0x28], eax
cmp eax, edi
jne 0x1007722f
xor eax, eax
jmp 0x10077361
xor ecx, ecx
cmp esi, edi
mov dword [esp + 0x24], ecx
jle 0x10077251
lea esp, [esp]
fild dword [esp + 0x24]
inc ecx
cmp ecx, esi
mov dword [esp + 0x24], ecx
fstp dword [eax + ecx*4 - 4]
jl 0x10077240
mov eax, esi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp ebp, edi
jle 0x10077318
cmp ebp, esi
jge 0x10077307
mov eax, dword [esp + 0x30]
lea edi, [ebp*4]
lea edx, [edi + eax]
sub esi, ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], esi
mov edi, edi
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jl 0x100772e3
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esi, dword [esp + 0x30]
fld dword [ecx]
fld dword [edx]
fcompp
fnstsw ax
test ah, 5
jp 0x100772d9
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [edx]
fstp dword [ecx]
fld dword [esp + 0x10]
fstp dword [edx]
fld dword [esi + ecx]
fstp dword [esp + 0x10]
fld dword [esi + edx]
fstp dword [esi + ecx]
fld dword [esp + 0x10]
fstp dword [esi + edx]
sub ebx, ebp
sub ecx, edi
sub edx, edi
test ebx, ebx
jge 0x100772a8
mov eax, 1
add dword [esp + 0x1c], eax
mov ecx, 4
add dword [esp + 0x20], ecx
add dword [esp + 0x24], ecx
sub dword [esp + 0x38], eax
jne 0x10077290
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x60]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
test ebp, ebp
jg 0x10077262
push esi
call sym.leptonlib.dll_numaCreate
mov ebp, dword [esp + 0x2c]
add esp, 4
xor edi, edi
mov dword [esp + 0x38], eax
test esi, esi
jle 0x1007734a
nop
fld dword [ebp + edi*4]
mov eax, dword [esp + 0x38]
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_numaAddNumber
inc edi
add esp, 8
cmp edi, esi
jl 0x10077330
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ecx
call esi
push ebp
call esi
mov eax, dword [esp + 0x40]
add esp, 8
push eax
push ebx
mov dword [esp + 0x44], eax
call sym.leptonlib.dll_numaSortByIndex
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
push edx
push eax
call sym.leptonlib.dll_numaSortByIndex
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x2c], eax
call sym.leptonlib.dll_numaDestroy
add esp, 0x14
jmp 0x100770bb
xor edx, edx
lea eax, [ecx - 1]
test eax, eax
setle dl
dec edx
and eax, edx
mov dword [edi + esi*4], eax
inc esi
cmp ecx, ebx
mov dword [esp + 0x10], esi
jl 0x10077130
mov esi, dword [esp + 0x70]
fstp st(1)
push esi
fstp st(0)
call sym.leptonlib.dll_numaCreate
add esp, 4
cmp dword [esp + 0x74], 0
mov ebx, eax
mov dword [esp + 0x34], ebx
je 0x100773e3
push esi
call sym.leptonlib.dll_numaCreate
mov ecx, dword [esp + 0x78]
add esp, 4
mov dword [esp + 0x54], eax
mov dword [ecx], eax
xor esi, esi
cmp dword [esp + 0x70], esi
mov dword [esp + 0x10], esi
jle 0x1007748c
cmp dword [esp + 0x74], 0
fild dword [esp + 0x10]
fmul dword [esp + 0x38]
fadd dword [esp + 0x68]
fstp dword [esp + 0x10]
je 0x1007741f
fld dword [esp + 0x10]
mov edx, dword [esp + 0x54]
push ecx
fstp dword [esp]
push edx
call sym.leptonlib.dll_numaAddNumber
add esp, 8
mov ecx, dword [edi + esi*4]
fld dword [esp + 0x10]
fsub dword [ebp + ecx*4]
push ecx
fstp dword [esp + 0x54]
fldz
fld dword [esp + 0x54]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
mov eax, dword [esp + 0x34]
jp 0x1007744b
fstp st(0)
fld dword [eax + ecx*4]
jmp 0x10077471
fld dword [ebp + ecx*4 + 4]
fsub dword [ebp + ecx*4]
fdivp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fld dword [eax + ecx*4 + 4]
fsub dword [eax + ecx*4]
fmulp st(1)
fadd dword [eax + ecx*4]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [esp]
push ebx
call sym.leptonlib.dll_numaAddNumber
inc esi
add esp, 8
cmp esi, dword [esp + 0x70]
mov dword [esp + 0x10], esi
jl 0x100773f3
push edi
call dword [sym.imp.MSVCR90.dll_free]
lea ecx, [esp + 0x18]
push ecx
call sym.leptonlib.dll_numaDestroy
lea edx, [esp + 0x20]
push edx
call sym.leptonlib.dll_numaDestroy
mov esi, dword [esp + 0x7c]
add esp, 0xc
push esi
call sym.leptonlib.dll_numaCreate
fild dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
mov edi, eax
fsub qword [0x10142240]
mov eax, dword [esp + 0x7c]
push 0
push ecx
fmul qword [0x10142230]
mov dword [eax], edi
fdiv qword [esp + 0x34]
fstp dword [esp + 0x80]
call sym.leptonlib.dll_numaGetFArray
fld dword [esp + 0x80]
fmul qword [0x10142230]
mov ebx, eax
add esp, 8
fst qword [esp + 0x58]
fld dword [ebx + 4]
fsub dword [ebx]
fmulp st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
push edi
call sym.leptonlib.dll_numaAddNumber
lea eax, [esi - 1]
add esp, 8
cmp eax, 1
jle 0x1007754b
mov esi, ebx
lea ebp, [eax - 1]
fld dword [esi + 8]
push ecx
fsub dword [esi]
fmul dword [esp + 0x78]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
push edi
call sym.leptonlib.dll_numaAddNumber
add esp, 8
add esi, 4
sub ebp, 1
jne 0x10077521
mov esi, dword [esp + 0x70]
fld dword [ebx + esi*4 - 4]
push ecx
fsub dword [ebx + esi*4 - 8]
fmul qword [esp + 0x58]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fstp dword [esp]
push edi
call sym.leptonlib.dll_numaAddNumber
lea edx, [esp + 0x3c]
push edx
call sym.leptonlib.dll_numaDestroy
add esp, 0xc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x4c
ret
fstp st(0)
fstp st(0)
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x4c
ret